Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to take logs for all the visited websites.

If any user entered 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 ?

share|improve this question

migrated from Aug 18 '10 at 1:08

This question came from our site for professional and enthusiast programmers.

You need to implement a proxy server and force your users to route their web traffic through it. Since you want to run linux, I'd recommend taking a look at Squid. Also, you'll need to set your egress firewall rules such that web traffic is only allowed out of your network from the machine running Squid. That will force your users to use the proxy. Squid will be able to give you a log of all sites visited as well as blocking sites for all users or just for some of them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.