Creating Custom Block Pages 6
Edit block page files (overview)
Custom Block Pages | Web Protection Solutions | v8.4.x | 31-July-2017
Before creating custom block pages, keep in mind that each Filtering Service instance
in your network will need its own copy of the block pages.
As a best practice, customize your files on a test server. Then, when they are finalized,
distribute them to the appropriate “Custom” folder on each server or appliance that
hosts a Filtering Service instance.
To get started:
1. If Filtering Service resides on a Windows or Linux server, navigate to the default
block page directory. For English:
Websense/Web Security/BlockPages/en/Default
2. Make a copy of the block pages.
■ If Filtering Service resides on a Windows or Linux server, copy the block
page files to the custom block page directory. For English:
Websense/Web Security/BlockPages/en/Custom
■ If Filtering Service resides on an appliance, use the API to download the files
you want to edit. See Working with block page files on appliances, page 8.
Next, select the files you want to edit and click Download File(s).
3. Open the first file you want to edit in a text editor or HTML editor.
4. Modify the text. The files contain comments that guide you in making changes.
Do not modify the tokens (enclosed by $* and *$ symbols), or the structure of the
HTML code. These enable Filtering Service to display specific information in the
block message.
For detailed instructions on making specific types of edits, see:
■ Change the size of the message frame, page 10
■ Change the block page logo, page 11
■ Block page content variables, page 15
Important
Do not modify the original block message files in the
BlockPages/<lang_code>/Default directory. Copy them
to the BlockPages/<lang_code>/Custom directory and
then modify the copies.
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.