Polipo代理权限控制

2017-01-05(四) by chenjia.me

Polipo代理添加验证

Polipo可以开放HTTP代理到公网上,但是目前爬虫太多,基本几个小时后就会被爬虫发现,因此为了方便自己使用,有两种限制方法、

使用IP进行控制

官方文档:Access control

简单来说就是添加一个ip或者一个ip段,你必须熟悉子网掩码的规则。

allowedClients = 127.0.0.1, ::1, 134.157.168.0/24, 2001:660:116::/48

使用用户名密码来进行验证

在配置文件添加authCredentials='username:password'

在调用代理的时候使用http://username:password@ip:port进行连接


Comments