URL Filtering Response Page Objects

Use response page variables and references to customize the block pages presented to end users when content is blocked.
Where can I use this?
What do I need?
  • Prisma Access
  • PAN-OS
  • Advanced URL Filtering license
    For Prisma Access, this is usually included with your Prisma Access license.
You can customize the content displayed by URL filtering response pages using response page variables and references. Response page variables display different information about the URL request. For example, the firewall replaces the
<category/>
variable with the URL categories that a requested URL belongs to. Response page references link to external images, sounds, or style sheets.

Response Page Variables

The following table lists the available response page variables and their purpose. The firewall replaces the variables you include in custom response pages with the information indicated by the variable name at the time of a block event.
Variable
Usage
<user/>
The firewall replaces the variable with the username (if available via User-ID) or IP address of the user when displaying the response page.
<url/>
The firewall replaces the variable with the requested URL when displaying the response page.
<category/>
The firewall replaces the variable with the URL filtering category of the blocked request.
<pan_form/>
HTML code for displaying the
Continue
button on the URL Filtering Continue and Override page.
You can also add code that triggers the firewall to display different messages depending on what URL category the user is attempting to access. For example, the following code snippet from a response page specifies to display Message 1 if the URL category is games, Message 2 if the category is travel, or Message 3 if the category is kids:
var cat = "<category/>"; switch(cat) { case 'games': document.getElementById("warningText").innerHTML = "Message 1"; break; case 'travel': document.getElementById("warningText").innerHTML = "Message 2"; break; case 'kids': document.getElementById("warningText").innerHTML = "Message 3"; break; }

Response Page References

Only a single HTML page can be loaded into each virtual system for each type of block page. However, other resources such as images, sounds, and cascading style sheets (CSS files) can be loaded from other servers at the time the response page is displayed in the browser. All references must include a fully qualified URL.
Reference Type
Example HTML Code
Image
<img src="http://virginiadot.org/images/Stop-Sign-gif.gif">
Sound
<embed src="http://simplythebest.net/sounds/WAV/WAV_files/ movie_WAV_files/ do_not_go.wav" volume="100" hidden="true" autostart="true">
Style Sheet
<link href="http://example.com/style.css" rel="stylesheet" type="text/css" />
Hyperlink
<a href="http://en.wikipedia.org/wiki/Acceptable_use_policy">View Corporate Policy</a>

Recommended For You