Hello there, this is my script hope someone can fix this for me ...
PHP Code:
<?php
$allow = array( 'http://www.google', 'http://search.yahoo.com' );
if (in_array($_SERVER['REMOTE_ADDR'], "~$allowed_ips~i")) { echo "a"; } else { echo "b"; }
?>
Right now im using this command
PHP Code:
if (strpos($_SERVER["HTTP_REFERER"], "http://www.google")) { "a"; }
But hope someone can help me to make this, to read from array so can be more easy for me to add the websites what i need
Thank you !
Last edited by ZoC; 11-23-2010 at 02:03 AM..
|