searx / searx

Privacy-respecting metasearch engine
https://searx.github.io/searx/
GNU Affero General Public License v3.0
13.41k stars 1.71k forks source link

Extend Logging - Show user agent #3343

Open ThraaxSession opened 2 years ago

ThraaxSession commented 2 years ago

Is your feature request related to a problem? Please describe. It's kinda a problem. I see more and more weird requests for Wordpress. It would be also nice to see the user agent. (I know they can be faked, but better than nothing I would say. The internet is a dangerous place. ;D)

Describe the solution you'd like Another parameter in the settings to verbose the HTTP requests in the logs.

unixfox commented 2 years ago

Usually you have a reverse proxy in front of searx, use it to get the HTTP logs with the user agent.

ThraaxSession commented 2 years ago

Hi @unixfox I am at a hoster webspace, where I only control .htaccess. I can't manually edit nginx or apache configuration for this.

ThraaxSession commented 2 years ago

And the bare logs from apache are in different own access logs. So it's not convenient if I have x web services.

unixfox commented 2 years ago

How did you even manage to install Searx if you only control the .htaccess file?

ThraaxSession commented 2 years ago

I can start it normally and I have to provide the port. With utility from my provider I can expose it to an url.

ThraaxSession commented 2 years ago

@unixfox did my answer help you?

unixfox commented 2 years ago

Yeah I understood the way your provider works.

About the feature request itself, well you will have to wait for someone (could be you) to implement it :).

ThraaxSession commented 2 years ago

I could try. :D