How to take visited Website log?

I want to take logs for all the visited websites.
If any user enter a URL in browser address bar I want to take the log after I want to proceed to access the website and
I want to block some websites for my users.
I'm using Linux machine. How to do this ?

Nanba,
You can do this if your system is running a proxy server for your network. For setting up proxy server in linux, check squid documentation.

-Raja

1 Like

how to configure to squid for log the visited urls in a file. give me a link / URL

I want to block some websites for particular time duration.

for example: I want to block youtube.com from 09:00 am to 11:00am after 11:00am users can access the youtube.com website. how to do this.
Is it possible to configure in squid?
If it is possible means how to configure the squid?

Squid supports time based ACLs..For the given requirement the following config in squid.conf should fo the job I guess..

acl YOUTUBE dst www.youtube.com
acl DENIEDTIME time 09:00-11:00
http_access deny YOUTUBE DENIEDTIME
http_access allow YOUTUBE

For more info on squid ACL, refer
Squid-ACL FAQ

-Raja

1 Like