Loading...
 
Features / Usability

Features / Usability


Limiting Downloads from File Galleries

posts: 4

Hello,

Does anyone know of a feature or available hack to 1.8.x which will limit downloads from the file galleries? What I'm trying to achieve is limiting the number of downloads which can be made from the same IP in a period of time. For example, preventing more than 10 downloads from the same IP within 10 minutes.

I'm basically looking to prevent web spiders and malicious kids from hammering the bandwidth of my Tiki by repeatedly downloading files from the file gallery.

Any ideas?

posts: 2881 United Kingdom

>
> Any ideas?
>

Not sure anything "mods" style exists for that.

The problem with storing the data in a browser side cookie is if the user blocks the cookie, which most "bot" style scripts will do its pointless.

You will need to implement the solution therefor server site.

Personally I feel the solution is a new db table, storing session id, object and objectid, then the feature can actually be applied to anything within Tiki

Hope that gives you some courage to dig some PHP around smile

Damian


posts: 1092

in tikihead (1.10 cvs) you can now record the download action (feature actionlog) So with a little program that scans the table , you will be able to do it
sylvie


posts: 4

Thanks for the suggestions.

I don't fancy digging around in the PHP for this one just yet. :-)

On closer investigation it turns out that most of my problem was msnbot repeatedly downloading the same files. Thanks Microsoft.

I've stopped search engines downloading files from my tiki by adding "tiki-download_file.php" into the "robots.txt" file. That will have to do for now.