MacOS – Block web-page containing a specific word in Safari

macossafari

I would like to know if there is any Mac Safari plugin to block any web page containing a specific word in its url or in its content.

For example, suppose we take the word 'abc', the following link must be blocked : wwww.dfrrraabc.com

A web page containing 'abc' in its content must also be blocked.

I don't know if a plugin like this already exists for Safari.

Best Answer

There is an open source extension for Safari named PeyvandhaBlocker to prevent loading an automatic page redirection based on IP (in the URL) and element type. You can get it and modify allowContentToLoad function in global.html file to take decisions based on URL or context of loaded web pages, and then edit the content.js for the block action you need.

Related Question