I want to throttle requests to my web server so as to thwart web scraping and denial of service attacks against my site. I'm willing to be relatively lax, the key thing is that no one requests so much so as to slow things down.
I was thinking of setting up throttling by IP address, so that requests from a given IP would be slowed if too many requests were made in a short period of time.
Some questions I have--
- Is this the right way to go about dealing with web scrapers and DoS attacks at the web server level?
- What's a good limit so that I don't inconvenience regular users who may be working on shared IP networks?
- How specifically should I setup the throttling? I'm using Apache/2.2