/etc/privoxy/user.action
{+hide-user-agent{Mozilla/5.0 (Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0} \
+add-header{User-Agent: Mozilla/5.0 (Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0} \
}
/
This section is obsoleted with the introduction of +add_header
action above.
Privoxy doesn't work with Python 3.10 pip because the latter doesn't set UA. Temporay hack:
- Create venv
- Edit
<venv>/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py
, change functionproxy_header
in classHTTPAdapter
to add a'User-Agent'
header to the return dict. - Use
pip
from the venv.