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
https://forums.phpfreaks.com/topic/278096-terms-of-use-php-script/
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,

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.