Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nu custom message for malware blocked pages?

I am customizing the blocked pages that users get to see if policies are not met. This went pretty well, up until the point where I tested the download of a fake virus file, and. 

I customized the Message for block actions in Web -> User notifications -> Message for block action, and also the warning messages can be customized over there, but there seems to be no customization option for the pages that block malware downloads. 

Is there a way to customize these malware pages?



This thread was automatically locked due to age.
Parents
  • I think you are right.
    There is no customization-option for malware.
    You may go to feature.sophos.com or contact your partner/sophos representative.

    PS: your page looks great. Would you share the code?
    How do you link the background-image?


    Dirk

    Systema Gesellschaft für angewandte Datentechnik mbH  // Sophos Platinum Partner
    Sophos Solution Partner since 2003
    If a post solves your question, click the 'Verify Answer' link at this post.

  • Hi Dirk,

    Thanks for your answer and your compliment. I will create a feature request as this seems very inconsistent and could be done a lot better in a single configuration page where all block pages at 1 location.

    I'm a web developer so I know a thing or two about frontend markup, but this is a very dirty try out so please don't judge the ugly code :D
    By the way, the image is just a css background image directly grabbed from unsplash. Again, not the best and most elegant solution, but you kn ow how these experiments go ;-)

    Here's the code I used:
    Enter this in Web -> User Notifications -> Message for block action -> Use custom block message

    <span class="block-url"><strong>Blocked url:</strong> <code>{url}</code></span><br>
    <div class="block-message"><p>The administrator of this network has restricted access to sites categorized as <span class="block-category">{category}</span>.</p><p>If you think this is incorrect, you may <a href="#" onclick="callReevaluationFunction()">suggest a different category</a>.<p></div>
    <style type="text/css">body{
    background-image: url(https://images.unsplash.com/photo-1491466424936-e304919aada7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2938&q=80)!important;
    background-size: cover;
    background-position: bottom;
    }
    div.logo,
    div.logoSophosFooter {
    visibility: hidden;
    }
    h1.red {
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    }
    .block-message p {
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    }
    .block-url {
    display: block;
    color: #fff;
    margin: 0 0 0px 0 !important;
    padding: 0 !important;
    }
    .block-url code {
    color: #fff;
    font-weight: bold;
    background: rgb(0 0 0 / 37%);
    padding: 3px 5px 6px 3px;
    }
    
    a, button {
    cursor: pointer !important;
    }
    .button {
    border: none;
    }
    .block-category {
    background: rgb(255 0 0 / 47%);
    padding: 3px 5px 6px 3px;
    }
    #content-holder {
    margin-top: 100px;
    }
    .dropdowns {
    display: none !important;
    }
    #sophosFooter,
    #headerimage {
    display: none !important;
    }
    h4 {
    margin: 0 0 30px 0;
    padding: 0;
    }
    </style>




Reply
  • Hi Dirk,

    Thanks for your answer and your compliment. I will create a feature request as this seems very inconsistent and could be done a lot better in a single configuration page where all block pages at 1 location.

    I'm a web developer so I know a thing or two about frontend markup, but this is a very dirty try out so please don't judge the ugly code :D
    By the way, the image is just a css background image directly grabbed from unsplash. Again, not the best and most elegant solution, but you kn ow how these experiments go ;-)

    Here's the code I used:
    Enter this in Web -> User Notifications -> Message for block action -> Use custom block message

    <span class="block-url"><strong>Blocked url:</strong> <code>{url}</code></span><br>
    <div class="block-message"><p>The administrator of this network has restricted access to sites categorized as <span class="block-category">{category}</span>.</p><p>If you think this is incorrect, you may <a href="#" onclick="callReevaluationFunction()">suggest a different category</a>.<p></div>
    <style type="text/css">body{
    background-image: url(https://images.unsplash.com/photo-1491466424936-e304919aada7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2938&q=80)!important;
    background-size: cover;
    background-position: bottom;
    }
    div.logo,
    div.logoSophosFooter {
    visibility: hidden;
    }
    h1.red {
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    }
    .block-message p {
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    }
    .block-url {
    display: block;
    color: #fff;
    margin: 0 0 0px 0 !important;
    padding: 0 !important;
    }
    .block-url code {
    color: #fff;
    font-weight: bold;
    background: rgb(0 0 0 / 37%);
    padding: 3px 5px 6px 3px;
    }
    
    a, button {
    cursor: pointer !important;
    }
    .button {
    border: none;
    }
    .block-category {
    background: rgb(255 0 0 / 47%);
    padding: 3px 5px 6px 3px;
    }
    #content-holder {
    margin-top: 100px;
    }
    .dropdowns {
    display: none !important;
    }
    #sophosFooter,
    #headerimage {
    display: none !important;
    }
    h4 {
    margin: 0 0 30px 0;
    padding: 0;
    }
    </style>




Children
No Data