Solved

creating host file on windws 7 machine.

Posted on 2013-12-10
2
217 Views
Last Modified: 2013-12-18
i have a windows 7 machine.
Can you tell me what host file to create so that it will redirect facebook.com to some local file on computer that tells my daughter that
"Facebook is not available in your area at the moment.  Please try again later."
I can create an http web page and put it on a local drive.
What does the redirect file look like and where does it live?  Where do I put it on the Windows 7 machine?  Is it independant of browser?
0
Comment
Question by:kamistry
2 Comments
 
LVL 9

Expert Comment

by:TunerML
ID: 39709029
The 'hosts' file is located in %windir%\system32\drivers\etc

You could add an entry for facebook.com and redirect it to another ip.
0
 
LVL 14

Accepted Solution

by:
Rob Miners earned 500 total points
ID: 39709637
It has to be opened elevated.

Windows 7

Click Start, click All Programs, click Accessories, right click Notepad and then click, Run as administrator.
If you are prompted for an administrator password or for a confirmation, type the password or Click OK or Yes to the UAC prompt.

Click File Open, in the dropdown box bottom right, change Text Documents (*.txt) to All Files (*.*) and Navigate to C:\Windows\System32\drivers\etc\hosts
Open the Hosts file, make the necessary changes, and then click Save on the File menu.

    127.0.0.1 login.facebook.com
    127.0.0.1 www.facebook.com
    127.0.0.1 blog.facebook.com
    127.0.0.1 apps.facebook.com

Reboot your computer to apply the changes.

ref# http://hidetools.com/how-to-block-facebook.html
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question