Dave Williams wrote: > > I've been using squidGuard for over a year now at a couple of > locations. Thanks for making this great program available under GPL. > > Until now, I have been redirecting clients to a predetermined web > page. If they enter a URL and get to this site, they understand that > the site they entered has been blocked. > > I want to handled redirection better with squidGuard.cgi (or something > else) - but I am not a web guy. I understand elementary html. I have > apache working using the defaults on a second RedHat 7.3 box. I can > get to the default apache test page. > > I am not a programmer and I need use some simple instructions on > getting squidGuard.cgi copied to the right directory and working under > Apache on RH-7.3. Basic how to get cgi working.
You need to configure Apache to permit CGI. http://httpd.apache.org/docs/howto/cgi.html Unless you made a bunch of changes, /etc/httpd/conf/httpd.conf is probably already set up to allow CGI. Copy squidGuard.cgi and squidGuard-simple.cgi from squidGuard source directories to /var/www/cgi-bin/. Make them readable by all and executable. For good measure (which means I can't remember if you need it or not), create a file named '.htaccess' in /var/www/cgi-bin/. Content of .htaccess = 'Options ExecCGI'. If you will be using squidGuard-simple.cgi, your redirect line in squidGuard.conf should be (all on one line): redirect 302:http://yourserver.com/cgi-bin/squidGuard-simple.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u &lang=en If you will be using squidGuard.cgi, your redirect line in squidGuard.conf should be (all on one line): redirect http://yourserver.com/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u&lang=en Modifications and other considerations -------------------------------------- squidGuard-simple.cgi - Place a small gif file in /var/www/html/images/, and name it 'blocked.gif'. It will be displayed in place of images requested from a blocked site. - You can refer to your website and your logo in lines 51, 66 and 83. Place a copy of the logo file in /var/www/html/images/. - You can put a notify email address in lines 62 and 96. squidGuard.cgi - Complete the "Configurable Options" section that starts around line 56. - You can refer to you website and logo around line 350. Hope that helps! Rick
