From: Matteo Nastasi (mop) Date: Wed, 11 Feb 2015 07:17:38 +0000 (+0100) Subject: not previous included files added X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=curl-de-sac.git;a=commitdiff_plain;h=8a86b6d9576d8943c3ddaaaf34c4917b2442c13b not previous included files added --- 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 diff --git a/web/proxy_check.php b/web/proxy_check.php new file mode 100644 index 0000000..e0e5320 --- /dev/null +++ b/web/proxy_check.php @@ -0,0 +1,48 @@ + \ No newline at end of file diff --git a/webtest/proxy_mock.php b/webtest/proxy_mock.php new file mode 100644 index 0000000..71c90e6 --- /dev/null +++ b/webtest/proxy_mock.php @@ -0,0 +1,3 @@ +