[Ilugc] Proxy

  • From: stylesen@xxxxxxxxx (Senthil Kumaran S)
  • Date: Thu Aug 24 15:44:48 2006

On 8/24/06, kannan manoharan <scuffy_tomy@xxxxxxxxxxx> wrote:

 Is there any posibility to check with date and time ?

Yes of course it could be done. I ll let you explain in detail so that
you can do it..
You have native log file format in a squid which is >= squid 2.0, so
your log format will be like the following:

time elapsed remotehost code/status bytes method URL rfc931
peerstatus/peerhost type

If you are using the follwing command:

$ tail -f /var/log/squid/access.log | awk '{print $3 "\t" $7}'

in the above you ask to print the 3rd and the 7th parameter as in the
native log file format. So if you see the third and seventh are remote
host ip and URL respectively as in the naitve log file format. So if
you want to print the time (which includes date too I suppose) then do
the following:

$ tail -f /var/log/squid/access.log | awk '{print $1 "\t" $3 "\t" $7}'

I think that explains how it works :)

 And, is there any posibility to block the url by using squid proxy ?

Yes this is very well possible. You should install squidGuard to do
the above. Its again simple to install in that you have different
files in a db folder in which you can specify what are the URLs you
want to block.. As simple as that...

-- 
--sen--
Be a man of Deeds
Don't be a man of Needs...
http://stylesen.blogspot.com
http://geocities.com/sen_kavithai

Other related posts: