PDA

Click to See Complete Forum and Search --> : odd question



cembert
02-16-2004, 07:33 PM
Is there any way to restrict certain ip address' from viewing a site. Possibly a line of script which prevents a cetain batch of IP's and redirects.

the sherrif
02-18-2004, 08:11 AM
if you have php,


<?php
if($_SERVER['REMOTE_ADDR'] != '192.168.0.1'){
exit();
}
?>

cembert
02-18-2004, 02:13 PM
What would I call the PHP file.
Assuming it would be placed in an outside folder.
Thanks-Chris