Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New simpler config. All non exact locations are nested inside '/'.
- Loading branch information
António P. P. Almeida
committed
Jun 3, 2011
1 parent
7128e9a
commit 664753c
Showing
3 changed files
with
53 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#-*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*- | ||
### This file implements a blacklist for certain user agents and | ||
### referrers. It's a first line of defense. It must be included | ||
### inside a http block. | ||
|
||
|
||
## Add here all user agents that are to be blocked. | ||
map $http_user_agent $bad_bot { | ||
default 0; | ||
libwww-perl 1; | ||
~(?i)(httrack|htmlparser|libwww) 1; | ||
} | ||
|
||
## Add here all referrers that are to blocked. | ||
map $http_referer $bad_referer { | ||
default 0; | ||
~(?i)(babes|click|diamond|forsale|girl|jewelry|love|nudit|organic|poker|porn|poweroversoftware|sex|teen|webcam|zippo|casino|replica) 1; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters