Customized templates can be useful:
When you would want the error messages to be displayed in a language other than English.
When you would want to display Company logo, Warnings, Custom messages, notifications.
Templates are used throughout SafeSquid as a replacement for pages which can't be displayed due to filtering, error, or other conditions.
SafeSquid has many default templates. You can replace the default templates with your customized templates.
A template may not necessarily be an html but can also be almost about anything like an audio file, flash file or an executable.
Enabling Template section on SafeSquid User Interface
Go to configure page.
Go to Templates
Manage Templates
Enabled
Enable or Disable this entry
TRUE: Enable this entry.
FALSE: Disable this entry.
For documentation, and future references, explain the relevance of this entry with your policies.
Profiles
Specify the Profiles applicable for this entry.
This entry will be applicable only if the connection has any one of the specified profiles.
Leave it Blank, to apply for all connections irrespective of any applied profile.
To avoid application to a connection that has a profile, use negated profile (! profile).
Name
Specify name of the template here, for identification, and this is used in other sections for reference purpose.
File
Specify filename of the template, here. You must mention the path(location) of the file here.
A template may not necessarily be in html pattern but can be almost about anything like an audio file, flash file or an executable one.
Mime Type
Specify MIME-type of the template, here.
While using an executable template, this is set, by having the external program send an HTTP response header.
Response code
The response code to be used when sending the template.
Type
Specify type of the template.
FILE: The contents of the file will be sent.
EXECUTABLE: The file is executed and whatever is its output on the STDOUT, is sent as the template.
Parsable
Choose here whether to substitute the variables present in the HTML codes used to display the template.
There are several variables that can be used in templates if the Parsable option is selected which will be replaced with information about the request currently being handled. These variables can be used to generate content in real time.
TRUE: Select Parsable to true if you want to parse the template.
FALSE: Select Parsable to false if you do not wat to parse the template.