This article will explain some advanced filtering techniques. We’ll go over how to use wildcards, apply multiple policies, and how to filter certain sites on a domain.
Applying Multiple Policies
Multiple policies may be applied to an OU.
Please note: Any category blocked on any applied policy will be blocked for users within that OU. Any URL explicitly allowed on any of the applied policies will be allowed and take precedence over a category block. When overlaying multiple policies, we recommend leaving your root policy with the least amount of category blocks and applying more restrictive policies further down the OU tree.
For example, if a "Default" policy allows "Social Media" as a category but the "Restrictive" policy blocks this category. Any website categorized as "Social Media" such as Facebook.com would be blocked when both these policies are applied. If facebook.com is explicitly allowed as on either policy, it will be allowed.
In GoGuardian, asterisks are used to denote wildcards. Wildcards are a very useful tool for filtering. Keywords or URLs placed in between the wildcards (or asterisks) can be blocked or allowed regardless of the remaining part of the URL. When a "wildcard term" or domain to blocked/allowed, it will result in all URLs containing that wildcarded term to be blocked/allowed.
Here are some examples of how you can use wildcards on your block/allow list:
- Keyword blocks: if you add *proxy* to your block list, this will block any site that has the word “proxy” in the URL.
- Multi-word keywords: if you add *harry+potter* to your blacklist, this will block any Google searches for these terms
- Top-level domain blocks: if you add *.io to your blacklist, this will block any site that ends in “.io” (many game sites use .io domains)
- Sub-domain blocks: if you add *.mlb.com to your blacklist, users would be able to access mlb.com, but would be blocked from sub-domains such as yankees.mlb.com or dodgers.mlb.com
Pro Tip: Be careful blocking short keywords! Many URLs contain long strings of random letters and this could cause unexpected blocks. Example: *room* will block access to classrooms.google.com.
Here is a list of wildcards that we recommend adding to the block list on your default policy:
Note: Blocking sites with wildcard terms can cause some pages to be blocked unintentionally. If you find sites are being blocked unexpectedly, check your wildcard block rules. If they are too general, you may want to remove them, otherwise, you can override the block rule with an allow rule for the page or domain.
The words proxy and VPN may appear in URLs for some Google services, such as drive.google.com and docs.google.com. If you find these services are being blocked unexpectedly, check the URL for the term. This can be fixed by adding an Allow Rule for the URL that was blocked.
Blocking/Allowing Domains and Subdomains
Sometimes you only want students to be able to access certain parts of a website/domain. Keep in mind that the allow list will always override the block list (including category blocks).
1) Let’s say you want students to be able to access docs.google.com (a subdomain), but not Google.com (a domain) or any other Google subdomains (such as sheets.google.com):
- Add “google.com” to your block list (this will also block all subdomains)
- Add “docs.google.com” to your allow list (this will override the block list for this subdomain only)
2) If you wanted to allow Google.com but didn’t want students to be able to get to sheets.google.com:
- Add sheets.google.com to the block list
*There is no need to add google.com to the allow list, as students should be able to access it already (unless a policy in Restrictive Mode is being applied).
Blocking Google Images
To fully block Google Image searches, add the wildcard *tbm=isch* to your block list. "tbm=isch" is specific to Google Image searches. Please note that Google.com cannot be on the allow list in order for this to work.
Blocking Google Searches
You can block specific Google Searches, without blocking URLs containing that specific term. In order to block specific Google Searches, add *q=term* to your policy, where "term" stands in for the search you would like blocked.
For example, adding *q=snake* will block the search for the term "snake", but will still allow sites that contain "snake" in the URL. Blocking *gun+mayhem* will block any url with both those words in it.
Allowing/Blocking Sites with a path
Certain characters such as URLs with a question mark will not be able to be added to the blocked/allowed site list.
For example, if you would like to block, https://site.websites.com/view/game/home?authuser=1 please remove the characters following the question mark and add the wildcard. This will block all URLs within that subdomain and with the beginning path.
To learn more about GoGuardian DNS filtering and the differences on how the policies are applied, click here.