?
Solved

creating host file on windws 7 machine.

Posted on 2013-12-10
2
Medium Priority
?
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

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.
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

770 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