Jump to content

Terms of use PHP script


catherinePHP

Recommended Posts

Hello

 

I have many php scripts and I want the user to agree to the terms of use before using them, I want a way to code it in which the user can never use any of the scripts without agreeing. I found some scripts online but all were not working properly because a user can directly go to the script link without going through the terms of use first.

 

please help.

Link to comment
Share on other sites

So, I assume they'll be downloading the scripts?

If so, some thoughts:

a] Password protect the site, require a TOS agreement at registration.
b] Create a "reader script" which does whatever frontend you require (filling in a TOS form), then reads the script's code from *outside* the web root and outputs it to the browser/whatever.

c] Check $_SESSION vars at the top of each script and redirect to the TOS page if the correct variable hasn't been set (ostensibly by clicking the right boxes on the TOS).

HTH,

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.