Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b80f0a22 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Add an error code on each filtron rule

parent 3003e832
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -12,7 +12,7 @@
        "aggregations": ["Header:X-Forwarded-For"],
        "aggregations": ["Header:X-Forwarded-For"],
        "actions": [
        "actions": [
            {"name": "block",
            {"name": "block",
             "params": {"message": "Rate limit exceeded, try again later."}}
             "params": {"message": "Rate limit exceeded 9001, try again later."}}
        ]
        ]
    },
    },
    {
    {
@@ -23,7 +23,7 @@
        "stop": true,
        "stop": true,
        "actions": [
        "actions": [
            {"name": "block",
            {"name": "block",
             "params": {"message": "Rate limit exceeded, try again later."}}
             "params": {"message": "Rate limit exceeded 9002, try again later."}}
        ]
        ]
    },
    },
    {
    {
@@ -37,7 +37,7 @@
                "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)"],
                "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": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded"}}
                     "params": {"message": "Rate limit exceeded 10001"}}
                ]
                ]
            },
            },
            {
            {
@@ -47,7 +47,7 @@
                "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)"],
                "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": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded"}}
                     "params": {"message": "Rate limit exceeded 10002"}}
                ]
                ]
            },
            },
            {
            {
@@ -57,7 +57,7 @@
                "stop": true,
                "stop": true,
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded"}}
                     "params": {"message": "Rate limit exceeded 10003"}}
                ]
                ]
            },
            },
            {
            {
@@ -67,7 +67,7 @@
                "stop": true,
                "stop": true,
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded"}}
                     "params": {"message": "Rate limit exceeded 10004"}}
                ]
                ]
            },
            },
            {
            {
@@ -77,7 +77,7 @@
                "stop": true,
                "stop": true,
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded"}}
                     "params": {"message": "Rate limit exceeded 10005"}}
                ]
                ]
            },
            },
            {
            {
@@ -89,7 +89,7 @@
                "aggregations": ["Header:X-Forwarded-For"],
                "aggregations": ["Header:X-Forwarded-For"],
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
		             "params": {"message": "Rate limit exceeded, try again later."}}
		             "params": {"message": "Rate limit exceeded 10006, try again later."}}
                ]
                ]
            },
            },
            {
            {
@@ -99,7 +99,7 @@
                "aggregations": ["Header:X-Forwarded-For"],
                "aggregations": ["Header:X-Forwarded-For"],
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded, try again later."}}
                     "params": {"message": "Rate limit exceeded 10007, try again later."}}
                ]
                ]
            },
            },
            {
            {
@@ -110,7 +110,7 @@
                "aggregations": ["Header:X-Forwarded-For", "Header:User-Agent"],
                "aggregations": ["Header:X-Forwarded-For", "Header:User-Agent"],
                "actions": [
                "actions": [
                    {"name": "block",
                    {"name": "block",
                     "params": {"message": "Rate limit exceeded, try again later."}}
                     "params": {"message": "Rate limit exceeded 10008, try again later."}}
		]
		]
            }
            }
        ]
        ]