I would like to run some standalone online tools inside WordPress page

by clalit
11 replies
I would like to run some standalone online tools inside WordPress page. For example I'm having online page-rank checker script and i want to give an access only to my blog subscribers. How to do that?

In other words;

The Script works as stands alone with an independent database which is not related to WordPress, WordPress + s2member plugin is using to create a members area ( payment wall / subscription access ) . Actually there is no interaction between the wordpress and these tools . if you having other option then s2member / Amember & wordpress that help me to build a solid member site i'll be happy to hearing

* The member Area act as pay wall and intended to protect online tools no video or content ...

Thanks

Yossi
#inside #online #page #run #standalone #tools #wordpress
  • Profile picture of the author shahriyar
    You can convert the script to a plugin and display it, I would recommend that. A quick shortcut will be to display the script on the page in an iframe.
    {{ DiscussionBoard.errors[8849459].message }}
    • Profile picture of the author clalit
      Originally Posted by shahriyar View Post

      You can convert the script to a plugin and display it, I would recommend that. A quick shortcut will be to display the script on the page in an iframe.
      First Thanks !

      I just wanted to wrote that using Iframe might explore the tool's url when someone is looking inside the page source and then i realize that only payment subscriber have the ability to access that page ..... :-)
      Another question -- does Iframe "eating" the server resources ?
      Signature
      {{ DiscussionBoard.errors[8849685].message }}
      • Profile picture of the author shahriyar
        "does Iframe "eating" the server resources ? "

        iframe or without iframe, if the script is hosted on your server, its will use your server's resources.iframe is not significant in terms of using resources.

        If you want to use user's or member's resources you will need a Javascript (preferably ajax basd) based script so it will the user's resources (IP address, memory etc.)
        {{ DiscussionBoard.errors[8849712].message }}
      • Profile picture of the author clalit
        Originally Posted by clalit View Post

        First Thanks !

        I just wanted to wrote that using Iframe might explore the tool's url when someone is looking inside the page source and then i realize that only payment subscriber have the ability to access that page ..... :-)
        Another question -- does Iframe "eating" the server resources ?
        But....
        Someone that paid could see the source and then copy these links and using them directly after his subscription had finish

        So its not solve the problem unless the code / iframe source is Encrypted
        Signature
        {{ DiscussionBoard.errors[8849717].message }}
        • Profile picture of the author shahriyar
          Originally Posted by clalit View Post

          But....
          Someone that paid could see the source and then copy these links and using them directly after his subscription had finish

          So its not solve the problem unless the code / iframe source is Encrypted
          Yes, correct. So, you should integrate the script with the WP membership feature. Basically, at the top of your script you should check if the user has a valid membership or not.
          {{ DiscussionBoard.errors[8849739].message }}
          • Profile picture of the author clalit
            Originally Posted by clalit View Post

            First Thanks !

            I just wanted to wrote that using Iframe might explore the tool's url when someone is looking inside the page source and then i realize that only payment subscriber have the ability to access that page ..... :-)
            Another question -- does Iframe "eating" the server resources ?
            Originally Posted by shahriyar View Post

            Yes, correct. So, you should integrate the script with the WP membership feature. Basically, at the top of your script you should check if the user has a valid membership or not.
            Or i could Encrypt the page source...
            Signature
            {{ DiscussionBoard.errors[8849758].message }}
            • Profile picture of the author shahriyar
              Originally Posted by clalit View Post

              Or i could Encrypt the page source...
              Encrypting page source won't help, because the user is not seeing the PHP source, he is getting the HTML page where he can use the tool.

              So whether you encrypt PHP or anything else, he will be able to use the tool unless you validate the membership.
              {{ DiscussionBoard.errors[8849799].message }}
              • Profile picture of the author clalit
                Originally Posted by shahriyar View Post

                Encrypting page source won't help, because the user is not seeing the PHP source, he is getting the HTML page where he can use the tool.

                So whether you encrypt PHP or anything else, he will be able to use the tool unless you validate the membership.
                BUT when i need to "validate the membership" its converting the concept from independing tools into "part of the site" related tools
                Signature
                {{ DiscussionBoard.errors[8849823].message }}
                • Profile picture of the author shahriyar
                  Originally Posted by clalit View Post

                  BUT when i need to "validate the membership" its converting the concept from independing tools into "part of the site" related tools
                  Yes, true. For this purpose, in terms of better security I think its better to integrate the software (at least validate membership) with wordpress to some extent. Otherwise, users can always steal your tool's link and spread it over the net.

                  Another trick would be to use something like this, whenever user logs into the member's area, set a special cookie e.g inmemberarea = 1. Since the iframe tool is in the same domain, that script will be able to access it as well. So, in the tool's script check if the cookie is set (which means the user has logged in the members area), if set load the tool, if not, do not load the tool. This is much simpler solution, but not fully fool-proof.
                  {{ DiscussionBoard.errors[8849854].message }}
                  • Profile picture of the author clalit
                    Originally Posted by shahriyar View Post

                    Yes, true. For this purpose, in terms of better security I think its better to integrate the software (at least validate membership) with wordpress to some extent. Otherwise, users can always steal your tool's link and spread it over the net.

                    Another trick would be to use something like this, whenever user logs into the member's area, set a special cookie e.g inmemberarea = 1. Since the iframe tool is in the same domain, that script will be able to access it as well. So, in the tool's script check if the cookie is set (which means the user has logged in the members area), if set load the tool, if not, do not load the tool. This is much simpler solution, but not fully fool-proof.
                    OR :-)

                    Using internal redirect to mask the actual url
                    So then if someone want to copy the iframe url - its actually copy the redirect url - that url is part of the site and therefore protected ...
                    Signature
                    {{ DiscussionBoard.errors[8849934].message }}

Trending Topics