This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl clients src <IP> | |
http_access allow clients | |
http_port 8080 | |
via off | |
forwarded_for off | |
follow_x_forwarded_for deny all | |
request_header_access X-Forwarded-For deny all | |
header_access X_Forwarded_For deny all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib import request as urlrequest | |
proxy_host = 'ip:port' | |
url = 'http://www.httpbin.org/ip' | |
#If returns 2 IP means that X-Forwarded isn't disabled | |
req = urlrequest.Request(url) | |
req.set_proxy(proxy_host, 'http') |
NewerOlder