#native_company# #native_desc#
#native_cta#

Anti – Leech 2.0

By pcordero
on 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
$check=strtolower($url["host"]);

// checks proper domain only
// no reffer needed
if ($check!='your.domain.com')
{
echo "<meta http-equiv="refresh" content="0; url=http://your.domain.com/warn_page_or_redirect">";
exit;
}
?>