I believe that this question has been asked before. Here is what I want to achieve. I want to monitor all outgoing web-traffic from the PC. And when a rule is hit, I want the access to a list of websites to be denied until another rule is hit.
This is like a timed access to the internet. I want the person using the PC can access the internet freely for two hours, but after that, any internet request to specific websites should be denied. So what I was thinking is monitoring the LAN interface for outgoing traffic and match the outgoing URL with a list of URLs, if match and the counter passes two hours, then deny the access, else allow ... Also, I want to know how to exactly calculate the time spent on a website in the list.
Sorry for taking too long to explain, hope I was able to pass my idea.
Best Regards.