Blocking websites on Chrome and Firefox (easy)

From time to time, you will see a website you just want to block. Maybe the website is a spammy one or is just a lot of distraction, like Facebook. This is especially true when children are involved and spending a lot of time on those websites. If you regularly use Chrome or Firefox browser, you might have seen that there are no obvious options to block websites. That being said, you can use the Baitblock extension to block websites. Let me show you how.

Step 1:

Install Baitblock for Chrome or Firefox.

Step 2:

Click on the Baitblock icon in the upper right corner of your browser and then click the settings icon.

Step 3:

Add whatever website that you want to block i.e: youtube.com

That it!


But wait, what if you’re an advanced user who wants to block websites via a pattern match?

Baitblock allows you to use regular expression patterns to block websites too:

pattern#(domain)\/(your regular expression pattern from here onwards)

No need to write the “http://” or “https://” part in the domain area. Just a website domain i.e:

www\.google\.com

Note the ‘\’ - slash before the dot’s. That is because in a regular expression pattern, we have to escape some symbols.

An example of full regular expression for Baitblock blocking Google Maps would be:

pattern#www\.google\.com\/maps.*
  1. pattern# - this part tells Baitblock that you want a pattern block

  2. www\.google\.com - this part is the domain area aka the website where the pattern in going to be applied.

  3. \/maps.* - this is tells Baitblock to block when you visit Google Maps. The .* in the end represents that there could no character, one character or any character after the word ‘maps’.

How the rule is applied:

pattern#www\.google\.com\/maps.*

This will block only when you visit Google Maps.

For more information on regular expressions you can visit the following resources (we have no affiliation to):

  1. RexEgg - a website explaining regular expression patterns in depth

  2. Regex101 - a website to quickly test your regex patterns