vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderator and IP 404 Ban (https://vborg.vbsupport.ru/showthread.php?t=49558)

VeoMorphine 03-01-2003 10:00 PM

Moderator and IP 404 Ban
 
IP, And Mod BanGroup 404 error Ban

Hacker: VeoMorphine
Support Thread:
Install Complex: Easy
Install Time: 5 minutes

Discription: This hack will display a 404 error to any user who is banned from the forums by there IP or by a moderator. It sends a 404 header to the browser so that it will show that browsers 404 error page. Meaning that there is no need to make a copy of a 404 page. And the cool thing is, its a REAL 404 error, not just a knock off one riped from the web!

I got the idea off of Anime-loo's Hack on vbulletintemplates.com that uses the phpinclude template to show a 404 for users banned by mods. Thats kinda included here but i made it go nto global.php insted of phpinclude.

Another trick with this.
If you put:

PHP Code:

<?
chdir('forums/');
require('global.php');
chdir ($DOCUMENT_ROOT);
?>

At the top of your NON Vb php pages this will make the 404 ban work that page and alot of other stuff as well, like evaling templates(i think) and what not. This will also show the forums offline message ont he page if your forums are off.


Im having problems finding where the error_banemail template is evaluated. If somone can tell me what file it is evaluated in, i can make it so it 404bans via e-mail as well

John 03-05-2003 01:25 PM

I don't see the difference between this and Anime-loo's hack.

https://vborg.vbsupport.ru/showthrea...threadid=48710

Their hack also works through global.php.

VeoMorphine 03-05-2003 02:24 PM

That only works for usergroup. If somone clears there cookies and go's back to the forum, they'll see there is no 404 error.

My hack will also work for IP bans, so even if they clear there cookies, they will still get a 404.

TexasOutdoors 03-05-2003 03:36 PM

Do you think this will work on the PORN SPAM bot going around? After banning the bot, it continues to try and reply to messages, even after removing the account. I wonder if this will legitimately show them the 404 page, or can it get around that as well.

Brad 03-05-2003 03:43 PM

If you are worried about the porn spam bot you sould upgrade to the lastest 2.3.0 RC or install the image verfication hack here.

Quote:

I don't see the difference between this and Anime-loo's hack.

https://vborg.vbsupport.ru/show...&threadid=48710

Their hack also works through global.php.
Its differnt because it works with ip ban to, i dont use ip bans unless i ban them from the whole server. IP bans via a the forums are just to much tourble and i end up having to ban many potinal users cause 99% of the people out there do not use a static ip. :)

FFMania 03-09-2003 12:17 PM

Installed it....but when I test it...I got a blank page and not a 404 error page instead =/

Oh, I am using IE6.0 btw....


All times are GMT. The time now is 11:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete