![]() |
404 error ban.
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!! |
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 :p [high]* Velocd clicks install[/high] |
My hack lets people use whatever :p
nice hack though, but I prefer mysql errors :p |
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 ^_^ |
Yea, im very lazy. ill zip the images up sometime tonight.
|
hmm would this also work?
PHP Code:
PHP Code:
|
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 :).
|
Quote:
What does the @header mean/do ? |
Quote:
More info here: http://php.net/header |
Smart and simple, I like it. :)
Great idea :D |
Hmmm... too bad I already did this with the blank page ban...
|
Quote:
|
Thanks yo. I needed this.
Make more hacks. |
Quote:
|
Nice one:)
Satan |
Very nice indeed Anime :)
- miSt |
I updated the hack for this. If anyone has installed it they sould download the new txt in the frist post and re-install. Also remove the loo_404 template.
Quote:
|
@Anime - I can't download the new file - IE says it is corrupt:confused:
Satan |
Heres the file.
|
Thanks:)
Satan |
Cool! installed... :)
|
Thanks For this nice Hack m8.
|
Nice hack, but I decided to use vBStealth with a little bit of code from the HellBan hack to torture the user with Internal Server Errors every 3rd page. I'll click install becuase this hack is still cool. :)
|
I'll tell you how I do it. You can achieve the same result without hacking by doing this:
Open phpinclude template, add to the bottom: Code:
if ($bbuserinfo[usergroupid] == 8) { |
You could, but what's the fun in that? :)
|
Thanks, Erwin. Will use your suggestion.
|
Great hack, man! Works brilliant!
But now another question raises: How can I hide the banned users from the memberslist on the forum? |
Open memberlist.php and find the code below:
PHP Code:
:) |
I have no use for this really (at least at the moment) but I just gotta say what a great idea! Nice job! :)
|
The query doesn't work for me - I get:
Column count doesn't match value count at row 1 On vB 2.2.9 |
[removed because of confusion]
|
Don't you mean this section?
PHP Code:
Quote:
|
Boofo, you're right - my memory is getting to me and I got confused by john's post - I've reverted back to my original post.
You don't add anything - just find that code section, and add usergroupids to exclude. :) |
You need to add the usergroupid to hide in both pieces of code, one for the count (your code) and one for the actual name (the $users code) below that. :)
|
Is there a way this can be done for IP/E-mail banned users as well? I dont like users coming back on proxys.
|
Quote:
|
I tried this and it still brings up the Sorry the administrator has banned your IP address... I was looking around in the files for the place that actually calls the template error_banip but I couldn't find it. Would there be anything I could do there to have IP banned users also get the 404 ban?
|
Quote:
Open /admin/functions.php, find: PHP Code:
Code:
header("HTTP/1.0 404 Not Found"); |
Oh yeah I figured that out a while ago. Thanks though. If anyone else is wondering that then you just got your answer! :)
lol |
cant run the query for some reason :
SQL-query : INSERT INTO usergroup VALUES ( "333", "Banned", "", "0", "1", "1", "1", "1", "0", "1", "0", "0", "0", "1", "1", "1", "1", "0", "0", "1", "1", "1", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "1" ) MySQL said: #1136 - Column count doesn't match value count at row 1 |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|