defending against serious DDoS attacks is not something you can do cheaply. If someone attacks you seriously, you have no option but:
- Give up and close your site
- Hire a hugely expensive content delivery network to set up worldwide load balanced web-front ends for you. This won't be cheap.
By a major DDoS I mean one which causes your hosting provider's upstream bandwidth to become saturated.
You can't handle this type of attack at the application level, it can only realistically be handled by throwing enough money at the problem.
Of course a DDoS atack will probably reduce the load on your server to zero, as legitimate traffic won't be able to get on, so your hourly scripts will run perfectly.
It really depends what kind of DDoS- lame ones (e.g. ones which don't use IP spoofing) can be defended against with existing stateful firewall products which IP blacklist nasty clients.
Mark