sikas
sikas

Reputation: 5523

Monitoring web traffic and deny access based on some criteria

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.

Upvotes: 0

Views: 958

Answers (1)

bytecode77
bytecode77

Reputation: 14820

You could go for this: http://www.codeproject.com/Articles/14423/Getting-the-active-TCP-UDP-connections-using-the-G

It lists the active TCP connections. From the IP you can get the domain by fetching it from the DNS cache. Then you can disable all connections during a specific time of day.

Upvotes: 2

Related Questions