Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Better IP Ban? Details »»
Better IP Ban?
Version: 1.00, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-30-2004 Last Update: Never Installs: 5
Is in Beta Stage  
No support by the author.

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:
PHP Code:
eval(print_standard_error('error_banip')); 
And I replaced it with:

PHP Code:
                global $header$footer$headinclude$forumjump;
                global 
$timezone$vboptions$vbphrase$stylevar$session$logincode;
                global 
$_POST$postvars$formfile$_REQUEST;

                
$title 'You\'ve been banned!';
                
$message'<p align=center>Your IP address has been banned from my site.<br>I am now sending you somewhere better suited for banishment.<br>Please ensure your volume is on.<br><b>NJoy</b></p>';
                
$url='http://www.e7.pl/~casha/swf/pmf.swf';
                
$pagetitle $title;
                
$errormessage $message;

                
// make sure no one has quotes in the url as it might break the js for mozilla
                
$url str_replace('&amp;''&'$url); //moved here to stop the htmlspecialchars_uni() later having a negative effect
                
$js_url addslashes($url);
                
$url htmlspecialchars_uni($url); // make sure that no XSS can be done by breaking out of the HTML tags

                
unset($shutdownqueries['pmpopup']); // we aren't going to get a PM popup here because we don't have the footer

                
eval('print_output("' fetch_template('STANDARD_REDIRECT') . '");'); 
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-31-2004, 05:58 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the difference between the standard way and your way?
Reply With Quote
  #3  
Old 03-31-2004, 06:14 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-07-2004, 10:31 AM
MilleniumClock MilleniumClock is offline
 
Join Date: Mar 2003
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 04-07-2004, 01:09 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MilleniumClock
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
Reply With Quote
  #6  
Old 04-18-2004, 12:22 AM
NetFXMedia NetFXMedia is offline
 
Join Date: Feb 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
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.
Reply With Quote
  #7  
Old 08-16-2005, 04:32 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

haha very cool! thanks much- I must have missed this before.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07986 seconds
  • Memory Usage 2,273KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete