mirror of
https://github.com/phanan/htaccess.git
synced 2018-11-08 13:39:40 +01:00
Update README.md
This commit is contained in:
parent
a8982bfbb2
commit
233ef993e7
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,7 @@ What I'm doing here is mostly collecting useful snippets from all over the inter
|
|||
- [Security](#security)
|
||||
- [Deny All Access](#deny-all-access)
|
||||
- [Deny All Access Except Yours](#deny-all-access-except-yours)
|
||||
- [Block a Specific IP Address] (#block-a-specific-ip-address)
|
||||
- [Allow All Access Except Spammers'](#allow-all-access-except-spammers)
|
||||
- [Deny Access to Hidden Files and Directories](#deny-access-to-hidden-files-and-directories)
|
||||
- [Deny Access to Backup and Source Files](#deny-access-to-backup-and-source-files)
|
||||
|
@ -147,6 +148,12 @@ Allow from xxx.xxx.xxx.xxx
|
|||
|
||||
Now of course there's a reversed version:
|
||||
|
||||
### Block a Specific IP Address
|
||||
``` apacheconf
|
||||
Order Deny,Allow
|
||||
Deny from xx.xxx.xxx.xx
|
||||
```
|
||||
|
||||
### Allow All Access Except Spammers'
|
||||
``` apacheconf
|
||||
Order deny,allow
|
||||
|
|
Loading…
Reference in a new issue