Hi, I need a very little script. I'm sure a php coder could do it in 5 minutes. It's a simple cloaking script that needs to do this: IF the visitor come from [LIST OF SITES] THAN display something ELSE display something else For example: if the visitor comes from digital point serve <html> <head> <title>Page 1</title> </head> <body> --Something-- </body> </html> Else <html> <head> <title>Page 2</title> </head> <body> --Something else-- </body> </html> Please PM me your price. Cheers Ithilnet
<?php // Sites to cloak $sites = array(); $sites[] = 'digitalpoint.com'; $sites[] = 'anothersite.net'; $sites[] = 'onemore.site'; if ( !empty($_SERVER['HTTP_REFERER']) ) { $referrer = str_replace('www.','',parse_url($_SERVER['HTTP_REFERER'],PHP_URL_HOST)); if ( in_array($referrer,$sites) ) { ?> HTML page 1 <?php exit; } } ?> HTML for page 2 PHP:
I just tried that code you posted rodney, but I can't get any referer cloaking scripts to work. I guess I'm just an ignorant noob. Shouldn't this code work too?