Any ideas how to prevent a attack or a search engine mass call which could overload the server our script is running at? Our site was suspended recently since a web crawler had over 40 simultaneous calls to the main script with different values. How do I keep track of number of ongoing calls by a specific user? Well, that is the easy part (extracting caller from the %ENV variable), increment a counter to keep track of the calls. But, how do I decrease the counter each time a process returns?
Or is there a more simple way?
Or is there a more simple way?