3

I want to create a user on a Windows 8 System that has no internet access. I do not want to monitor access or block some some sites / ports. I want the complete internet to be deactivated for said user.

Is that possible? If yes- how? Thanks!

Nifle
  • 34,203
  • 26
  • 108
  • 137
j00ls
  • 33
  • 2
  • Do you want to keep the local network in tact? What privileges does the user has (in terms of being able to undo it themselves if they have the knowledge) – LPChip Nov 27 '14 at 22:22
  • Do you have access to creating a server or proxy in the way? Do you want other programs to have their way around by changing their own proxy settings? – Canadian Luke Nov 27 '14 at 23:36

1 Answers1

0

Sure. Create a standard user account then schedule a script that runs on logon of that user that uses netsh to delete the default gateway from the network adapter and another script to restore the correct default gateway setting at their logoff.

To delete default gateway:

route delete 0.0.0.0 mask 0.0.0.0 <GATEWAY_IP>

To restore the default gateway:

route add 0.0.0.0 mask 0.0.0.0 <GATEWAY_IP>
I say Reinstate Monica
  • 25,487
  • 19
  • 95
  • 131
  • I don't know if it's me, but the netsh syntax is very confusing... I keep getting "Command not found" errors. netsh set address name=Ethernet gateway=none ? – j00ls Dec 03 '14 at 08:50
  • Answer updated with commands to delete and add routes, although I've provided ones using the `route` command. – I say Reinstate Monica Dec 03 '14 at 18:39