mirror of
https://github.com/searx/searx-docker.git
synced 2024-11-26 03:52:31 +01:00
5b8b8720b4
See issue #6
131 lines
4.6 KiB
JSON
131 lines
4.6 KiB
JSON
[
|
|
{
|
|
"name": "stats.searx.xyz",
|
|
"interval": 300,
|
|
"limit": 10,
|
|
"filters": ["Header:X-Forwarded-For=(2a01:4f8:161:542e::2|5.9.58.49)"],
|
|
"stop": true,
|
|
"actions": [{ "name": "log"}]
|
|
},
|
|
{
|
|
"name": "IP limit, all paths",
|
|
"interval": 3,
|
|
"limit": 25,
|
|
"aggregations": ["Header:X-Forwarded-For"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded, try again later."}}
|
|
]
|
|
},
|
|
{
|
|
"name": "useragent limit, all paths",
|
|
"interval": 30,
|
|
"limit": 200,
|
|
"aggregations": ["Header:X-Forwarded-For", "Header:User-Agent"],
|
|
"stop": true,
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded, try again later."}}
|
|
]
|
|
},
|
|
{
|
|
"name": "search request",
|
|
"filters": ["Param:q", "Path=^(/|/search)$"],
|
|
"subrules": [
|
|
{
|
|
"name": "robot agent forbidden",
|
|
"limit": 0,
|
|
"stop": true,
|
|
"filters": ["Header:User-Agent=([Cc][Uu][Rr][Ll]|[wW]get|Scrapy|splash|JavaFX|FeedFetcher|python-requests|Go-http-client|Java|Jakarta|okhttp|HttpClient|Jersey|Python|libwww-perl|Ruby|SynHttpClient|UniversalFeedParser)"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "bot forbidden",
|
|
"limit": 0,
|
|
"stop": true,
|
|
"filters": ["Header:User-Agent=(Googlebot|GoogleImageProxy|bingbot|Baiduspider|yacybot|YandexMobileBot|YandexBot|Yahoo! Slurp|MJ12bot|AhrefsBot|archive.org_bot|msnbot|MJ12bot|SeznamBot|linkdexbot|Netvibes|SMTBot|zgrab|James BOT|Sogou|Abonti|Pixray|Spinn3r|SemrushBot|Exabot|ZmEu|BLEXBot|bitlybot)"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "block missing accept-language",
|
|
"filters": ["!Header:Accept-Language"],
|
|
"limit": 0,
|
|
"stop": true,
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "block Connection:close",
|
|
"filters": ["Header:Connection=close"],
|
|
"limit": 0,
|
|
"stop": true,
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "block no brotli support",
|
|
"filters": ["!Header:Accept-Encoding=[; ]?br[; ]?"],
|
|
"limit": 0,
|
|
"stop": true,
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "block accept everything",
|
|
"filters": ["!Header:Accept=text/html"],
|
|
"limit": 0,
|
|
"stop": true,
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded"}}
|
|
]
|
|
},
|
|
{
|
|
"name": "rss/json limit",
|
|
"interval": 3600,
|
|
"limit": 4,
|
|
"stop": true,
|
|
"filters": ["Param:format=(csv|json|rss)"],
|
|
"aggregations": ["Header:X-Forwarded-For"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded, try again later."}}
|
|
]
|
|
},
|
|
{
|
|
"name": "IP limit",
|
|
"interval": 3,
|
|
"limit": 3,
|
|
"aggregations": ["Header:X-Forwarded-For"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded, try again later."}}
|
|
]
|
|
},
|
|
{
|
|
"name": "IP and useragent limit",
|
|
"interval": 600,
|
|
"limit": 60,
|
|
"stop": true,
|
|
"aggregations": ["Header:X-Forwarded-For", "Header:User-Agent"],
|
|
"actions": [
|
|
{"name": "block",
|
|
"params": {"message": "Rate limit exceeded, try again later."}}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|