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.
Click on the Baitblock icon in the upper right corner of your browser and then click the settings icon.
Add whatever website that you want to block i.e: youtube.com
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:
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# - this part tells Baitblock that you want a pattern block
www\.google\.com - this part is the domain area aka the website where the pattern in going to be applied.
\/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:
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):