GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Php question (https://gfy.com/showthread.php?t=52847)

Pipecrew 03-06-2002 02:38 PM

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

Lane 03-06-2002 03:04 PM

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..

ServerGenius 03-06-2002 03:23 PM

that DOES work :)

DynaMite

Pipecrew 03-06-2002 03:23 PM

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