@ramesh7199,
If you want to stop your site from appearing at search engines, you can use robots.txt, but if you need to stop repetitious requests or DOS like spamming/attacks, then it is more of a network/server issue.
Using robots.txt will not stop your site appearing in search engines, only those who choose to comply with the robots.txt standard.