Is there any way to write rules for robots.txt or htaccess that will block all bots that come from a .ru domain? Thanks
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – EEAA, yoonix, Ward, HBruijn, Jenny D
Yes you can with htaccess and some regex. A quick bit of googling shows up many examples, you could have done that yourself before asking here...
Order deny,allow Deny from .ru Allow from all
However this is reliant on a genuine referrer and therefore can be bypassed. For a more robust method of blocking countries or TLD's you should implement a separate security appliance.