vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Smilie Abuse Protection (https://vborg.vbsupport.ru/showthread.php?t=54085)

eXtremeTim 06-08-2003 10:00 PM

Smilie Abuse Protection
 
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 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/...hp?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

Quote:

Today at 12:47 PM N9ne said this in Post #2
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/showt...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


All times are GMT. The time now is 04:44 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
  • Page Generation 0.01487 seconds
  • Memory Usage 1,749KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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