One can have many reasons to block a website. The most notable without any doubt is parental control. Although this can be done using the Windows hosts file, Opera makes it even easier by adding it as a feature.
First, open Opera. Click on the Opera Menu button (the button with the Opera logo), select Settings and click Preferences:
Note: Alternatively you can use Ctrl + F12.
A new window will appear:
Select the Advanced tab:
On the left pane select the Content tab:
Press the Blocked Content button. A new window will appear:
Press the Add button. A new blank site address will appear:
Enter the site you wish to block. In our example we will block google.com:
Press Close. Press OK. Now when you try to open google.com it will not load.
Now let’s take a moment to see what each entry stands for. The entry http://www.google.com/* stands for each site which starts with “http://www.google.com/” and is followed by zero or more characters.
Basically the “*” is a sort of a wildcard character, which represents one or more characters. So instead of the two entries we can have this one:
If we wish to block all google sites we use the following entry:
Of course the “http://” can be omitted:
And we can have
Note that this will block all sites containing the string “google.”. For example if the site named “somethinggoogle.com” exists we will have blocked it too. To edit/delete entries use the Edit/Delete buttons in the Blocked Content window.