I am interested in developing a tool (for personal use) to monitor all the websites accessed from the computer. I plan to make use of BASH, but I&#39;m not clear how I can know which website has been accessed using scripts. <div>
<br></div><div>I understand that since eventually all browsers are also making use of the same port, it must be possible to make use of scripts to log the data transfered. Could anyone guide me on how this could be done. Or is there any C/C++ library which could serve similar purpose, i.e. read the information travelling through a port.</div>
<div><br></div><div><br></div><div>I do understand that there are many existing tools to do what I plan to achieve, but as I&#39;m a student, I&#39;d like to learn through this experience and hence would be grateful if someone could guide me how something simple of the above form can be obtained. I don&#39;t plan/intend to make any GUI or security with that tool, but a simple tool that could help me log my activity. I could then use some other tools to analyse the log file for my own purpose. </div>
<div><br></div><div>&lt;Frankly its an attempt to create some tool to restrict amount of time spent on websites like Facebook&gt; </div><div><br></div><div>Thanks in advance</div>