I have many bots that are accessing my site, and since they use mostly amazon web services to spam with the requests, in the logs it looks like that:
ec2-47-128-60-90.ap-southeast-1.compute.amazonaws.com
ad2-47-128-60-30.ap-southeast-1.compute.amazonaws.com
So i would like to know if it possible to create a rule that would block that request, if the host contains compute.amazonaws.com
.
I tried that but it didn't work:
Order Deny,Allow
SetEnvIf Remote_Host compute.amazonaws.com keep_out
Deny from env=keep_out
Also tried that but it didn't work:
Order Deny,Allow
Deny from compute.amazonaws.com
HostnameLookups
Directive - But regardless of theHostnameLookups
setting, Reverse DNS always be done when you use host/domain names in httpd.apache.org/docs/2.4/mod/mod_authz_host.html .Order Deny, Allow
- see : httpd.apache.org/docs/2.4/upgrading.html#run-time and should be usingRequire not host compute.amazonaws.com