The hash method Denis suggested can be automated to accommodate the
creation and decoding of a hash value for any URL, if your URL list
If the URLs don't change often, there are multiple possible methods:
1) Array method
Make a PHP array containing the complete list of URLs to allow (or
store the list in a disk file where they're easy to maintain).
Compare the incoming query string URL against the list.
If it's not in the list, generate a 403 Forbidden error and quit.
2) Switch method
Use a switch statement.
Create a case for each legal URL.
The default case, for illegal URLs, can generate a 403 Forbidden error
3) .htaccess method (provides additional security)
If all the legal URLs are on your site, any URL containing http: //
that isn't followed by your domain name is illegal.
Create a RewriteRule that gives a 403 error for any incoming request
that contains the string http followed by any domain name other than
This method can also replace the array and switch methods:
modify your RewriteRule (in the RewriteCond's) so that each URL to
allow is allowed, but anything else is rejected with a 403.
> > Denishttp://www.UnmaskParasites.com- Hide quoted text -
> - Show quoted text -