Unable to block a website through System32/drivers/etc/hosts

I am trying to block social media and news websites on my local machine (Windows 7).

I added the below lines into my hosts file:

127.0.0.1 www.thatstamil.com
127.0.0.1 www.facebook.com

In that way Facebook is successfully blocked. But thatstamil.com is still accessible. How do I block this site?


Solution 1:

Try removing the www. Just:

127.0.0.1 thatstamil.com
127.0.0.1 tamil.oneindia.com
127.0.0.1 facebook.com

Solution 2:

If you put in www.thatstamil.com, but are accessing thatstamil.com, the latter is not the same fully qualified domain name (fqdn) as www.thatstamil.com. Try using the following:

127.0.0.1 www.thatstamil.com
127.0.0.1 thatstamil.com

Solution 3:

Try to block tamil.oneindia.com instead of thatstamil.