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 ++ |
|
Snap HTML Code Editor: Paste the source code, make changes and instantly see it in live preview. Snap HTML Code Editor
|
|
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>
|