I used to know how to do this but cant find the script. i need a php script that redirects someone if they come threw my site via a certain referer. If they dont come threw that certain referer they can view the site as normal anybody know how to do this?
I believe it was miliscript that you used to use as this was a popular one. However I would use a .htaccess to bounce your own custom php to bounce them accordingly. Or you can simply use .htaccess to do the whole thing not sure how much data logging is required here.
A simple php function like this would also work. . . <? if(!empty($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == "www.spamforums.com"){ header('Location: http://www.redirected.com/'); } ?> <html> <body> Regular site </body> </html> Code (markup): http://us3.php.net/header http://us3.php.net/reserved.variables