Learn how to block specific keywords on SonicOSX 7.0 using App Control. Follow this guide to restrict access based on keyword filtering.
A URI List Object uses its URI List to match URIs when scanning web traffic. It uses a token-based match algorithm, which means torrent.com does not match seedtorrent.com. The Keyword List makes URI matching more flexible, allowing the URI List Object to match traffic by matching other portions of a URI.
If a web traffic URI string (host+path+queryString) has any sub-string in the keyword list, the URI List Object gets a match. For example, if "sports" and "news" are in the keywords list, the URI List Object can match www.extremsports.com, news.google.com/news/headlines?ned=us&hl=en, or www.yahoo.com/?q=sports.
Keyword and Keyword List requirements:
We would need to create the following to block certain keywords through the firewall on SonicOSX 7.0.
NOTE: Since the search is done on the URI and the keyword might not be present on the SNI, common name fields, etc while using HTTPS, it is essential to have a decryption policy that can look at the exact URI requested by the end machine and perform keyword matching and block if necessary.
Creating a decryption policy:
Decryption policy matches the traffic and the only two actions we can take are decrypt and bypass. With decryption, we get more visibility to the data helping us in performing better matches and applying the right security policy.



Creating a Security Policy
Security Policy ties together the Keyword list object, Security Rule Action so that we know what action needs to be taken for a specific match. Before an HTTP/HTTPS connection can be made, the end machine would need to perform DNS resolution of the URL. Since we have an implicit deny rule, DNS traffic needs to be allowed as well.
To create the DNS related Security Policy



NOTE: This policy can also be created using the DNS protocol application signature, DNS service is used in this example.To create the block keyword related Security Policy






You would be now able to see the URLs containing those keywords getting blocked and the SonicWall block page shows up to indicate the same. A google or bing search for those keywords will also result in the block page.


NOTE: Note: Google Chrome browser uses a new protocol called QUIC (Quick UDP Internet Connection) that makes the searches faster but uses UDP 443 in the background. With QUIC enabled on the browser, the blocks might not work.
TIP: You can perform the following to tackle this: