PDA

View Full Version : Better IP Ban?


The Geek
31 Mar 2004, 16:37
HowdA all...

Was looking for a decent and simple hack to issue a better IP Ban. Couldnt really find anything I liked so I did a quick hack job. Its not genius or anything... just copy and paste modification.

In includes/functions.php search for:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And I replaced it with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Yes... this is semi sloppy as this is most of the code from the redirect function in the same file.

Anyway... thought I would share just in case it can help someone else. I am sure someone can gussy this up if it so moves them to.

Gotta love the page they are redirected to ;)

nJoy

Areku
31 Mar 2004, 19:58
What's the difference between the standard way and your way?

The Geek
31 Mar 2004, 20:14
The standard way simply spits out a box saying 'you're banned'. This allows you to put whatever text you want and then redirect them somewhere else. That really pisses them off.

MilleniumClock
07 Apr 2004, 12:31
that's really cool nail_geek, at least you know php unlike me

BUT

i do believe that you could already do something like that by just editing the "error_banip" template

:)

nice try anyways

The Geek
07 Apr 2004, 15:09
that's really cool nail_geek, at least you know php unlike me

BUT

i do believe that you could already do something like that by just editing the "error_banip" template

:)

nice try anyways
Huh. I assumed you couldnt stick a redirect mid html (doesnt it have to be in the headers?). Sure you could stick a link in the template... but who would click it? Anyway... It amused me and really pissed off my banned members. Now I must develop something for proxie servers ;)

NetFXMedia
18 Apr 2004, 02:22
Huh. I assumed you couldnt stick a redirect mid html (doesnt it have to be in the headers?). Sure you could stick a link in the template... but who would click it? Anyway... It amused me and really pissed off my banned members. Now I must develop something for proxie servers ;)
You can have a Javascript redirect it mid-html.

yoyoyoyo
16 Aug 2005, 06:32
haha very cool! thanks much- I must have missed this before.