Technical Tip: How to block a domain and sub-domains using Web Filtering
Description
Scope
FortiGate.
Solution
Using the GUI, go to Security Profiles -> Web Filter. Select the appropriate web filter profile from the top right-corner drop-down menu. Select the box 'Enable URL Filter' under Static URL Filter.
Select 'Create new'. A pop-up opens up. Type URL as *wapka-file*. Select type as 'Wildcard', Action as 'Block', and Status as 'Enable'. Select 'OK', then select Apply at the bottom of the profile. Make sure that the same web filter is applied in the policy.

edit 1
set name <name>
config entries
edit 1
set url "*wapka-file*"
set type wildcard
set action block
next
end
next
end
end
The *wapka-file* will block all the domain names that contain the name wapka-file irrespective of the content before and after the name.
