Custom Response Pages

by ‎03-13-2017 04:54 AM - edited ‎05-11-2017 09:04 AM (11,117 Views)

Ever wanted to have a more dynamic or explanatory response page? The default response pages are pretty good, but sometimes you want to add that little bit extra.
So how do you go about spicing up these response pages?
Community member @rufusleonard was on the right track using custom response pages !
You can provide a custom HTML message that is downloaded and displayed.  Each virtual system can have its own custom response pages.  There are different types of custom response pages and all of them can be found under Device > Response Pages as illustrated below:
2017-03-13_11-58-28.jpgResponse Pages
Block pages are only relevant to user browsers. Application block pages only appear when the application is browser-based.
As rufusleonard already pointed out in his post, the system already provides variables to be used within block pages for substitution at the time of the block event. Some variables, like <user/>, can be used with all block pages. Others, like <pan_form/>, can only be used with certain Block Page types. Here's a list of variables you can use:
<user/>  Username (if available) or IP address of the user
    • Requested URL
    • Destination IP address for SSL Decryption
<category/>  URL filtering category of the blocked request
<appname/>  Application type of the blocked request

applicable HTML code for page type function - differs depending on the custom block page is used.

URL FIltering Continue and Override Page returns a continue button.

Captive Portal Comfort Page returns a user login.

<fname/>  filename.


 Want to add code that triggers the firewall to display different messages ?  Check out the link below for an example :
You can even modify response pages from XML-AP :
As you can see, there are plenty of options to be creative!
Don't settle for default and start creating your custom response pages today!

by Jmarx1
on ‎12-08-2017 03:48 PM

When will the variable <url/> work in all response pages?  I'm looking at you File Block Page!

by jvalentine
on ‎01-24-2018 05:38 PM

The first link to the PAN-OS 8.0 documentation is broken, 404.  

Ask Questions Get Answers Join the Live Community