FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
hrahuman_FTNT
Article Id 197335
Description
This article describes how to Bulk addition/modification to Web Filter and DNS profile.

Solution
1)Find urlfilter-table number in the web-filter profile.
2) Add the static URL filter entries in the url-filter table.

For Example.

Take 'default' Web Filter profile and it has the urlfilter-table number 4.
# config webfilter profile
    edit "default"
# config web
    set urlfilter-table 4
end
end
Add the static URL entry using following commands.
# config webfilter urlfilter
    edit 4
        set name "Auto-webfilter-urlfilter_s70j6jcw9"
# config entries
    edit 1                   <----- Can repeat this entry for other domain, Use 0 (zero) automatic number.
        set url "static.com" <----- Domain name.
        set action allow     <----- Action can be exempt, block, allow (no log), monitor(with log).
    next
end
next
end
Same Applies for DNS filer but table name is 'domain-filter-table'.
# config dnsfilter profile
    edit "default"
        set comment "Default dns filtering."
# config domain-filter
    set domain-filter-table 1
end
end
# config dnsfilter domain-filter
    edit 1
        set name "default"
        set comment "Default dns filtering."
# config entries
    edit 1
        set domain "test.com"
        set action allow
    next
end
next
end

Contributors