![]() |
Php question
I got a bunch of people's ips that I would like to redirect (just annoying people that come to my site and post stuff)
is there any script that will read from a banned list of Ip's and redirect them to wherever, something simple so I could just put ti in the <head> tags or wherever ? any help would be great thanks |
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.. |
that DOES work :)
DynaMite |
excellent, really appreciate that lane
|
| All times are GMT -7. The time now is 04:52 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123