PHPBuilder - Anti - Leech 2.0

RSS Twitter

Anti - Leech 2.0

by: pcordero
August 9, 2000

Version: 2.0

Type: Full Script

Category: HTTP

License: GNU General Public License

Description: Allows visitors to only access pages on your site through a link and only from your domain. Don't need to know the reffering page. Change the domain to yours and paste into all pages needed. Visitor can not access a page directly through the URL.

// this parse's into the following: $url["scheme"], $url["host"], $url["path"]
$url = parse_url($HTTP_REFERER); 

//$url["host"] could be in uppercase so.. new var to lower

// checks proper domain only
// no reffer needed
if ($check!='')
echo "<meta http-equiv=\"refresh\" content=\"0; url=\">";

Comment and Contribute

Your comment has been submitted and is pending approval.




(Maximum characters: 1200). You have characters left.