View Full Version : Ban by Referer
filburt1
06-07-2003, 10:00 PM
This hack bans IP addresses preemtively based on the HTTP_REFERER. Use this hack when users from a certain domain are registering and abusing your forums.
For example, consider the domain "vbulletin.org" is blacklisted. Users who are not registered (or at least not logged in) may click a link at vB.org to your forums. Because you have blacklisted the domain, their IP is immediately banned. You are also e-mailed when it happens.
This is not for the feint-of-heart to configure. You need to know PHP. If you don't know basic PHP, don't ask how to install this hack. Instead (no offense intended), learn the basics of PHP.
I used it recently at my forums, much to my amusement at times when the trolls suddenly disappeared and kept saying their IP was banned "even though they never visited before."
Dean C
06-08-2003, 05:06 PM
Now you could have done this nice and easily with admincp options ;)
- miSt
Looks interesting. I was actually thinking about this a few days ago. I might try it out. Doesn't seem too hard..
S.Shady
06-08-2003, 07:20 PM
Nice hack. Ill go learn PHP now :)
i will probly end up using it but as of now we dont need it
MentaL
06-08-2003, 07:39 PM
actually this is a good hack :)
1] stops leaching of sites you suspect
2] stops people linking to your site from a site which you dont want linked from (this works perfect for me)
i think its good :) :neato:
blackice912
06-08-2003, 11:46 PM
So instant ban? That's cruel :p I like it.
filburt1
06-08-2003, 11:54 PM
Yep, they're banned before they can even try anything. The IPs are included in the normal IP ban option so you can remove them later there.
S.Shady
06-09-2003, 12:41 AM
--off-on topic--
also good for if you and anouther site get into a site battle. those are fun to be in but hosts sh*t them selfs becuase each site messes each opther up. not in fun or playing in hatred. our old site battle lasted a year with ttt.com ttt is shortend of the url.
--/off-on topic--
I'm just starting to learn php but need to ask you guys a question so I can go on because I'm stuck on the array()
Should the script look like:
$baddomains = array('www.domain1.com','www.domain2.com');
Thank you for any help.
Bump, sorry, but I really would like to know the answer on my above question.
Erwin
06-16-2003, 01:21 AM
Isn't there a risk of banning potential members who are just coming over to have a look at your forums, and may join and be a good member?
Gary King
06-17-2003, 01:11 AM
NOTE: HTTP_REFERRER isn't always reliable ;)
Although, this will not really affect much, since the majority of the people will still send in the right referrer.
partang2
06-23-2003, 09:16 PM
06-11-03 at 01:10 PM xug said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=407471#post407471)
I'm just starting to learn php but need to ask you guys a question so I can go on because I'm stuck on the array()
Should the script look like:
$baddomains = array('www.domain1.com','www.domain2.com');
Thank you for any help.
Hey! Can someone answer this??
Gary King
06-23-2003, 10:11 PM
Today at 06:16 PM partang2 said this in Post #14 (https://vborg.vbsupport.ru/showthread.php?postid=412051#post412051)
Hey! Can someone answer this??
www.php.net/manual/en/function.array.php
And that line is perfectly fine.
partang2
06-24-2003, 05:04 AM
Finaly.... Thanks
filburt1
06-24-2003, 10:34 AM
Today at 02:04 AM partang2 said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=412120#post412120)
Finaly.... Thanks
I suggest you rethink your attitude. As a free site we're under no obligation to provide any support at all, so you can at least be genuinely thankful...:)
partang2
06-24-2003, 01:29 PM
You can read..? Read the last word in my post one more time please: T-H-A-N-K-S
filburt1
06-24-2003, 01:30 PM
And the first word of your post:
Today at 02:04 AM partang2 said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=412120#post412120)
Finaly
Just a friendly note. :)
partang2
06-24-2003, 01:34 PM
Oh.... "Finaly".... Hm... bad word... Well, sorry if I hurted someones feelings. It was not something I wanted to do.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.