New
#11
Sorry everyone but I have done everything suggested and it still does not block the website.
Sorry everyone but I have done everything suggested and it still does not block the website.
This reg file still works for me:
HOSTS File - Add or Remove from Desktop Context Menu - Windows 7 Help Forums
I can edit and save hosts file no problem. I tend to use third party software for hosts file management though.
This website that you want to block - can you post the URL or if not post something similar and show us how it looks in your hosts file?
It should work as long as it is named just HOSTS without any file extension (and assuming you have written it correctly). Open a Command prompt and type the command:
dir c:\windows\system32\drivers\etc\hosts*.*
Your file should be shown as HOSTS with no extension. I suspect you'll find it still has an extension, .txt perhaps.
Oh, so it's Facebook you want to block - that probably explains it. Facebook is well known for being difficult to block .
For a start, try adding fb.com to your HOSTS file. There's more you may need to add here...
Hosts File to Block Facebook from my Machine · GitHub
For a comprehensive list of Facebook sites see...
How to block Facebook: All the URLs you need to block to *actually* stop using Facebook — Quartz
Well spotted @Callender. There shouldn't be a 'http//' for any site name in a HOSTS file.
Then from the same thread look at the entries in the hosts file in this post:
Protecting yourself from In-Browser Miners Solved - Page 3 - Windows 10 Forums
Some people resort to using third party software. I have not tried this one:
Facebook Blocker Tool : Free Software to Block or Unblock Facebook on Windows | www.SecurityXploded.com
EDIT: Just tried it and it just adds these entries into the hosts file:
Code:Facebook Blocker Start # 0.0.0.0 www.facebook.com 0.0.0.0 facebook.com 0.0.0.0 apps.facebook.com 0.0.0.0 developers.facebook.com 0.0.0.0 web.facebook.com 0.0.0.0 mobile.facebook.com 0.0.0.0 free.facebook.com 0.0.0.0 fb.com 0.0.0.0 messenger.fb.com 0.0.0.0 messenger.com 0.0.0.0 l.facebook.com 0.0.0.0 m.facebook.com 0.0.0.0 login.facebook.com 0.0.0.0 blog.facebook.com 0.0.0.0 business.facebook.com 0.0.0.0 pixel.facebook.com 0.0.0.0 upload.facebook.com 0.0.0.0 mbasic.facebook.com 0.0.0.0 touch.facebook.com 0.0.0.0 zh-cn.facebook.com 0.0.0.0 de-de.facebook.com 0.0.0.0 fr-fr.facebook.com 0.0.0.0 it-it.facebook.com 0.0.0.0 pl-pl.facebook.com 0.0.0.0 es-es.facebook.com 0.0.0.0 pt-br.facebook.com 0.0.0.0 es-la.facebook.com 0.0.0.0 en-gb.facebook.com 0.0.0.0 hu-hu.facebook.com 0.0.0.0 tr-tr.facebook.com 0.0.0.0 sv-se.facebook.com 0.0.0.0 fr-ca.facebook.com 0.0.0.0 zh-tw.facebook.com 0.0.0.0 ja-jp.facebook.com 0.0.0.0 cs-cz.facebook.com 0.0.0.0 da-dk.facebook.com 0.0.0.0 ro-ro.facebook.com 0.0.0.0 el-gr.facebook.com 0.0.0.0 nb-no.facebook.com 0.0.0.0 th-th.facebook.com 0.0.0.0 ar-ar.facebook.com 0.0.0.0 id-id.facebook.com 0.0.0.0 pt-pt.facebook.com 0.0.0.0 fi-fi.facebook.com 0.0.0.0 bg-bg.facebook.com 0.0.0.0 sl-si.facebook.com 0.0.0.0 ru-ru.facebook.com 0.0.0.0 zh-hk.facebook.com 0.0.0.0 ms-my.facebook.com 0.0.0.0 fa-ir.facebook.com 0.0.0.0 vi-vn.facebook.com 0.0.0.0 sq-al.facebook.com 0.0.0.0 sk-sk.facebook.com 0.0.0.0 hr-hr.facebook.com 0.0.0.0 ca-es.facebook.com 0.0.0.0 sr-rs.facebook.com 0.0.0.0 he-il.facebook.com 0.0.0.0 et-ee.facebook.com 0.0.0.0 en-pi.facebook.com 0.0.0.0 mk-mk.facebook.com 0.0.0.0 tl-ph.facebook.com 0.0.0.0 ko-kr.facebook.com 0.0.0.0 lv-lv.facebook.com 0.0.0.0 uk-ua.facebook.com 0.0.0.0 gl-es.facebook.com 0.0.0.0 lt-lt.facebook.com # Facebook Blocker End #
Last edited by Callender; 17 Jul 2018 at 20:19. Reason: add info