473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Protecting Against Download Managers.

Hi I am running a website which is a mirror for a popular file and it gets reasonably heavy traffic. Its runs on a VPS account but a GOOD VPS account :)

It seems that download managers are a problem, trying to make multiple connection at once (sometimes way too many). When the downloads are heavy, this floods the server. I haven't yet found any good advice through google about how to handle them.

I could write a PHP script which generates a unique code on the downloads page and then only allows that code to be used once after clicking on the download link. If the code is invalid, it could output nothing. I also know I can also check the http referer but I believe many download managers will fake this.

I have tried to configure apache and seem to have improved performance but I am looking for general ideas. Perhaps the apache mod "bandwidth" might be useful. I don't want to cap download speed just control the maximum number of concurrent connections per IP.

Perhaps using a PHP script is NOT the ideal solution as obviously processing the script each time might waste server resources.

Anyone offering of advice related to this matter is appeciated.
Dec 8 '06 #1
1 2935
sashi
1,754 Expert 1GB
Hi I am running a website which is a mirror for a popular file and it gets reasonably heavy traffic. Its runs on a VPS account but a GOOD VPS account :)

It seems that download managers are a problem, trying to make multiple connection at once (sometimes way too many). When the downloads are heavy, this floods the server. I haven't yet found any good advice through google about how to handle them.

I could write a PHP script which generates a unique code on the downloads page and then only allows that code to be used once after clicking on the download link. If the code is invalid, it could output nothing. I also know I can also check the http referer but I believe many download managers will fake this.

I have tried to configure apache and seem to have improved performance but I am looking for general ideas. Perhaps the apache mod "bandwidth" might be useful. I don't want to cap download speed just control the maximum number of concurrent connections per IP.

Perhaps using a PHP script is NOT the ideal solution as obviously processing the script each time might waste server resources.

Anyone offering of advice related to this matter is appeciated.
Hi there,

A good way to handle this matter is at port level. You need to identify port commonly used by these download managers. If you are on Linux box you can make use of the iptables firewall rules to in DROP / REJECT connection on particular port, hope it helps. Good luck & Take care.
Dec 8 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
5
by: John | last post by:
Dear all, I've got a security question that is so difficult that "maybe" there will be no answer for it. It's regarding protecting asp code. I did write some asp code, that I sell to...
2
by: Pierre Phaneuf | last post by:
At my workplace, we are in the process of migrating to a component system similar to COM (but not COM itself, as we have some space and portability requirements) that uses refcounting for resource...
87
by: ziliath | last post by:
I recently tried out the Google "top coder" contest, as a C++ coder. I noticed immediately that they expected me to know STL. To which I say, what the fuck?! I may be missing something, but at...
3
by: Bouffa | last post by:
Hello everyone, I suppose you all know force-download scripts. The problem is that these scripts don't allow files to be splitted when downloading them via a download manager. I've found a...
4
by: clintonG | last post by:
To all Microsoft partners and customers who have been unable to download recently or access ASP.NET documentation from the msdn2 website and for all of those customers who have been lied to and...
22
by: flit | last post by:
Hello All, I have a hard question, every time I look for this answer its get out from the technical domain and goes on in the moral/social domain. First, I live in third world with bad gov., bad...
8
by: Gabriele | last post by:
I'm studying differences between those two architecture in order to choose a setup to develop a completely new application. I'm a programmer with some experience on C++ and PHP and i have basic...
5
by: Khafancoder | last post by:
Hi guys, i am building a FileSharing website, i wanna allow users to be able using download managers such as DAP to download files from webserver but don't allow them to retrive files url......
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.