Using the hosts file on a web server will do little to offset a DDOS. However, if you have control of the nameserver for the domain which the attacks are directed, you can change the address to point to either a private ip address, or the ip address of the suspected originator of the attack. Just beware that changing the ip to that of a suspected atacker may open you up to legal vulnerabilities.
_________________
I am AUTISTIC - Always Unique, Totally Interesting, Straight Talking, Intelligently Conversational.
I am also the author of "Tech Tactics Money Saving Secrets" and "Tech Tactics Publishing and Production Secrets."