HOW TO DISABLE/ENABLE INTERNET ACCESS ON WINDOS



HOW TO DISABLE INTERNET ACCESS IN WINDOWS 7

May also work on newer versions


This is not harmful just a prank 


!
How can I easily disable (and later re-enable) internet access on Windows 7 via the command line (for an anti-procrastination script)? It would work fine if rebooting re-enables internet access. No local network access is required.
share

4 Answers

You can also, disable the internet connection just by releasing the assigned IP address.
From the elevated command prompt (Run as administrator), type:
ipconfig/release
When you want to enable the internet connection then:
ipconfig/renew
Hope this helps. share
Try netsh:
netsh interface set interface "Local Area Connection " ENABLE
netsh interface set interface "Local Area Connection " DISABLE
share
route delete -p 0.0.0.0
{shutdown}
route add -p 0.0.0.0 MASK 0.0.0.0 <gataway ISP1> METRIC <METRIC 1> IF <interface number ISP1>
route add -p 0.0.0.0 MASK 0.0.0.0 <gataway ISP2> METRIC <METRIC 2> IF <interface number ISP2>
share

For me (win 7) these commands only work if I deleted the space before the second ".
netsh interface set interface "Local Area Connection" ENABLE
netsh interface set interface "Local Area Connection" DISABLE"
  Note:this hide your IP address and your device can not be connected to the internet without IP 
So you can reactivate
Hope you enjoyed 
Please help let's share on social media and dont forget to subscribe for more relevant post like this
Thanks 

No comments:

Post a Comment