# Easy way to block a website in Firefox?

**URL:** https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573
**Category:** Factual Questions
**Created:** [August 1, 2014, 12:07pm UTC](https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573 "2014-08-01T12:07:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![EmilyG](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/emilyg/32/364_2.png) [@EmilyG](https://boards.straightdope.com/u/EmilyG)
#### Post date: [August 1, 2014, 12:07pm UTC](https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573/1 "2014-08-01T12:07:49Z")

</div>

Is there an easy way to block a website in Firefox? I mean actual websites, not pop-up ads.  
There are some ways listed [here](http://www.digitaltrends.com/computing/how-to-block-a-website/#!bsVCuQ), but they sound a bit too complicated for my feeble, non-tech-savvy brain.  
Is there an easier way?

---

<div class="post-metadata">

### Author: ![Claverhouse](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Claverhouse](https://boards.straightdope.com/u/Claverhouse)
#### Post date: [August 1, 2014, 12:12pm UTC](https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573/2 "2014-08-01T12:12:19Z")

</div>

**[BlockSite](https://addons.mozilla.org/en-US/firefox/addon/blocksite/)**

or

**[LeechBlock](https://addons.mozilla.org/en-US/firefox/addon/leechblock/)**

---

<div class="post-metadata">

### Author: ![Matt1075](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Matt1075](https://boards.straightdope.com/u/Matt1075)
#### Post date: [August 2, 2014, 2:39am UTC](https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573/3 "2014-08-02T02:39:45Z")

</div>

Another one is Killjasmin. It is called a pop-up blocker, but the effect is the same. If you enter the website name, Firefox won’t take you there.

---

<div class="post-metadata">

### Author: ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)
#### Post date: [August 2, 2014, 7:35am UTC](https://boards.straightdope.com/t/easy-way-to-block-a-website-in-firefox/694573/4 "2014-08-02T07:35:27Z")

</div>

The method of adding 127.0.0.1 lines to the hosts file is reasonably simple enough.

(1) Locate the hosts file. It is in different places on different machines.  
On a Winders machine it’s located at C:\Windows\System32\drivers\etc\hosts  
and on Mac and Unix and Linux machines and it’s located at /etc/hosts

(2) Make a back-up copy of the file, using any file-copying method of your choice.

(3) Open the hosts file in any plain-text editor of your choice. For Winders users,  
Notepad or Wordpad are commonly used. Notepad is simplest.

(4) Add any number of lines similar to these, for example:

```auto

127.0.0.1 www.youtube.com
127.0.0.1 www.craigslist.org
127.0.0.1 www.stormfront.org

```

Add a separate line like these for every site you wish to block.  
These lines all begin with 127.0.0.1  
Be sure to leave alone all existing lines in the file. Just add new lines at the end.

(5) Save the file. You may or may not even have to re-start your browser  
or re-boot your machine.

Note, you may need to have some kind of admin privilege or superuser privilege  
to do all this. If you need more help with this, or with finding or editing the file,  
the best way is to get somebody knowledgeable to help you in person.
