Does anybody know any good script that stops flood,dos,ssh attacks ? I have seen such a script in a site which tells the attacks blocked i searched for it but i didnt find it anybody?
This isn't anything to do with PHP. Also, look into limiting connections to your ssh server to only certain trusted ip addresses.
Well for apache there is things like mod_evasive which can semi protect against dos attacks. As for SSH attacks there is things like APF + brute force detection to block ip's and there is also configserver firewall which does the same.