[fix] rules.json: allow Firefox Android to add searx (#49)

* [fix] rules.json: allow Firefox Android to add searx

fix #48

* [fix] rules.json: allow Firefox Android whatever the values of Accept and Accept-Language are.
This commit is contained in:
Alexandre Flament 2020-07-27 13:06:56 +02:00 committed by GitHub
parent c3cf61f3b4
commit 337a4d2dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,15 @@
"name": "search request", "name": "search request",
"filters": ["Param:q", "Path=^(/|/search)$"], "filters": ["Param:q", "Path=^(/|/search)$"],
"subrules": [ "subrules": [
{
"name": "allow Firefox Android (issue #48)",
"filters": [
"Param:q=^1$",
"Header:User-Agent=^MozacFetch/[0-9]{2,3}.[0-9].[0-9]+$"
],
"stop": true,
"actions": [{"name": "log"}]
},
{ {
"name": "robot agent forbidden", "name": "robot agent forbidden",
"limit": 0, "limit": 0,