vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Block repeat downloads by IP or account? (https://vborg.vbsupport.ru/showthread.php?t=115054)

Greebo 05-08-2006 11:17 AM

Block repeat downloads by IP or account?
 
We had a recent situation where a number of IPs were downloading the same attachment over and over again. While I believe some were legit (we had been referenced on a popular site), I also believe we got targeted by a DOS attempt, because the same file was being downloded in some cases by 0 post uers again, and again, and again. 27 Gigs in 2 days and we're a small forum with a 500G/mo limit.

I don't want to restrict guest attachment downloads completely - but I have for now, and am also forcing free email users to manually request access before getting permission to download attachments. But what I'd really like is a hack to restrict the amount of bandwidth a single IP and/or account can use. I'd like to restrict accounts from d/l the same attachment more than once every, oh, 5 minutes, and the same restriction on IP addresses.

Anyone know of any defensive hacks that would help with this?

Thanks much!
Chuck

home9000 06-22-2006 03:26 PM

This hack will be helpfull for all

berayiwu5 06-22-2006 09:21 PM

Links and Downloads Manager has implemented an option to restrict the number of times a user can download an attachment. Actually, it was I who requested the developer to include that option. See my exchange with AndrewD:

https://vborg.vbsupport.ru/showthrea...wu5#post924597

By the way, AndrewD is a very nice guy. He even PM-ed me when he first implemented that option:
"The new version of LD, 2.1.6,..., includes an optional extra to allow you to limit the number of times a document can be downloaded by a given user.

This is provided as an optional 'plugin' in the extras/limit_useraccess subdiretory of the zip. You'll need to read the instructions in that directory - it's not installed by default." (That was back in March. It might now include more options.)

I haven't got the time to try that option just yet. I don't know if it could also block repeat downloads by IP address. But I'm sure you can do it by user account.


All times are GMT. The time now is 01:05 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.00977 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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