I want to build a website blocker..

When the website is opened, there should come somekind of an error, that says that this page could be loadet, because of a reason..

So etc, you type a website in a textbox, and if the website is etc loadet in firefox, then the website will be closed.

Is this possible, and if yes, can someone please make the codes for me?? =)