Website Protection

Associate
Joined
21 Jan 2006
Posts
2,171
Location
Seaham, Co. Durham
I need some kind of script that will stop a user submitting requests to my website for a certain amount of time if they try to submit more than 5 requests every 10 seconds, people have been abusing my website and it was taken off the server because it was creating too much load, the only way to get it back on is to protect it to stop these people making so many requests.
 
i'm not using any script at the moment, i came here to see if anybody knew of one i could use, there doesn't seem to be any on the internet from what i can find
 
If your hosting provider supports php scripting then use that.

You're basically going to need to look for using sessions with php, you'll find a wealth of tutorials.
 
You can't stop someone making a http request to your server unless your hosting provider blocks their IP - not much use if the traffic is coming from multiple IPs, i.e. a DDoS attack.

All a script can do is treat a request differently depending upon a set of rules - this will still require the server to process the request and decide what to do with it, so you're still going to be creating load in this case (and possibly more cpu usage than just serving a static html page, although not as much bandwidth).
 
What about javascript to get their IP, and if more than 5 hits are made from that IP in 10 seconds then block them from submitting another request by redirecting them
 
If its form based, it would be worth using a random number generated in an image, another useful item is using ioncube, that will protect the files using encryption, will cost tho
 
Back
Top Bottom