Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    custom-message (Security Web Filtering)

    Syntax

    custom-message {
    name message-name;
    type redirect-url | user-message;
    content redirect-url by user| user-message by user;
    }

    Hierarchy Level

    [edit security utm feature-profile web-filtering juniper-enhanced profile profile-name category]

    Release Information

    Statement introduced in Junos OS Release 15.1X49-D110.

    Description

    The custom-message configuration option is used to notify the users when the URL is blocked or quarantined for each EWF category. You can customize the message with options such as, user message or redirect URL.

    • user-message: User messages indicate that website access has been blocked by an organization's access policy.

    • redirect-url: Redirect URLs redirect a blocked or quarantined URL to a user-defined URL.

    You can configure a separate custom message or redirect URL for each EWF category. If the action configured for the category is block, then the device logs the block action and sends a redirect response to HTTP client.

    You can also define a redirect URL server so that instead of the device sending a block page with plain text html, the device will send an HTTP 302 redirect to this redirect server with some special variables embedded in the HTTP redirect location field. For example, if you want to avoid access some malicious site, you can redirect to any other URL.

    Note: UTM supports maximum 500 custom message objects.

    Options

    Name Specify the name of the custom message; maximum length is 59 bytes.
    Type Specify the type of the custom message; can be a user-message or a redirect URL.
    Content Specify the content of the custom message based on the type of message. Maximum length of the content is 1024 bytes.

    Required Privilege Level

    security—To view this statement in the configuration.

    security-control—To add this statement to the configuration.

    Modified: 2017-11-03