PDA

View Full Version : Miscellaneous Hacks - Smilie Abuse Protection


eXtremeTim
06-08-2003, 10:00 PM
This hack will no longer be supported at vb.org If you are using this hack and need support please use this thread http://www.vbhacks.us/forum/showthread.php?t=38



What this hack does:
This hack make it so that your users cannot add a huge number of smilies to a post and hope to bring your server down.
The way vb currently filters smilies is that it parses them into the <img tags and counts the total number of html <img tags.
What this hack does is counts the number of smilies before vb even parses the smilies.
The parsing of the smilies can put a great load on a server and bring it down if they use enough smilies.

This hack will take your max image amount and add 15 images over the limit before this hack will actualy activate and warn the member. This hack will not work properly for thoose who have set the max image option to 0.

Features:
when system is activate user will be show an error page for to many images. User will also get a Private message telling them that they went over the limit and how many images they posted. The webmaster will get an email as well telling him the users ip,host,username,userid,how many images they tried to post.
Plus the user account you setup in the file will also get a private message containing this info as well.

I will provide support in this thread hear and on my site. If you have any reason to need support right away please ask for it at my site. http://www.extremescripts.com (http://www.extremescripts.com/) you will have to register to post there. I am almost always on my site so I will be able to notice any problems you guys have faster if they are posted there. I will try and support it as much as i can here.


Support thread on my site: http://www.extremescripts.com/forum/showthread.php?threadid=52

N9ne
06-09-2003, 06:47 PM
Nice work Tim, welcome back to vb.org, been a while since we saw you here :). Hopefully this is implemented into vB3 but I extremely heavily doubt it...

eXtremeTim
06-09-2003, 07:24 PM
Its really good to be back my break from vb was fun but working on vb is better than not. :)

eXtremeTim
06-09-2003, 07:33 PM
The only think i can think of is that you placed it in the wrong spot becuase vb will generate that error page on its own as well just latter on in the processing.

Chris M
06-09-2003, 08:08 PM
Nice idea Tim:)

Satan

Freddie Bingham
06-09-2003, 08:10 PM
Today at 12:47 PM N9ne said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=406668#post406668)
Nice work Tim, welcome back to vb.org, been a while since we saw you here :). Hopefully this is implemented into vB3 but I extremely heavily doubt it... Oh really? Hmm.

http://www.vbulletin.com/forum/showthread.php?threadid=72331

eXtremeTim
06-09-2003, 08:27 PM
N9ne im guessing its already being worked on being added to vb3 if not already in the stock code. ;)

Davey
06-09-2003, 08:38 PM
Thanks, will install this.

Magic Spark
06-09-2003, 08:49 PM
Hi eXtremeTim!

Doesn't work for me.

vBulletin 2.3.0.

Have an Test-User named "Test". Private Messages are active.
Set max images under admincp to 5.
Try to post 21 and more images (smilies).
I see the error message that I try to post to many smilies, but I don't receive any PM on my Testboard?!
When I log in as admin, there is no PM too.

eXtremeTim
06-09-2003, 09:10 PM
Did you configure the greeter id to be the id of your admin acount?

Magic Spark
06-09-2003, 09:34 PM
Yes, I have!

Both users, admin and the test user, gets no PN!

eXtremeTim
06-09-2003, 09:43 PM
Do you get the error email?

Magic Spark
06-09-2003, 10:03 PM
Nope, no emails!

My Testboard is lightly hacked!
Let's see if other users have the same problem. ;)

cirisme
06-10-2003, 01:54 PM
Excellent hack.

I was planning on using this, until I maxed out my charecter limit on posts with smilies and it did nothing to the server. Which, I thought was odd.

yxboom
06-11-2003, 06:15 PM
No PMs or emails are being sent.

yxboom
06-11-2003, 06:28 PM
Nevermind.

Magic Spark
06-11-2003, 06:45 PM
It would be a great hack!

eXtremeTim, please check it again.

eXtremeTim
06-11-2003, 10:16 PM
I have tried this on a hacked forum and on a fresh install and it works fine. Can you post the lines from the hack and like 15 lines above and below it?

yxboom
06-11-2003, 11:09 PM
My problem was I did it the first time and no notification but I got another user to do it and it sent the notifications with appropriate rebuke.

eXtremeTim
06-12-2003, 02:58 AM
Glad to hear its working for you now. But it should work even if you test it with the account you setup for it to notify. I tested it with my main admin account and a few other accounts.

eXtremeTim
04-01-2004, 04:56 PM
This hack will no longer be supported at vb.org If you are using this hack and need support please use this thread http://www.vbhacks.us/forum/showthread.php?t=38 (http://www.vbhacks.us/forum/showthread.php?t=38)