[zorp-hu] zorp inditas
HOLTZL Peter
zorp-hu@lists.balabit.hu
Tue, 3 Jun 2003 10:40:39 +0200
On 2003 Jun 03, Szűcs Tibor wrote:
class IntraHttp(HttpProxy):
def config(self):
HttpProxy.config(self)
self.transparent_mode = TRUE
self.request_headers["User-Agent"] = (HTTP_HDR_CHANGE_VALUE, "Lynx/2.8.3rel.1")
self.request["GET"] = (HTTP_REQ_POLICY, self.filterURL)
# self.parent_proxy = "proxy.site.net"
# self.parent_proxy_port = 3128
# self.timeout = 60000
# self.max_keepalive_requests = 10
def filterURL(self, method, url, version):
# return HTTP_REQ_REJECT here to reject this request
# change self.request_url to redirect to another url
# change connection_mode to HTTP_CONNECTION_CLOSE to force kept-alive connections to close
log("http.info", 3, "%s: GET: %s" % (self.session.session_id, url))
a filterURL-bol nem tersz vissza! Kell egy return a vegere (return HTTP_REQ_ACCEPT)
HÖLTZL Péter
BalaBit IT Kft | Tel: +36 1 371-0540 | GnuPG Fingerprint:
holtzl.peter@balabit.hu | Mobil: +36 20 366-9667 | 796B C9D3 E492 B006 C8B2
http://www.balabit.hu/ | Fax: +36 1 208-0875 | 4D1F 5320 28E3 9A1B 3FC6