X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fproxy_detector.phh;fp=web%2FObj%2Fproxy_detector.phh;h=0792521e24aeaccaa0b01671405532948588279f;hb=8a86b6d9576d8943c3ddaaaf34c4917b2442c13b;hp=0000000000000000000000000000000000000000;hpb=e738329c263f493110d9c7bacd29c983ba9f583b;p=curl-de-sac.git diff --git a/web/Obj/proxy_detector.phh b/web/Obj/proxy_detector.phh new file mode 100644 index 0000000..0792521 --- /dev/null +++ b/web/Obj/proxy_detector.phh @@ -0,0 +1,74 @@ +"; + if ($resolved != $rblhost) { + return TRUE; + } + } + } + return FALSE; + } + + /** + * BOOL $proxy = detect( $addr ) + * Start detection and return TRUE if a proxy server is detected... + */ + function detect($addr){ + if ($this->exists_in_rbl($addr) == TRUE) + return (TRUE); + + //nope, no proxy was logged... + return FALSE; + } +} + +//init class +function is_proxy($addr) +{ + $proxy = new ProxyDetector(); + + //start detect + return ($proxy->detect($addr)); +} + +?> \ No newline at end of file