How to block all HTTP and HTTPS websites except for a few websites only?

If you would like to block most of the websites but allow some specific websites only, this can be done by a URL Filter with Action “Pass” and a DNS Filter. For example, we could set up the router to pass only our company's homepage and Google services for the LAN clients.

(For setup applies to Vigor3900, Vigor2960, and Vigor300B, please refer to the article here)

   

1. Create Keyword Object for the company's homepage: Go to Objects Setting >> Keyword Object, click on an Index number to edit.

  1. Enter profile Name
  2. In Contents, enter keyword of the website's URL which you would like to pass.
  3. Click OK to save.
   

2. Similarly, create another Keyword Object for Google services.

   

3. Create a URL Filter to pass websites of which URL contains the keyword: Go to CSM > URL Content Filter Profile, click on a profile Index to edit.

  1. Enter Profile Name.
  2. Set Priority to Either: URL Access Control First
  3. Enable URL Access Control
  4. Set URL Access Control Action to Pass
  5. Click Edit and, in the pop-up window, select the Keyword Objects of the URL you would like to pass.
  6. Click OK to save the profile.
   

4. Create a DNS Filter profile to filter HTTPS websites: Go to CSM >> DNS Filter Profile, click on a profile number to edit,

  1. Enter Profile Name.
  2. Set UCF(URL Content Filter) to the profile created in Step 3.
  3. Click OK to save.
   

5. Apply the URL Filter to Firewall Filter Rule: Go to Firewall >> Filter Setup >> Data Filter Set (Set 2), click on a Filter Rule Index to edit.

  1. Enable this Filter Rule
  2. Set Direction as “LAN/RT/VPN->WAN”
  3. Set Filter Action to Pass Immediately
  4. Set URL Content Filter to the profile created in Step3
  5. Click OK to apply
   

6. After the above configuration, most of the websites would be blocked.

   

Including HTTPS websites.

   

However, the websites of which URL contains the specific keywords are still available.

   
Was this article helpful?
15How to block all HTTP and HTTPS websites except for a few websites only? has been viewed------ 15 ------times.