Thread: Php question
View Single Post
Old 03-06-2002, 03:04 PM  
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
hmm, didnt test this but worth to try

if (in_array("$REMOTE_ADDR\n",file("banned.txt"))) header("Location: http://www.wherever.com");


banned.txt should have an ip per line..
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote