Why blocking sites using Hosts file isn't working?

Hello 
I need to block a few websites on my home computer. Did a quick search and found out I had to work with the hosts files. So opened up Notepad, ran it as Admin and then opened Hosts and at the bottom added ' 127.0.0.1 facebook.com' then saved the file. But
facebook is still opening when I go to the page. 
can someone tell me why  using the Hosts file isn't working?
I did read somewhere that it might have something to do with security features on my system. FYI, I m using a trial version of Norton Anti Virus and I am running a Windows 7 machine. 
Thanks. Any help would be appreciated. 

Are you sure your entry was in fact saved to the hosts file?  The hosts file on my computer blocks unwanted sites.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Yes
This is a copy paste of CMD.exe. It shows what's in the host files. 
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\mehdi>cd C:\windows\system32\drivers\etc
C:\Windows\System32\drivers\etc>dir \a-d
 Volume in drive C is Gateway
 Volume Serial Number is B291-A8C6
 Directory of C:\
File Not Found
C:\Windows\System32\drivers\etc>dir /a-d
 Volume in drive C is Gateway
 Volume Serial Number is B291-A8C6
 Directory of C:\Windows\System32\drivers\etc
10/23/2010  01:06 PM               846 hosts
06/10/2009  02:00 PM             3,683 lmhosts.sam
06/10/2009  02:00 PM               407 networks
06/10/2009  02:00 PM             1,358 protocol
06/10/2009  02:00 PM            17,463 services
               5 File(s)         23,757 bytes
               0 Dir(s)  936,919,461,888 bytes free
C:\Windows\System32\drivers\etc>type hosts
# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
# localhost name resolution is handled within DNS itself.
#       127.0.0.1       localhost
#       ::1             localhost
127.0.0.1 facebook.com
C:\Windows\System32\drivers\etc>

Similar Messages

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • Cannot use hosts file with 10.5.1

    Hi,
    Not sure when this problem creeped in, I think it is since my upgrade to Leopard.
    The problem is that whatever I put into my /etc/hosts file is not used. Restards, cache flushes do not help.
    If I have in the hosts file
    xx.xx.xx.xx anotherHost
    nslookup anotherHost fails
    What I think is the root cause is that the resolver is hardwired only to DNS and does not read the hosts file. Unfortunatelly I cannot find a way how to change the resolving order in Leopard. lookupd is gone and was replaced by what ?
    Reproducable on colleague's macbook.
    So short summary :
    * how do I make my resolver use hosts file
    * how do I control the lookup sequence of my resolver
    Regards,
    Georgi

    As described by others NSLOOKUP looks up onto the name server not the host file
    Samba instead would use your host file first then an NSLOOKUP then WINS and finally broadcast
    So what kind of service do you want to use your host file for?

  • How and why do I use Xpn files in Photoshop cc 2014

    How and why do I use Xpn files in Photoshop cc 2014. in windows & SP2. I have been given about 20 .XPN files with a Photoshop course. I believe they are PS presets. I have no idea what to do with them.
    Thanks

    To be honest, i don't what those are either, as far as photoshop is concerned.
    Is the course specific to one subject or a general photoshop course?
    Here's a list of some of the most common kinds of photoshop files and the relevant extensions
    http://www.zuberphotographics.com/content/downloads/file-extensions.htm

  • Asigning a name to a host without using hosts file

    Hi, we have developed a rich client application that connects to a websphere Appserver in order of using ejb. This app is intended to work in different places, connecting to a different Appserver in each place. When the service locator of our client app connects to the appserver to obtain the references to the ejbs, the server returns some kind of URL that contains the name of the machine defined
    in the hosts file of the server. The problem is that if this name is not in the host file of the client machine the application crashes because it cannot communicate with the appserver. We have a large number of client machines and we would like to avoid having to modify the host file of every one of them.
    Is there a way to tell the application to assign an IP to a hostname at runtime?

    I think that you can directly use IP addresses instead of the host names.
    If your are in a lan you will be able to use the compulter name of the hosts too.
    Also if you get proper DNS setup in your network you will be able to allocate domain names to your hosts and reffer them by their domain name. And the clients will be able to find the hosts through DNS lookup

  • Exporting using share to file isn't working in my iMovie.

    When I use Share > File to export my movie I get the notification saying it's successful. But when I go and look in the folder I saved the movie to it's not there. How do I fix this problem and actually get the iMovie to export my project to a regular folder?

    Reboot.
    try copy & pasting of some @
    try a different email  client see app store
    use a web browser to access the email on a server
    re-boot ipad.
    Press and hold the Sleep/Wake button until a red slider appears, then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.  page 128 iPad user manual.
    more details on re-booting:
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Reboot-Your-iPad-Power-Off.htm

  • Unzip'ing a split zipped file isn't working--.

    Trying to split file using zip. I've used the -s to split the file (which worked fine).  But unzip will not put the file back together. Why?

    Trying to split file using zip. I've used the -s to split the file (which worked fine).  But unzip will not put the file back together. Why?

  • Changed hosts file, doesn't work

    I've changed my hosts file but it doesntwork. I tried to restart my pc and uncheck-check the tcpip v4 and v6 protocol for the network adapter, but still does't work. Disabled and enabled antivirus, but nothing. Here below the test i do at the cmd prompt.
    C:\Windows\System32\drivers\etc>more hosts
    127.0.0.1 myself
    C:\Windows\System32\drivers\etc>ping myself
    Impossibile trovare l'host myself. Verificare che il nome sia corretto e riprovare.
    C:\Windows\System32\drivers\etc>

    Hi sandro.delmastio,
    What is your current situation?
    Have you tried the solution as Robert Aldwinckle mentioned?
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Can I block sites using keywords using airport Utility?

    I have upgraded to an Airport Extreme from an old Netgear router. The AE is better than my old router is almost every respect (one of the main reasons for changing is that I can control use to a device by time).  One surprising feature that seems to be missing is blocking web sites either by domain or keywords.  Is this possible using the Airport Utility, I can't seem to find anything?
    Thanks.

    One surprising feature that seems to be missing is blocking web sites either by domain or keywords.
    Sorry, the AirPort routers do not have this type of feature.

  • Why are all virtual host files named "0000_" instead of incrementing numbers?

    I've created several virtual hosts using Lion Server's Server app.  Each .conf file that is created is prefixed with 0000_.  On SL Server, each vhost file was incrementally numbered, like 0001_, 0002_, etc.
    Is this a bug?  Or by design? 

    That can be caused by a problem with the HTTP response headers.
    Did it work before with a Firefox 8 version?
    Maybe something similar as this problem with Outlook Web Access:
    *[[/questions/894442]] OWA 2010/Firefox 8 and ASHX Attachments
    *[[/questions/895024]]

  • Why cant i use the filer gallery option in photoshop

    Is there any reason as to why I cannot select the Filter Gallery option in photoshop cc. I noticed it is not with all my images.

    What do you mean, "not with all my images?"
    The menu needs to be made visible via the Preferences - Plug-ins panel.
    After that, your image needs to be 8 bits/channel RGB in order to use the Filter Gallery features.  Adobe has not updated all these filters to handle deep data (16 bits/channel or higher) images directly.
    -Noel

  • .swf file isn't working in a wrapper that was created in Director::

    I'm working with a client that uses an in house "wrapper" that houses their training courses and has some back end reporting built into it.  The wrapper basically is the shell that consists of the navigation so users can get through the different files and courses that are housed within the wrapper.  It's a jerry.rigged lms.  I create courses for this client using captivate 4.0 and publish out to .swf files.  All my files have worked for them.  However,  I have created a new type of interaction for them and it's not working for them once the bring it into the director wrapper.  It's a screen that has 6 clickable areas on it and when the learner clicks, they should get a .pdf document that opens in a new window.  What's happening is the screen shows up, but the documents aren't pulling up when they click on the links.
    FYI--the interaction works perfectly until it is loaded into the wrapper.
    Any thoughts?
    Thank you!

    Director mx2004 10.1
    You need 10.1.1
    This quote is from the download page:
    <quote>
    Download the appropriate developer update file based on your platform and language of use so you can drag-install the necessary files to update both Director MX 2004 and your Shockwave Player to version 10.1.1. This latest update contains fixes for a number of known issues in addition to providing support for Flash 8 SWF files.
    </quote>

  • [Solved] Overriding systemd Unit Files Isn't Working

    I'm trying to set up some custom dependencies for various services, some of which are supported packages, some are custom packages I've developed. I am running into problems following the procedure described here - specifically, service files in /etc/systemd/system are ignored, and the only way to override them is to edit the files in /usr/lib/systemd/system. I have verified this issue on both a VPS instance and my desktop. Both systems were originally built well before systemd and have been converted to pure systemd systems. Does anyone else see these issues, or know of any reason this would be happening and/or how to resolve it?
    Steps to reproduce. This example uses httpd and mysql, but I've tested it with several other services, always with the same results:
    Enable the service unit and create a new override:
    systemctl enable httpd.service
    rm /etc/systemd/system/multi-user.target.wants/httpd.service
    cp /usr/lib/systemd/system/httpd.service /etc/systemd/system/multi-user.target.wants/httpd.service
    Edit /etc/systemd/system/multi-user.target.wants/httpd.service, adding a line 'Wants=mysqld.service' to the [Unit] section.
    Make systemd changes effective, and verify them. The first command results in an error that says "Failed to issue method call: Invalid argument". The final command will show an empty list  ("Wants="), when it should list mysqld. Running systemd-delta also shows no override.
    systemctl reenable httpd
    systemctl daemon-reload
    systemctl show -p "Wants" httpd.service
    Change the replacement unit file to .include the packaged unit file:
    cat > /etc/systemd/system/multi-user.target.wants/httpd.service << __EOF
    .include /usr/lib/systemd/system/httpd.service
    [Unit]
    Wants=mysqld.service
    __EOF
    Repeat step #3, with the same results
    Reenable the package's unit:
    rm /etc/systemd/system/multi-user.target.wants/httpd.service
    systemctl enable httpd.service
    Edit the original unit file in /usr/lib/systemd/system/httpd.service, adding the 'Wants=myslqd.service' to the Unit section
    Repeat step 3
    Result is the correct and expected one this time ("Wants=myslqd.service")
    Last edited by dwheeler (2012-11-14 19:53:10)

    Well...
    I'm still having problems with .service custom files!
    I want to customize the ExecStart from original cronie.service file, like this:
    # cat /etc/systemd/system/cronie.service                                                                                         
    .include /usr/lib/systemd/system/cronie.service                                                                                               
    [Service]                                                                                                                                     
    ExecStart=/usr/sbin/crond -n -s -m off
    ==============================
    # systemctl restart cronie.service                                                       
    Failed to issue method call: Unit cronie.service failed to load: Invalid argument. See system logs and 'systemctl status cronie.service' for details.
    ==============================
    # systemd-delta                                                                                             
    [OVERRIDDEN] /etc/systemd/system/cronie.service → /usr/lib/systemd/system/cronie.service
    --- /usr/lib/systemd/system/cronie.service      2012-11-22 20:04:00.000000000 -0200
    +++ /etc/systemd/system/cronie.service  2012-11-27 16:09:49.944085437 -0200
    @@ -1,10 +1,3 @@
    -[Unit]
    -Description=Periodic Command Scheduler
    +.include /usr/lib/systemd/system/cronie.service
    [Service]
    -ExecStart=/usr/sbin/crond -n
    -ExecReload=/bin/kill -HUP $MAINPID
    -Restart=always
    -[Install]
    -WantedBy=multi-user.target
    +ExecStart=/usr/sbin/crond -n -s -m off
    ==============================
    # systemctl status cronie.service
    cronie.service - Periodic Command Scheduler                                                                                                   
              Loaded: error (Reason: Invalid argument)
              Active: inactive (dead)
              CGroup: name=systemd:/system/cronie.service
    Nov 27 13:52:59 xpto systemd[1]: Starting Periodic Command Scheduler...
    Nov 27 13:52:59 xpto systemd[1]: Started Periodic Command Scheduler.
    Nov 27 13:52:59 xpto /usr/sbin/crond[309]: (CRON) INFO (running with inotify support)
    Nov 27 14:01:01 xpto /usr/sbin/crond[8216]: pam_unix(crond:session): session opened for user root by (uid=0)
    Nov 27 14:01:01 xpto /USR/SBIN/CROND[8217]: (root) CMD (run-parts /etc/cron.hourly)
    ==============================
    What am I doing wrong?
    Thanks in advance.

  • Compressing files isn't working for me

    I have a 46mb movie file. Too big to attach to my email. I compressed it in Finder, and it showed me a progress bar grinding away, and then displayed my file with a .zip extension. However, the zipped file is the same size as the original.
    What should I be doing to get this file shrunk down to a smaller size?
    Thanks in advance.

    What should I be doing to get this file shrunk down to a smaller size?
    Re-encode it using a greater compression settings.
    Videos are already compressed, so zipping them has no effect.

  • Why is my Acer "Ab Files" program not working properly when I download it to my Acer Aspire One?

    Hello there, Im having an issue with trying to download Acers Ab files that works with the apps for Iphone. When I do download it and I click on it, my screen goes black for a second and then everything on my screen gets huge like its in SAFE MODE. I've tried to uninstall it and it keeps doing the same darn thing. I've checked for recent updates for windows and spy and malware and any corrupt files using a program that detects and fixes them. It comes up clean. This program used to work on my computer and now it doesn't. So far, I think its the only one that works convienently using wireless, unless theres another app that does the same. Anyone have this problem? Thanks....

    Charliewhitepaw,
    When you say this program used to work on your computer, what has changed since then? Have you attempted to go back (system restore) to when it worked to see if that resolves the issue?

Maybe you are looking for

  • [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

    Does anybody know why VirtualBox refuses to use the native Qt widget style?  I was hoping the problem lied with Qt3, but it remains in VirtualBox 2.0 - which uses Qt4.  In case I'm the only one suffering from this bug, I've included a screenshot: Edi

  • How do I get a line out signal from my macpro mid-2012

    I went to Preferences, Sound, Output. The only option is HEADPHONES. I want to send music from iTunes to a sound mixing board. I can use the headphone port, but the signal is weak and poor sound quality. I used to use  my iPod which works well becaus

  • Mon ipad ne veut pas s'activer suite la mise a jour iOS 7 que faire?

    Bonjour, je viens de faire la mise a jour de mon ipad 2 16Go 3G , tout se passe bien il s'allume, me demande la langue , pays etc... mais lors de l'activation que cela soit avec itunes ou reseaux wifi il ne veux pas s'activer et me dit que le serveur

  • Volume exceeds maximum file size

    Hi, I am trying to compress a FC7 file using Compressor. I want to compress as a ProRes and as .264 file. I have an error each time: it says: "volume exceeds maximum file size". I don't understand where it come from. I have got space on my disk. I do

  • Information on HR project implementation

    Hi All, We are planing to implement SAP HR. We would like to know strengths and weaknesses of the variety of technologies SAP employs to process data, develop interfaces, send notifications, etc.: ABAP, SAP workflow, XI, etc. Please provide the infor