Using hosts file to stop myspace usage

All our users are thin client users.
We do not have any web filtering so I would like to stop them from using myspace by the hosts file
I did a whois for and it comes up with
So I tried to build the hosts file to say

I thought by doing this it would send myspace requests to the localhost which is a dead page.
However, it is not working.  What did I do wrong???
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
You're mapping an IP to an IP - that won't work - you need to map an IP to a NAME


This says when "" is in need of resolving, resolve it to

You might also want to add:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I would try:

This should redirect all subdomains myspace might have outside of I would also put the entry in the lmhosts file as well for good measure.
your entry should be     localhost

You have to flush the DNS cache before it will use the host file. Open run and type ipconfig /flushdns.

Alternately there is a great free service that can provide content filtering service site wide. The address is

Hope this Helps,

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Putting the entry in LMHOSTS is pointless - that for Windows name resolution on the local network.  And overcld9's post is incorrect.  While you SHOULD have an entry for localhost, you would NOT have http:// in it AND, keep in mind - the idea is to BLOCK access to MySpace - a corrected entry (without http://) would actually guarantee access if DNS failed.
Sorry I gave you the wrong entry for my space .. you would want to change the ip addess for .. I wouldn't use as there are a number of apps that use the localhost designation.

for myspace localhost

btw .. is

funny I was fixing the post before I noticed any one else was commenting ...
Michael WorshamStaff Infrastructure ArchitectCommented:
An easy solution would be setting up an open source (aka free) Untangle application server between your router and your internal network in transparent bridge mode. The Untangle appliance has a Web Content Control module that blocks user access to specific Internet websites. The Web Content Control also enables you to choose among these categories to define web content control policies in your workplace. can can use custom URL blocklists for hosts, domains, and file types to block additional content.

Untangle Site:

Untangle Product Overview:

Untangle Demo/Video Overview

Untangle Quick Start Guide

Untangle Server as a Bridge
Lee W, MVPTechnology and Business Process AdvisorCommented:
Actually, if you're trying to redirect, I to another page, I would suggest creating a web page on your intranet that explains the acceptable use policy for your internet connection... then redirect your users to THAT page.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.