/etc/privoxy/user.action
{+hide-user-agent{Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0} \
}
/
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.