How do I block every website except for a few? [RESOLVED]

I want to configure my firewall to block every website except for Dictionary.com and a couple of others. I want to do this while studying, so I don’t procrastinate to unrelated websites.

Tried the following:
(1) Enable “Block All Mode” in Firewall Behavior Settings
(2) Create a rule for allowing port 53 for DNS service
(3) Create a rule for allowing HTTP ports [Predefined group of ports in the software]
(4) Create a rule for allowing destination IP xxx.xxx.xxx.xxx
(5) Create a rule for blocking everything else

So far I have not been successful. Have anyone tried this before?

There’s a two step way to do this, but you need to setup a global firewall rule.

FIREWALL → ADVANCED → NETWORK SECURITY POLICY → GLOBAL RULES

  1. Create a zone for the web sites you want to be able to surf to.
  2. Create a global BLOCK firewall rule with the following parameters;

Action : BLOCK
Protocol :TCP
Direction : OUT

MAKE SURE THE EXCLUDE OPTION IS SELECTED

Source Address : ANY (This is your PC)
Destination Address : The zone you created in step 1
Source Port : ANY
Destination Port : A SET OF PORTS (Select HTTP from the drop-down list)

Click APPLY, then click OK. Now, move this rule to the top of the list.

you may also need to remove the application rule for Internet Explorer ()or whatever browser you use).

This rule will allow you to surf to the sites you put in the zone but will block surfing to any site not in the list.

Hope this helps,
Ewen :slight_smile:

The instructions were simple to follow and works perfectly. Thank you! :-TU ;D