From c55a0f6a758e7fd13dcee2e3627395fe0a6e3d4f Mon Sep 17 00:00:00 2001 From: dvserg Date: Fri, 11 Feb 2011 07:58:01 +0300 Subject: Blacklist modification and bug fixes --- config/squidGuard/squidguard.inc | 20 +++-- config/squidGuard/squidguard.php | 109 ++++++++++++++++++++++++++ config/squidGuard/squidguard.xml | 2 +- config/squidGuard/squidguard_acl.xml | 8 +- config/squidGuard/squidguard_blacklist.php | 33 +++++--- config/squidGuard/squidguard_configurator.inc | 24 ++++-- config/squidGuard/squidguard_default.xml | 6 +- config/squidGuard/squidguard_dest.xml | 2 +- config/squidGuard/squidguard_log.php | 8 +- config/squidGuard/squidguard_log.xml | 2 +- config/squidGuard/squidguard_rewr.xml | 2 +- config/squidGuard/squidguard_time.xml | 2 +- 12 files changed, 179 insertions(+), 39 deletions(-) create mode 100644 config/squidGuard/squidguard.php diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc index d4fd5ea3..fe903b39 100644 --- a/config/squidGuard/squidguard.inc +++ b/config/squidGuard/squidguard.inc @@ -1,7 +1,10 @@ $thdr $tbl "; $rstyle = ""; - $ha = "
" . + $ha = "
" . "" . "Target Rules List (click here) " . - " " . + " " . "" . "" . - "" . + "" . "" . "
"; $res = "
$ha"; @@ -1244,11 +1247,12 @@ function squidguard_adt_safesrch_add($rewrite_item) $rewrite_item[] = array(F_TARGETURL => '(yandex\..*/yandsearch?.*text=.*)', F_REPLACETO => '\1\&fyandex=1', F_MODE => 'i'); # Yahoo - $rewrite_item[] = array(F_TARGETURL => '(search\.yahoo\..*/search.*p=.*)', F_REPLACETO => '\1\&vm=r', F_MODE => 'i'); + $rewrite_item[] = array(F_TARGETURL => '(search\.yahoo\..*/search.*p=.*)', F_REPLACETO => '\1\&vm=r&v=1', F_MODE => 'i'); - # MSN Live search - $rewrite_item[] = array(F_TARGETURL => '(search\.live\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i'); - $rewrite_item[] = array(F_TARGETURL => '(search\.msn\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i'); + # MSN Live search, Bing + $rewrite_item[] = array(F_TARGETURL => '(search\.live\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i'); + $rewrite_item[] = array(F_TARGETURL => '(search\.msn\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i'); + $rewrite_item[] = array(F_TARGETURL => '(\.bing\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i'); return $rewrite_item; } diff --git a/config/squidGuard/squidguard.php b/config/squidGuard/squidguard.php new file mode 100644 index 00000000..b6c36a87 --- /dev/null +++ b/config/squidGuard/squidguard.php @@ -0,0 +1,109 @@ + + + + + +
+ + + + + + + + +
+ +
+
+ + + + + + + +
+ + + + + + + + +
ServiceStatus   Version
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/config/squidGuard/squidguard.xml b/config/squidGuard/squidguard.xml index 0616c814..9c979c3d 100644 --- a/config/squidGuard/squidguard.xml +++ b/config/squidGuard/squidguard.xml @@ -27,7 +27,7 @@ /pkg_edit.php?xml=squidguard_default.xml&id=0 - Special ACL + Groups ACL /pkg.php?xml=squidguard_acl.xml diff --git a/config/squidGuard/squidguard_acl.xml b/config/squidGuard/squidguard_acl.xml index ddff1fcb..1b631ca3 100644 --- a/config/squidGuard/squidguard_acl.xml +++ b/config/squidGuard/squidguard_acl.xml @@ -7,7 +7,7 @@ Currently there are no FAQ items provided. squidguardacl none - Proxy filter SquidGuard: Special Access Control List (ACL) + Proxy filter SquidGuard: Groups Access Control List (ACL) /usr/local/pkg/squidguard.inc A proxy server user has been deleted. A proxy server user has been created/modified. @@ -21,7 +21,7 @@ /pkg_edit.php?xml=squidguard_default.xml&id=0 - Special ACL + Groups ACL /pkg.php?xml=squidguard_acl.xml @@ -188,11 +188,11 @@ --> - Spec: Use safe search engine + Use SafeSearch engine safesearch To protect your children from adult content, you can use the protected mode of search engines. - Now it is supported by Google, Yandex, Yahoo, MSN, Live Search. Make sure that the search engines can, and others, it is recommended to prohibit. + Now it is supported by Google, Yandex, Yahoo, MSN, Live Search, Bing. Make sure that the search engines can, and others, it is recommended to prohibit. <br>Note: ! This option overrides 'Rewrite' setting. ! checkbox diff --git a/config/squidGuard/squidguard_blacklist.php b/config/squidGuard/squidguard_blacklist.php index a5f95379..3bf4d17b 100644 --- a/config/squidGuard/squidguard_blacklist.php +++ b/config/squidGuard/squidguard_blacklist.php @@ -1,8 +1,10 @@ 0 %"; echo ""; echo "

"; - ?> +?>