Customizing the auto-redirect block page

Customize the quota redirect block page to show an Isolate button that links to the Forcepoint RBI redirect URL.

The quota redirect block page is quotaFrame.html. If you have an appliance-based installation, then Curl is suggested to manage the block page through API requests.
Note: You must have the latest hotfixes installed, if you are on Forcepoint Web Security v8.5.4.

Steps

  1. Create a backup copy of the quotaFrame.html block page. If the Filtering Service resides on a Windows or Linux server, go to the default block page directory. For English, this directory is Websense/Web Security/BlockPages/en/Default .
  2. For appliance-based installations, get the quotaFrame.html page. In the terminal, type:
    curl -k -u admin:{PASSWORD} -X GET https://Cinterface/wse/customblockpage/file/default/en/quotaFrame.html > quotaFrame.html 

    where {PASSWORD} is the password for the admin account.

  3. Open quotaFrame.html and change the Forcepoint RBI URL to the assigned RBI redirect URL (https://<mycompany>.rbi.forcepoint.net/loader in the code sample below) and add your Tenant ID (<my_tenant_id> in the code sample below).
    <td>
        <form action="https://<mycompany>.rbi.forcepoint.net/loader" method="get" target="_top" name="QuotaForm">
            <input type="hidden" name="SD" id="SD">
                <script type="text/javascript">
              document.getElementById('SD').value=Base64.encode('TenantID=<my_tenant_id>'+'&url=
    '+'$*WS_RAWURL*$'+'&X-Authenticated-User='+'$*WS_USERNAME*$') ;
                </script>
            <input type="submit" value="Isolate" name="" class="ws_btn">
        </form>
        <script type="text/javascript">
            document.QuotaForm.submit(); 
        </script>
    </td>
  4. Save the updated file.
  5. For appliance-based installations, upload the modified quotaFrame.html page. In the terminal, type:
    curl -k -u admin:{PASSWORD} -X PUT -F file=@continueFrame.html https:// Cinterface /wse/customblockpage/file/en"

    where {PASSWORD} is the password for the admin account.