Authentication by URL parameter behind a reverse proxy (preserve added URL parameters when hitting the search button) #4881
Replies: 4 comments
-
Not really what you asked for, but may it can help you: private engines |
Beta Was this translation helpful? Give feedback.
-
|
I reached my goal by manualy changing the following files in /usr/local/searxng/searxng-src/searx/templates/simple/ I changed the line
to
When I now access searXNG using the following url
and hit the search button, the URL parameter is preserved, I can now use this URL parameter to filter access in HAProxy when publishing the internal searXNG backend to internet, and block access if the url parameter is not present. Is this something the searXNG developers would like to implement or not ? I probably also have to add this url parameter to the preferences, about, stats links (but I could also choose to allow those) |
Beta Was this translation helpful? Give feedback.
-
|
I changed the simple template to preserve existing URL parameters ( preferences, about, stats, 404, links etc). If you are intressested I can upload this modified simple template p.s. The link "Soure code" in the footer of the main page point nowhere (points to /unknow) |
Beta Was this translation helpful? Give feedback.
-
|
searxng_simple_template.tar.gz I think extra/external url parameters should always should be preserved. If someone could fix the save button and also the links in about -> search syntax that would be awsome |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have this feature request wich will allow me to authenticate access to searXNG behind a proxy
My idea is to add an URL parameter to searXNG like this
http://192.168.1.10:8888/search?id=xyzabxd1234!
I this case I can publish the internal website to internet by using for example HA-Proxy
In HAproxy I can filter access based on this URL parameter
Is the URL https://search.example.com:8888/search
than access is denied by HAProxy
Is the URL https://search.example.com:8888/search?id=xyzabxd1234!
where the URL contains the URL parameter id=xyzabxd1234! than access is allowed by HAProxy
This will allow me to use searXNG from the internet disallowing public access (you got to know the URL parameter to gain access) The URL parameter is encrypted in the SSL session
The problem I currently have is that as soon as I hit the searXNG search button the URL parameter is gone getting access denied
Would it be possible that searchXNG could preserve added URL parameters when hitting the search button ? (append the exisitng URL parameters to the POST form action of the search button)
Is there maybe already another way to do this, or could this possibly be implemented ?
Kr,
Beta Was this translation helpful? Give feedback.
All reactions