Back to vBulletin 3.8 Add-ons

FractalizeR: Search limits
Mod Version: 1.00, by FractalizeR

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 17
Released: 30 Jun 2009 Last Update: 30 Jun 2009 Downloads: 75
Not Supported Uses Plugins Re-usable Code Translations  

Introduction
Some time ago I received several messages from my server about database error. They are described http://www.vbulletin.com/forum/index.php?t=309233. It looked like malicious server overload or hack attempt. It seemed to me like some hacker found the way to flood my server with expensive queries. Some time after http://www.vbulletin.com/forum/project.php?issueid=28376.

This is not an engine bug, at least it doesn't look like one. But until devs will make a decision (I guess they are too busy with VB4), I wanted my forum to be protected. So, I made this addon. It should be compatible with vb 3.6.x, 3.7.x and 3.8.x

Engine specifics
As far as I can understand, on search, Vbulletin makes at least two additional queries for each word you searched for (one per word table, second - for post table to find posts for that word). If some words ORed - results joined. If they are ANDed - an intersection is calculated in PHP via array_intersect. Those queries are without any LIMIT clause and can make a load on server. Actually, that is why search is so resource-intensive.

What does it do?
It limits the amount of search operators and overall search query word count to prevent high server load.

Hack is disabled after installation and you need to setup limits in Vbulletin options after installation.

How to install/upgrade?
Just import/reimport product xml.

What are the recommended settings for big boards?
I think, you can limit overal operators to 4 and a number of search words to 7-10. I don't think regular users will push the limits.

Version history:
1.0
Initial release

Download

File Type: %1$s vbulletin-language-ru.xml (903 Bytes, 39 downloads)
File Type: %1$s product-fr_searchlimits.xml (5.1 KB, 71 downloads)

Screenshots

Click image for larger version
Name:	Search_Limits_Settings.png
Views:	211
Size:	20.9 KB
ID:	101270   Click image for larger version
Name:	Search_Limits_Search_Start.png
Views:	322
Size:	14.9 KB
ID:	101271   Click image for larger version
Name:	Search_Limits_Search_Error.png
Views:	331
Size:	9.5 KB
ID:	101272  

Similar Mods

Moderators Functions FractalizeR: Show items, awaiting moderation in notifications area vBulletin 3.7 Add-ons
Administrative and Maintenance Tools FractalizeR: VBulletin Antivirus vBulletin 3.7 Add-ons
Show Thread Enhancements FractalizeR: Extended Post Censor vBulletin 3.6 Add-ons
Administrative and Maintenance Tools FractalizeR: IP Tools - get extended information about IP addresses vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024