Why don't you check the event log? The system will record any established network connection there.
Main Topics
Browse All TopicsIs there a simple test I can program to check whether anyone has been surfing the internet? Up until now I have been using the hidden file:
C:\Documents and Settings\<username>\Local Settings\Temporary Internet Files\Content.IE5\\index.d
and checking for file attribute changes (i.e. the last time the file was modified). However I have noticed at least one flaw with this; it does not get changed if you explore by going to using My Computer and then using the taskbar. I have also noticed that using this method means that websites bypass being entered into the internet history log. Any help would be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
DanCh99, for your information I work for a UK manufacturer of Fixed Odds Betting Terminals. These are gambling terminals located in the bookmakers that require the random number to be generated outside the premises by law. My job is to program the back office software that links to the in-house LAN and receives the random numbers from outside. So as you can see an internet connection is vital to us for this purpose. Unfortunately many of the shop managers spend a lot of their time surfing the internet and consequently a very high proportion of our engineer callouts are due to viruses they have downloaded (which of course they always deny). What I am trying to do is pop up a warning that internet surfing is not permitted and then maybe keep a hidden log that can be used as proof.
jkr, the event log does not appear to distinguish between valid TCPIP use (for getting the random number) and internet surfing. If I am wrong, how can I programatically retrieve this data?
BTW, I appreciate there are probably other more elaborate ways like removing the DNS server setting but some of our users are very clever and know how to get round this. Also, a VPN is very expensive!
Hope this information helps.
there are several tricks you can do to to prevent your users from surfing alltogether. You mentioned removing the DNS server settings which is a VERY good one. If your users are logged in with an account that only has "user" rights they cannot change this. chaning networking settings (including dns) requires them to be logged in with local administrative rights. having the users operate with local admin rights will also cause many other problems like the virus problem you already mentioned. Of course your users might HAVE to be logged in with local admin rights if you use some 3rd party software that requires this. Also, you mentioned that a VPN is very expensive. That couldn't be further from the truth. actually they are free. windows has vpn server and client software built into most of its operating systems. you can even set up an XP pro box to be used as a vpn server without any 3rd party software, its built right into the OS.
You could audit when people succesfully run Internet Explorer.
Extracted from:
http://www.microsoft.com/t
"After enabling the audit object access policy, you must determine the objects to which you want to monitor access, and then modify their SACLs accordingly. For example, if you want to audit any attempts by users to open a particular file, you can set a Success or Failure attribute directly on the file that you want to monitor for that particular event using Windows Explorer or group policy."
User who "succesfully" executed Internet Explorer would be aduited.
Check this site out for a detailed explanation on how to do this:
http://www.microsoft.com/r
Easiest may be to have a firewall that requires user authentication prior to allowing outbound access on port 80 (and/or other ports if you're nterested in tracking/blocking Instant Messenger, etc.). If you do so, at least you then know who (and when they did) accessed websites (provided that you log with the firewall).
That a good idea ... vtsinc.
You could also probably install Traffic Analyzer. You would then analyze traffic and make the analyzer send a "net send" message to your computer when a connection attempt to port 80 is trying to be attempted. I think an email could also be sent depending if you have exchange in your enviorment.
The IP of the machine attempting the port 80 connection will be logged, and you could at least know from which computer it came from.
This really depends on what version of Windows 2000 Server you have.
You could look into this. I'll take a look at home in my MCSE books, and I'll post back also.
And how about the auditing option?
the easiest method would be the firewall route... you can use hardware or software firewalls to keep a log of every site visited.... hardware firewall would be a router. you can get a fairly cheap on from netgear, linksys, etc that will keep a record of websites visited and which internal ip address accessed the site (if you have multiple computers). You could use a software firewall like the free Zonealarm that will do pretty much the same thing. One benefit of using these is that you will have some control over who can go where and even when (especially if you're using a hardware router).
if you seek control you can also use content advisor in the IE properties to require a password for web site access, but that could be a pain in the butt if you ask me :-)
anyways...gl hope this helps.
Thank you everyone for your comments thus far. I think I should point out a few things for additional information.
Number one, all PC's out in the field have administrator rights. Not the most ideal setup I know, but there is method behind the madness. When engineers come to site to fix a problem they will often need administrator rights to do so. With several hundred PC's out in the field it is not feasible to have a different administrator password for every site and so we use a standard password for convenience. It was felt that even if we tried to keep this secret we would eventually fail dismally.
mikeleebrla, the windows VPN you mentioned caught my attention; this looks the ideal solution if it can prevent web surfing. One down side though, it would be a huge overhead. What we are in a position to do however is to automatically FTP software updates and this leads on to the second point raised by vtsinc - disabling port 80 which I will also have a look at. Maybe there is some code that could do this??? It could be run either at regular intervals or whenever my program detects explorer has been opened.
Finally, some of you mentioned how to audit which websites people had been visiting but this is not really all that helpful to us. We just want to prevent people surfing the web full-stop. The username will always be Administrator (software doesn't fix all the worlds problems!). If we can't physically stop them, our second best option would be to report when they have and escalate it to the area manager. Then the shop manager at the alleged time would always be accountable.
this will prevent web sites from being visited without knowing the password that you set
give it a shot and see if that would work for you...
oh, create the password under the general tab once you enable content advisor...
this is a configuration that you can set up on all the pc's then either keep the password secret or just give it to managers... then instruct them how to use content advisor...
Hey! that's just what I am looking for. Some of the innocent pages (e.g. www.msn.com) still show their content in the background even when the window pops up. Any reason for that?
"Is there a simple test I can program to check whether anyone has been surfing the internet?"
Sorry mate but I had understood that you wanted to check wether anyone, meaning anybody (not just one user) if they were surfing the internet or not. That is why I suggested to audit or to use Traffic analyzer which would automaticly message you in the event that port number 80 was being used on your network (I still honestly couldn't verify this, that's why I didn't post more info onit ... sorry).
I now understand that all you want to do is stop any but most specificly Administrator (as stated here "We just want to prevent people surfing the web full-stop. The username will always be Administrator" ) from accessing the internet and I would say, as you said that PaulADavis idea would be the easiest idea ...
The msn site still might popup in the background becuase it either might be trusted automaticly by your explorer as a trusted site or becuase it might be in your computer's internet cache. After all, for microsoft, what content from www.msn.com (microsoftnetwork.com) should you be "advised" from??
Hi UICE, you are right, I will put my hands up here and admit that preventing web surfing was not the original question I asked and as such I will split the points. PaulADavis, your answer was the most helpful to my scenario and so I will award you some of the points even though it would be wrong for me to flag your answer as the accepted one.
Well in reality I am the one out of place here. I really do not deserve the points as I did not supply the correct answer to your problem.
I was in reality just trying to state why I might have suggested to audit instead of suggesting a way of controling access based on your initial question ...
Terribly sorry if I somehow said or meant something that in reality wasn't my intention of actualy comunicating.
Glad you could all eventually help you out ...
Cheers ...
This is a problem my company has been struggling with for some time now, and we have been looking at various strategies to deal with it. There is no single right or wrong answer to this one, it may well be that we implement more than one solution for extra security. Your comments helped as well and as such you deserve credit for that :-)
Business Accounts
Answer for Membership
by: DanCh99Posted on 2005-03-11 at 09:08:35ID: 13518893
consider these: internet-s py/ (free!)
http://www.spyarsenal.com/
or
www.spytechonline.com
perhaps if you give us some more info about the scenario that you're facing, we can help further.