Templates

Templates

Overview

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

Access SafeSquid interface

Go to configure page.

clicking on configure in safesquid interface  
clicking on custom settings in the sidebar

Go to Templates

Manage Templates

showing Manage Templates section in templates 

Enabled

Enable or Disable this entry
TRUE: Enable this entry.
FALSE: Disable this entry.

Comment

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.


    • Related Articles

    • Image analyzer

      Overview Use this section to prevent the users viewing pornographic image content. This section allows you to block inappropriate images by analysing the graphical content of an image, in real time. The default template replaces the blocked image ...
    • Text analyzer

      Overview Text Analyzer enables you to detect and restrict the access to websites which may contain inappropriate or pornographic content based on keyword scoring system. Text analyzer is particularly useful in detecting unclassified websites that ...
    • Speed Limits

      Overview The SafeSquid Limits feature allows you to define User Limits, for accessing content from the Internet. You can create rules to limit the maximum size of individual files that are fetched from the Internet. These rules can also pre-set the ...