PDA

View Full Version : Per-IP access restrictions


Xordan
12-01-2007, 11:41 PM
Hi,

It would be nice if there was an option for us to enable limitations on the number of connections per IP for a file. Basically it would stop people from hammering the server with download managers and causing high CPU usage.

I had this problem recently because I was getting a huge amount of hits, and multiplied by the number of connections people's download managers were creating I was swamping the server with a large load.

Now, I've written my own basic scripts linked with a mysql db to keep track of the number of connections, but it's not a very nice workaround and I'm aware of php modules existing (if it's not an inbuilt feature) which can do this in a nice way. I think it would benefit everyone if such modules were added so those of us expecting a large number of visitors can effectively control the load.

dvdriot
12-02-2007, 07:58 AM
I read about a mod for limiting per ip, not sure about per file and I don't think you could potentially set this on the end user cpanel type of thing. It would require root access which we don't have access to. I also read that you could either throttle the ip download meaning limiting the kb's per second.

If you had a vps when cirtex goes that route it might be a possiblility with some work. Until then I don't think you really can do much.

Good Luck!!

Cirtex Admin
12-08-2007, 02:15 PM
This has been tested on our servers before but it is not good for everyone and has it's upsides but also many downsides to implementing this.

BlueOx
12-11-2007, 04:52 AM
This discussion is on a similar topic. May give you some ideas to point you in the right direction.

http://www.webmasterworld.com/apache/3514387.htm