Back to vBulletin 3.6 Add-ons

Attachment Views Flood Check
Mod Version: 1.00, by AlexanderT

This modification is in the archives.
vB Version: 3.6.8 Rating: (0 vote - 0 average) Installs: 12
Released: 23 Sep 2007 Last Update: Never Downloads: 89
Not Supported DB Changes Uses Plugins Code Changes  

Only 56 thread views, but 4163 attachment views: We all know how wrongly configured download clients and search bots gone berserk can inflate the view counts of attachments.

To solve the problem, I wrote this mini-mod that (temporarily) stores the information of the downloader - more specifically, it generates and stores a hash made out of his IP, his User ID (0 for guests), and the Attachment ID. This hash will "timeout" after x seconds (default: 60) and the timeout will be renewed whenever the person reinitiates the download within that time-frame. In other words, only when there's no download attempt within x seconds will a new download request by the same user of the same attachment be considered a new view count.

This mod adds 1 to 2 highly optimized database queries whenever attachments are downloaded. Unless you run a high-traffic forum with lots and lots of attachment downloads, this should not cause any problems.

This mod also requires a tiny filechange; you find the installation instruction in the attached readme.txt.

Tips for improvements are always welcomed. Also feel free to build your own products based on this one (with attribution please).

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-aviewsfloodcheck.xml (3.3 KB, 51 downloads)
File Type: %1$s readme.txt (574 Bytes, 57 downloads)

Similar Mods

Email Flood Check 1.0 vBulletin 2.x Full Releases
Apply flood check to guests vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024