Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Secure Directories by IP Address and/or Domain


Code Snippet </> Info


Snippet Name: Secure Directories by IP Address and/or Domain

Description: In the following example, all IP addresses are allowed access except for 12.345.67.890 and domain.com.

Note: Add as many deny from settings as you need.

Author:

Last Modified: 2014-05-18 18:00:56

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
Copied To Clipboard!

# Allow all except those indicated here <Limit GET POST PUT> order allow,deny allow from all deny from 12.345.67.890 deny from 12.678.90.123 deny from .*domain1\.com.* deny from .*domain2\.com.* </Limit>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library