Hosts File Not Blocking a Website

lrichar3

New Member
Hi,

I have altered my hosts file on both an XP and Vista computer. The XP computer correctly blocks the unwanted websites ("Page cannot be displayed") but the same exact hosts file on the vista computer shows the sites.

What is going on here?

Thanks.
 

My Computer

Hi,

I have altered my hosts file on both an XP and Vista computer. The XP computer correctly blocks the unwanted websites ("Page cannot be displayed") but the same exact hosts file on the vista computer shows the sites.

What is going on here?

Thanks.

Hi Lrichar3,

Can you upload the hosts file or paste the code your entering for us to check? Some site might also have multiple IPs and Domain addresses...

Steven
 
Last edited:

My Computer

Assuming, also, that you have made sure you have blocked all domains (both WWW.and just the domain) make sure you have rebooted after making the change....
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro X64 Insider Preview (Skip Ahead) latest build
    Manufacturer/Model
    The Beast Model V (homebrew)
    CPU
    Intel Core i7 965 EE @ 3.6 GHz
    Motherboard
    eVGA X58 Classified 3 (141-GT-E770-A1)
    Memory
    3 * Mushkin 998981 Redline Enhanced triple channel DDR3 4 GB CL7 DDR3 1600 MHz (PC3-12800)
    Graphics Card(s)
    eVGA GeForce GTX 970 SSC ACX 2.0 (04G-P4-3979-KB)
    Sound Card
    Realtek HD Audio (onboard)
    Monitor(s) Displays
    2 * Lenovo LT2323pwA Widescreeen
    Screen Resolution
    2 * 1920 x 1080
    Hard Drives
    SanDisk Ultra SDSSDHII-960G-G25 960 GB SATA III SSD (System)
    Crucial MX100 CT256MX100SSD1 256GB SATA III SSD (User Tree)
    2 * Seagate Barracuda 7200.12 ST31000528AS 1TB 7200 RPM SATA II Mech. HD
    Seagate ST1500DL001-9VT15L Barracuda 7200.12 1.5 TB S
    PSU
    Thermaltake Black Widow TX TR2 850W 80+ Bronze Semi-Mod ATX
    Case
    ThermalTake Level 10 GT (Black)
    Cooling
    Corsair H100 (CPU, dual 140 mm fans on radiator) + Air (2 *
    Keyboard
    Logitech G15 (gen 2)
    Mouse
    Logitech MX Master (shared)
    Internet Speed
    AT&T Lightspeed Gigabit duplex
  • Operating System
    Sabayon Linux (current, weekly updates, 5.1.x kernel)
    Manufacturer/Model
    Lenovo ThinkPad E545
    CPU
    AMD A6-5350M APU
    Motherboard
    Lenovo
    Memory
    8 GB
    Graphics card(s)
    Radeon HD (Embedded)
    Sound Card
    Conextant 20671 SmartAudio HD
    Monitor(s) Displays
    Lenovo 15" Matte
    Screen Resolution
    1680 * 1050
    Hard Drives
    INTEL Cherryvill 520 Series SSDSC2CW180A 180 GB SSD
    PSU
    Lenovo
    Case
    Lenovo
    Cooling
    Lenovo
    Mouse
    Logitech MX Master (shared) | Synaptics TouchPad
    Keyboard
    Lenovo
    Internet Speed
    AT&T LightSpeed Gigabit Duplex
Here's the file:
I haven't rebooted yet, would that take care of it?

# Copyright (c) 1993-1999 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
127.0.0.1 localhost
127.0.0.1 www.pornhub.com
127.0.0.1 pornhub.com

127.0.0.1 www.blockedsite.com

Use the loop back address.

I tried that, and it wasn't working. (see post below for the exact host file text copied in.)
 
Last edited by a moderator:

My Computer

It might not be the source of popups. They usually are hosted from another site. You need to return the source code and track them down that way.
 

My Computer

System One

  • CPU
    pair of Intel E5430 quad core 2.66 GHz Xeons
    Motherboard
    Supermicro X7DWA-N server board
    Memory
    16GB DDR667
    Graphics Card(s)
    eVGA 8800 GTS 640 MB video card
    Hard Drives
    SAS RAID
It might not be the source of popups. They usually are hosted from another site. You need to return the source code and track them down that way.

I'm not getting pop-ups, I just want to block this one website from showing up in any browser, pop-up or otherwise.

I need to prevent another user on the computer from accessing the site.

It appears to be working now, I guess all I needed was a restart.

Thanks for all your help guys.
 
Last edited by a moderator:

My Computer

Back
Top