Solved

creating host file on windws 7 machine.

Posted on 2013-12-10
2
228 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 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
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 prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

691 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