Forum Moderators: bakedjake
For resource intensive scripts, I always check the load average on the box first and abort with a "Try Back Later" message if the load average is too high. That prevents malicious users, bots, or even spikes from TV publicity from bringing your entire site down.
I also keep a list of bots and use robots.txt and mod_rewrite to prevent them from accessing scripts.
I have another list of bots (site downloaders, email harvesters, etc.) that I don't allow to access any page on the site.
I also monitor my logs for IP addresses with a lot of traffic. Usually it's just search engine spiders, but sometimes it's site downloaders or bots masquerading as a regular browser. I usually deny from that IP address to block them.