I have that my websites have been hacked by some auto running
BOT/0.1 (BOT for JCE) and
Is there any way that my all websites are only avaiable to genuine browsers and not these automated scripts.
No, you cannot ensure that your websites are only available to genuine browsers. This is because the only sources of data you have to determine the client's platform and web browser are the request headers, which can be completely forged by hackers.
For example, a hacker could use a tool like Fiddler to send a custom HTTP request to your website with a forged
It would be best to drive a stake through the problem's heart rather than try to put defense after defense in place. If you're able, look at the application and try to find out how they were able to get in, and try to patch the holes. The most obvious places to look are form inputs - do these get passed to SQL strings without being parsed first? Are they generating SQL strings instead of using prepared statements (which kill off SQL injection attempts from the word go)? If it's something you can fix, do. If it's someone else's product, create a patch and send it to them.
The worst thing you can do in security is assume it won't happen to you. Worms, viruses and autobots are usually not smart enough to realise your little site isn't a threat.
Be smart, be safe, be aware.