That method can help with smaller attacks, but if the attack's large enough, it'll still put extra overhead on the web server and cause it to bog down.