If you have problems with certain visitors to your website, you can easily block them by using their IP address or the domain name from which they are visiting.
- Here’s an example that denies a user by their IP address:
deny from 111.111.111.111
When the user tries to connect to your site from that specific IP, they see a 403 Forbidden page instead. If you want to block an entire block of IPs, just leave the last octet off. For example:
deny from 111.111.111.
This denies access from anyone using an IP in the range from 111.111.111.0 all the way up to 111.111.111.255.
- In order to block a domain, use the following:
SetEnvIfNoCase Referer "domainname.com" bad_referer Order Allow,Deny Allow from ALL Deny from env=bad_referer
If you are a Host Duplex customer and still have questions, please open a ticket in the Host Duplex client portal.