htaccess block visitors from a country's domain suffix
Posted on 2014-07-14
The contact form on our website has been repeatedly spammed by visitors from certain countries. It also happens that we don't expect to do business with visitors from those countries. Can I use .htaccess to block a country's domain suffix? I understand that a large list of IP ranges can also be used, but I'd like to keep it simple. For example, would
"deny from .us" block visitors with the .us suffix?