TD's
Detect/Redirect - A very simple detect
and redirect script (only 3 variables to define and 5 lines of code, so
small there isn't even a need to download). This will make sure a surfer is coming from a
specific URL and then redirect them to a sponsor or your signup page (or wherever you
want) if they aren't. If they are blocking their HTTP_REFERER by using an anonymizer
it will still prevent them from accessing your content page. Useful for content pages that
you want to protect from outside linking. This is the CGI equivalent of the Javascript detect and redirect below, but is more
reliable and secure since surfers can simply disable javascript in their browser and still
get to your content page, but they can't disable CGI. If you can run CGI, use
this or a variation thereof instead of the javascript version.
TD Detect/Redirect (demo) Cut-n-paste script from above to txt file and name tddetect.cgi (No download is necessary). The demo will not take you to TD Keno login screen unless the address in your browser is exactly http://www.tdscripts.com/index.html. Now try typing in your browser and watch you be redirected to the Keno page. Cool, huh?
*Use of freeware versions requires a linkback to this page. Please use the following link syntax or you are welcome to take the 3D logo at the top of the page (just make sure you serve it from your server, please):
TDavid's Script Shop - Useful CGI-scripts for Webmasters with freeware versions
[ home ] [ write TDavid ] [ tdkeno ] [ links ]
Copyright 1999-2007 TDscripts All Rights Reserved