Change the size of the message frame

Depending on what information you want to provide in the block message, the default width of the block message and height of the top frame may not be appropriate.

To change these size parameters in the master.html file:

Steps

  1. Get a copy of the master.html file to edit:
    • On Windows and Linux servers, copy master.html from the Websense/ BlockPages/<lang_code>/Default directory to Websense/BlockPages/ <lang_code/Custom.
    • On appliances, use the following API command:

      curl -k -u admin:<password> -X GET https://<c_interface>/wse/customblockpage/file/default/<lang_code>/master.html

  2. Open the copy in the Custom directory with a text editor or HTML editor.
    Warning: Some HTML editors modify HTML code, which could corrupt the files and cause problems displaying the block messages. Make sure to use an editor that will not insert changes beyond those you intend to make.
  3. To change the width of the message frame, edit the following line:
    <div style="border: 1px solid #A6A6A6;width: 95%; max-width: 700px; ...>

    Change the value of the width and max-width parameters as required.

  4. Save and close the file.
  5. Do one of the following to apply your changes:
    • For Filtering Service instances on Windows and Linux servers, use the Status > Deployment page in the Web module of the Forcepoint Security Manager to restart Filtering Service.
    • For Filtering Service instances on appliances, first upload the file, then restart Filtering Service:

      curl -k -u admin:<password> -X PUT -F "file=@./ master.html" https://<c_interface>/wse/ customblockpage/file/en

      curl -k -u admin:<password> -X PUT https://<c_interface>/wse/admin/filter/stop

      curl -k -u admin:<password> -X PUT https://<c_interface>/wse/admin/filter/start

Next steps

Block page changes do not go into effect until Filtering Service has restarted.