Privoxy

Privoxy

前沿:
这个玩意我以前都没听说过,今天在别人的帮助下试了试,只想说:谁还能阻挡我,我就是要USA。。。。ps:在此感谢每一个帮助我的人
介绍:
Privoxy是一款带过滤功能的代理服务器,针对HTTP、HTTPS协议。通过Privoxy的过滤功能,用户可以保护隐私、对网页内容进行过滤、管理cookies,以及拦阻各种广告等。Privoxy可以用作单机,也可以应用到多用户的网络。修改HTTP请求头的字段,如referrer和user agent,从而隐藏用户上一个查看的网页和用户正在使用的浏览器。
下载地址:
安装:
  1. wget https://sourceforge.net/projects/ijbswa/files/Sources/3.0.24%20%28stable%29/privoxy-3.0.24-stable-src.tar.gz
  2. tar zxf privoxy-3.0.24-stable-src.tar.gz
  3. cd privoxy-3.0.24-stable/
  4. autoheader
  5. autoconf
  6. ./configure
  7. make
  8. useradd privoxy -r -s /usr/sbin/nologin
  9. make install
配置文件:
  1. vim /usr/local/etc/privoxy/config
  2. user-manual /usr/local/share/doc/privoxy/user-manual/
  3. confdir /usr/local/etc/privoxy
  4. logdir /var/log/privoxy
  5. actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
  6. actionsfile default.action # Main actions file
  7. actionsfile user.action # User customizations
  8. filterfile default.filter
  9. filterfile user.filter # User customizations
  10. logfile logfile
  11. listen-address 0.0.0.0:8118#监听的地址
  12. toggle 1
  13. enable-remote-toggle 0
  14. enable-remote-http-toggle 0
  15. enable-edit-actions 0
  16. enforce-blocks 0
  17. buffer-limit 4096
  18. enable-proxy-authentication-forwarding 0
  19. forward-socks5t /119.254.211.102:1080.# 使用转发的地址
  20. forwarded-connect-retries 0
  21. accept-intercepted-requests 0
  22. allow-cgi-request-crunching 0
  23. split-large-forms 0
  24. keep-alive-timeout 5
  25. tolerate-pipelining 1
  26. socket-timeout 300
 
启动:
systemctl start privoxy
lsof -i:8118
 
下载文件:
cd /usr/local/src
 
重新启动:
/usr/local/sbin/privoxy /usr/local/etc/privoxy/config 
lsof -i:8118
wget www.ipip.net
vim index.html 
 
查看本地ip是不是已经代理出去:
http_proxy=127.0.0.1:8118 wget www.ipip.net
vim index.html
从里面看你的IP。
 
题外话:自己标记使用
zipkin目录下面的这个文件gradle.properties
在最下面添加以下内容:
systemProp.http.proxyHost=192.168.100.33            # 本机IP
systemProp.http.proxyPort=8118
systemProp.https.proxyHost=192.168.100.33
systemProp.https.proxyPort=8118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 





原文地址:https://www.cnblogs.com/caoxiaojian/p/5309735.html