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

Reply
 
Thread Tools
404 error ban. Details »»
404 error ban.
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 02-07-2003 Last Update: Never Installs: 22
 
No support by the author.

Hack: 404 error ban

By: Anime-loo

This hack provides you with a new way of banning people from your forum, i wrote this for a client awhile back and never released it, well i saw the blank page ban released so I decided to release mine .

This basicly dose what the thread title says, if a user is in the 404 banned usergourp they will get a "HTTP 404 - File not found" on any page powered by vBulletin.

Simple i know, but its been useful for me.

Download: Here

Version 2

Version two is now out, remove the the loo_404 template and do the new code edit for global.php to upgrade. do not run the query in the install file if you already have version 1 installed!!

Show Your Support

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

Comments
  #2  
Old 02-08-2003, 09:39 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, I've been doing this for the last 4 months on my vBulletin, but I failed at emulating the 404-error page in HTML, so instead I simply copy+pasted an image of the 404-error page into Adobe, saved it as a really light-weight GIF, then edited the ban-template in the ACP and set the image using CSS as a background of the page, but so it does not repeat. It works well, but if the user simply tried to highlight any of the 404-error text, they would find out it would not be possible.. though, that doesn't mean they'd figure out what I had done to ban them

Anyway, your method wins over mine, so I guess it's time for upgrade

[high]* Velocd clicks install[/high]
Reply With Quote
  #3  
Old 02-08-2003, 09:40 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My hack lets people use whatever

nice hack though, but I prefer mysql errors
Reply With Quote
  #4  
Old 02-08-2003, 09:42 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You forgot to include the images in the 404 also Anime-loo
And I'm fairly sure this 404 is just the internet-explorer version, so let's hope Netscape/Mozilla users don't catch on ^_^
Reply With Quote
  #5  
Old 02-08-2003, 09:44 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, im very lazy. ill zip the images up sometime tonight.
Reply With Quote
  #6  
Old 02-08-2003, 09:45 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What you could do is create a custom 404 page for your server, and then just call it somehow (I think it is possible somehow). That way it's the same in all browser windows .
Reply With Quote
  #7  
Old 02-08-2003, 09:45 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm would this also work?
PHP Code:
if ($bbuserinfo['usergroupid']==333) {
           @
header("HTTP/1.0 404 Not Found");
           @
header("Status: 404 Not Found");
    } 
I use index.php to hide important folders by adding this to them
PHP Code:
<?php
  
@header("HTTP/1.0 404 Not Found");
  @
header("Status: 404 Not Found");
?>
and was wondering if this would also work.
Reply With Quote
  #8  
Old 02-08-2003, 09:49 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Slynderdale
hmm would this also work?
PHP Code:
if ($bbuserinfo['usergroupid']==333) {
           @
header("HTTP/1.0 404 Not Found");
           @
header("Status: 404 Not Found");
    } 
I use index.php to hide important folders by adding this to them
PHP Code:
<?php
  
@header("HTTP/1.0 404 Not Found");
  @
header("Status: 404 Not Found");
?>
and was wondering if this would also work.

What does the @header mean/do ?
Reply With Quote
  #9  
Old 02-08-2003, 09:51 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by N9ne



What does the @header mean/do ?
It sends the user's browser info, like the page status and so on, it can also be used to tell when to update the page in the cace, if it should cache the page and the filetype and so on, with the example I gave above, it tells your browser that this page is 404 (missing) and then the browser shows a 404 file mssing page.

More info here:
http://php.net/header
Reply With Quote
  #10  
Old 02-08-2003, 10:02 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Smart and simple, I like it.
Great idea
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 02:02 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.07342 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete