1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Malware block

Discussion in 'General Security' started by pcatrocity, Sep 18, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. pcatrocity

    pcatrocity Thread Starter

    Joined:
    Feb 8, 2010
    Messages:
    402
    Could someone tell me how to block this site than on my computer
    hxxp://hospitalpharm.com/
    I've tried to block it through the IE 9 but it encounters an error as shown in photo below.

    [​IMG]
     
  2. Phantom010

    Phantom010 Trusted Advisor

    Joined:
    Mar 9, 2009
    Messages:
    34,796
    You can use your Hosts file to block the website.

    It's located in:

    C:\WINDOWS\system32\drivers\etc

    Double-click the 'Hosts' file and select "Notepad" from the list of programs to open it with.

    Once you have the Hosts file open in Notepad, you will see an entry such as:

    127.0.0.1 localhost (or ::1 localhost)

    To block the website from loading, add the following line:

    127.0.0.1 www.hospitalpharm.com


    Once you are finished, go up to 'File' and click 'Save'.

    If using Notepad to edit the file, make sure to change the Save as Type: box to All files. Otherwise, Notepad may add a .txt extension to the file which will keep it from working. If you don't have your system set to show extensions, it's easy to miss that.

    The web pages listed in your 'Hosts' file should be blocked from access. It may be necessary for you to reboot your computer for these changes to take effect.
     
  3. pcatrocity

    pcatrocity Thread Starter

    Joined:
    Feb 8, 2010
    Messages:
    402
    I am Administrator but can't save it in etc folder as hosts.all files
    Had to save to documents folder instead. It saved as hosts.txt anyway
    Then when I was closing the hosts file it asked if I wanted to save the changes.

    Here's how the file looks in documents folder.
    # 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 www.hospitalpharm.com
     
  4. TheShooter93

    TheShooter93 Malware Specialist

    Joined:
    Jul 9, 2008
    Messages:
    11,242
    First Name:
    Cody
    It won't work in the My Documents.

    Why didn't it let you save it to the hosts folder?

    What error message appeared?
     
  5. Phantom010

    Phantom010 Trusted Advisor

    Joined:
    Mar 9, 2009
    Messages:
    34,796
  6. pcatrocity

    pcatrocity Thread Starter

    Joined:
    Feb 8, 2010
    Messages:
    402
    I tried without the # also. Despite it saying I'm trying to save as .txt I did change it to All files.

    [​IMG]
     
  7. Phantom010

    Phantom010 Trusted Advisor

    Joined:
    Mar 9, 2009
    Messages:
    34,796
  8. Snagglegaster

    Snagglegaster Banned

    Joined:
    Sep 12, 2006
    Messages:
    1,906
    In both Vista and Win7, you need to right click on Notepad and choose the option to Run As Administrator. Also, make sure that you have gone to Control Panel, then Folder Options, and in the View Tab, enabled Show Hidden Files and Folders, and unchecked Hide Extensions for Known File Types, so you can verify that you are editing the ANSI file (named Hosts with no file extension) and not a possible Hosts.txt file.
     
  9. pcatrocity

    pcatrocity Thread Starter

    Joined:
    Feb 8, 2010
    Messages:
    402
    THANK YOU VERY MUCH.

    Ran Notepad as administrator with file settings mentioned and it works.

    THANK YOU again.
     
  10. Phantom010

    Phantom010 Trusted Advisor

    Joined:
    Mar 9, 2009
    Messages:
    34,796
    You're welcome! (y)

    Thanks for the details, Snagglegaster. :)
     
  11. Snagglegaster

    Snagglegaster Banned

    Joined:
    Sep 12, 2006
    Messages:
    1,906
    Certainly! I have a couple of credit unions as clients, and anytime FiServ or Southwest Bancorp revise their software, the Hosts file generally has to be updated. If there were a certification available for Editing Hosts Files, I'd surely have one.:D
     
  12. dvk01

    dvk01 Moderator Malware Specialist

    Joined:
    Dec 14, 2002
    Messages:
    56,236
    First Name:
    Derek
  13. Snagglegaster

    Snagglegaster Banned

    Joined:
    Sep 12, 2006
    Messages:
    1,906
    Thanks! That looks like a time saver.
     
  14. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1018293

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice