Jump to content

Recommended Posts

Posted

If you need to block an IP address from accessing a directory on your site, place the following into an .htaccess file located in the directory you wish to block their access from:

 

Order Allow,Deny

Allow from all

Deny from 111.111.111.111

 

Replace 111.111.111.111 with the IP you wish to block.

 

If you need to block more than one ip:

Order Allow,Deny

Allow from all

Deny from 111.111.111.111

Deny from 222.222.222.222

 

or:

Order Allow,Deny

Allow from all

Deny from 111.111.111.111 222.222.222.222

 

 

If you wish to deny access to an entire block of IPs, only give a portion of the IP:

Order Allow,Deny

Allow from all

Deny from 111.111

 

 

__________________

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...