![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Master of Gfy.com
Industry Role:
Join Date: Feb 2002
Posts: 14,887
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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..
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
that DOES work
![]() DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Master of Gfy.com
Industry Role:
Join Date: Feb 2002
Posts: 14,887
|
excellent, really appreciate that lane
|
![]() |
![]() ![]() ![]() ![]() ![]() |