No matter what i did, the redirection on squid is not working. If i remove the redirect link from squidguard, the blobk is not working. (thats on the manual of guard.)
ill post below the conf of squidguard in case that someone can see whats wrong with it.
# CONFIG FILE FOR SQUIDGUARD
dbhome /usr/share/squidGuard-1.3/db
logdir /var/log/squidGuard
# TIME RULES:
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
time workhours {
weekly mtwhfas 08:00 - 23:59
date *-*-01 08:00 - 23:59
}
# Allow The Permited Sites
# dest white {
# domainlist white/domains
# urllist white/urls
# BLOCKING PORN SITES
dest porn {
domainlist porn/domains
urllist porn/urls
}
# And redirect to the DEFAULT WARNING PAGE
acl {
default {
pass !porn all
redirect
http://localhost/etc/squid/index.html
}
}
The problem seems to be the "http://localhost" because im not running any other service except squid and squidguard.
Is there any other way to display the "index.html" ?
Just for the info, the index.html just informs the user that the porn content is blocked.
Thanks in Advance