I have it but written under Perl/CGI
Contact me for more info
I used to have this PHP script which would.. check the referring domain (multiple) and if authorized would go on and parse the rest of the page, if not it would just stop there and won't go any further.
can anyone help me find this?
Last edited by megacool; May 5th, 2003 at 05:30.
The truth is out there? Does anyone know the URL?
I have it but written under Perl/CGI
Contact me for more info
You could use .htaccess
Change the RewriteRule .*\.(php)$ - [F] to the extension of the pages/files you want to restrict, for multiple files you can use .*\.(php|html|zip|jpg)$ etc ...Code:RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://allowed_domain.com/.*$ [NC] RewriteRule .*\.(php)$ - [F]
Domains not listed there as allowed will be directed to your 403 page
Thanks but
see im trying embed it inside a PHP page I have.. I just don't want people coming to it unless they click on a link to my site.
The truth is out there? Does anyone know the URL?
Bookmarks