# config webfilter profileIn this example, URLs that match the FortiGuard category 37 (social networking) will be blocked and other categories will be logged.
edit "<profile-name>"
...
# config web
...
end
# config antiphish
set status enable
set domain-controller "win2016"
set default-action block
set check-uri enable
set check-basic-auth enable
set max-body-len 65536
# config inspection-entries
edit "inspect-37"
set fortiguard-category 37
set action block
next
edit "inspect-others"
set fortiguard-category all
set action log
next
end
# config custom-patterns
edit "customer-name"
set category username
next
edit "customer-passwd"
set category password
next
end
end
...
set web-antiphishing-log enable
next
end
# config webfilter urlfilter3) Add the antiphishing table to the webfilter profile.
edit 1
set name "antiphish-table"
set antiphish enable
# config entries
edit 1
set url "www.example.com"
set type simple
set antiphish-action block
set status enable
set referrer-host ''
next
end
next
end
# config webfilter profile
edit "<profile-name>"
# config web
set urlfilter-table 4
set antiphish-table 1
end
...
next
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.