Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

webfilter content

Introduction.

config webfilter content
    edit {id}
    # Configure Web filter banned word table.
        set id {integer}   ID. range[0-4294967295]
        set name {string}   Name of table. size[35]
        set comment {string}   Optional comments. size[255]
        config entries
            edit {name}
            # Configure banned word entries.
                set name {string}   Banned word. size[127]
                set pattern-type {wildcard | regexp}   Banned word pattern type: wildcard pattern or Perl regular expression.
                        wildcard  Wildcard pattern.
                        regexp    Perl regular expression.
                set status {enable | disable}   Enable/disable banned word.
                set lang {option}   Language of banned word.
                        western   Western.
                        simch     Simplified Chinese.
                        trach     Traditional Chinese.
                        japanese  Japanese.
                        korean    Korean.
                        french    French.
                        thai      Thai.
                        spanish   Spanish.
                        cyrillic  Cyrillic.
                set score {integer}   Score, to be applied every time the word appears on a web page (0 - 4294967295, default = 10). range[0-4294967295]
                set action {block | exempt}   Block or exempt word when a match is found.
                        block   Block matches.
                        exempt  Exempt matches.
            next
    next
end

webfilter content

Introduction.

config webfilter content
    edit {id}
    # Configure Web filter banned word table.
        set id {integer}   ID. range[0-4294967295]
        set name {string}   Name of table. size[35]
        set comment {string}   Optional comments. size[255]
        config entries
            edit {name}
            # Configure banned word entries.
                set name {string}   Banned word. size[127]
                set pattern-type {wildcard | regexp}   Banned word pattern type: wildcard pattern or Perl regular expression.
                        wildcard  Wildcard pattern.
                        regexp    Perl regular expression.
                set status {enable | disable}   Enable/disable banned word.
                set lang {option}   Language of banned word.
                        western   Western.
                        simch     Simplified Chinese.
                        trach     Traditional Chinese.
                        japanese  Japanese.
                        korean    Korean.
                        french    French.
                        thai      Thai.
                        spanish   Spanish.
                        cyrillic  Cyrillic.
                set score {integer}   Score, to be applied every time the word appears on a web page (0 - 4294967295, default = 10). range[0-4294967295]
                set action {block | exempt}   Block or exempt word when a match is found.
                        block   Block matches.
                        exempt  Exempt matches.
            next
    next
end