I have already published Edit Hosts File Remotely Part 1 but here is another trick so i have published here as a part2
Just by following below simple steps you can edit hosts file without opening it.
1. Create new notepad file and rename it as modifyhosts.bat
2. Now Open Modifyhosts.bat and type same as below
As shown above we have used 127.0.0.1 with www.google.com name but to do fun with your friend you can just find ip address of any pornographic site (cmd -> ping <site name> ) and write www.facebook.com instead google.com
By doing this when your friend tries to open facebook.com it will be redirected to pornographic site (which is in hosts file) .
Enjoy!!!
Just by following below simple steps you can edit hosts file without opening it.
1. Create new notepad file and rename it as modifyhosts.bat
2. Now Open Modifyhosts.bat and type same as below
echo 127.0.0.1 google.com >> c:\Windows\System32\drivers\etc\hosts3. Save it Now run it as an administrator. ( Check images below for more clearance )
Type in modifyhosts.bat as above (Click to Large) |
Hosts file after running modifyhosts.bat |
After editing running modifyhosts.bat, browser not able to open google. |
As shown above we have used 127.0.0.1 with www.google.com name but to do fun with your friend you can just find ip address of any pornographic site (cmd -> ping <site name> ) and write www.facebook.com instead google.com
By doing this when your friend tries to open facebook.com it will be redirected to pornographic site (which is in hosts file) .
Enjoy!!!