Solved

creating host file on windws 7 machine.

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
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 update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now