CATEGORY: .htaccess

QUESTION:
Block an Ip or Domain

ANSWER:
.htaccess Access Control

Sad but true: There often comes a time when the open nature of internet becomes a problem. This can be by accident (a badly behaving robot) or on purpose (someone attacking a banner network). In either case, the first level response is the same: block access with your .htacccess file :-).
This isnt meant to be a full fledged tutorial, but a quick example of the more common needs.

The most common scenario is where you want everyone except a few visitors to be able to get to your site. Your .htaccess file would start like this:



order allow,deny
allow from all Then you follow that with lines to specify the addresses that you want to block:

deny from 192.168.128.14

deny from 192.168.128.

deny from somehost.example.com

deny from .example.com
############################################################

Please be advised that this is a SUPPLEMENTAL Online Manual.

The PRIMARY Online Manual is inside your Online Control Panel... to access it, just click Documentation link at very bottom of Online Control Panel screen.

You should always consult the Online Manual inside your control panel first... and only consult this SUPPLEMENTAL Online Manual as a last resort.

if after consulting the Control Panel Documentation, you still need assistance, please CONTACT SUPPORT

top