Re: [K12OSN] Squid and SquidGuard help

Eric Harrison (eharrison@mail.mesd.k12.or.us)
Wed, 27 Mar 2002 08:46:59 -0800 (PST)


On Wed, 27 Mar 2002, David Trask wrote:

>Hey!  I found the problem!  In the program....the reference to
>squidGuard.conf is misspelled.  I checked the log and it was looking for
>sguidGuard.conf   (note the "g" instead of a "q")  I simply changed the
>name of "squidGuard.conf" to "sguidGuard.conf" and it worked!  

Was that my typo? If so, where? 

>Now I'm
>trying to get me redirect to work right....it blocks, but it doesn't go to
>the site I want it to go to in place of the "bad" one.

This is a bit tricky, there are two ways to do it that are subltly different.

The first way:

	redirect http://newurl.com

simply retrieves "newurl.com" instead of the blocked URL. This is nice in
that the browser will still show "http://www.badsite.com" but show the
contents of "http://newurl.com". The disadvantage is that relative links
won't work from newurl.com, the browser will try to pull the relative links
from badsite.com. 

The second way:

	redirect 302:http://newurl.com

will tell the browser that badsite.com has been moved to newurl.com. The
browser will then go fetch newurl.com. This is apperent to the end-user.
Relative links will now work from newurl.com, since the browser is aware
that it is now connected to a different web site.	

HTH

-Eric

>David Trask writes:
>>I think I have it running, but it's not blocking anything....I type in
>>sex.com and it still goes there.....what might I be doing wrong? 
>>Anything in the squidGuard.conf file I might need to change?  Do I need
>>to somehow enable the blacklists?  The squidGuard.conf file seems to be
>>the stock one from squidGuard.....I remember seeing one yesterday (though
>>not sure from where) that showed the redirect of www.searchopolis.com
>>whereas the stock one shows the cgi stuff fro squidGuard for the
>>redirect.   I'm wondering if the dbhome is pointing to the right place   
>> in the one I have now it says..../var/squidGuard/blacklists   is that
>>right?   Any ideas.....can you give an example of how I can put in my own
>>redirect in the squidGuard.conf file?  thanks!
>>
>>David Trask
>
>
>David N. Trask
>Technology Teacher/Coordinator
>Vassalboro Community School
>dtrask@vcs.u52.k12.me.us
>(207)923-3100
>
>



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see