<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Response Page in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339481#M85244</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see that IP Address is a known variable in the URL filtering response page, if you want to try or just want the HTML file layout, download the current block page and edit it, then re-upload it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Device-&amp;gt;Response pages-&amp;gt;click on 'URL Filtering and Category Match page'&lt;/P&gt;&lt;P&gt;2. Select predefined then 'export'&lt;/P&gt;&lt;P&gt;3. open text file with editor then import back.&lt;/P&gt;&lt;P&gt;4. Imported file will be called 'shared' and will be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look here for more info and the&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-web-interface-help/device/device-response-pages" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-web-interface-help/device/device-response-pages&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-admin/url-filtering/customize-the-url-filtering-response-pages.html" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-admin/url-filtering/customize-the-url-filtering-response-pages.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jul 2020 14:23:16 GMT</pubDate>
    <dc:creator>ShaiW</dc:creator>
    <dc:date>2020-07-19T14:23:16Z</dc:date>
    <item>
      <title>Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/338926#M85176</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone can help. I need a custom response page for URL Filtering. I know I need to use Javascript but that is not my forte so hoping can provide the inform for me. I need to produce two distinct page responses depending on the IP address the user comes from ie:&lt;/P&gt;&lt;P&gt;If they come from address range 10.0.0.0/8 a URL response page produces "Page Blocked for Security Reasons"&lt;/P&gt;&lt;P&gt;If they come from any other address range a URL response page produces "Page Blocked because we have the power to do so".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand it is a text file I need to upload, it's just the page construct I'm struggling with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:57:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/338926#M85176</guid>
      <dc:creator>a.jones</dc:creator>
      <dc:date>2020-07-16T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339481#M85244</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see that IP Address is a known variable in the URL filtering response page, if you want to try or just want the HTML file layout, download the current block page and edit it, then re-upload it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Device-&amp;gt;Response pages-&amp;gt;click on 'URL Filtering and Category Match page'&lt;/P&gt;&lt;P&gt;2. Select predefined then 'export'&lt;/P&gt;&lt;P&gt;3. open text file with editor then import back.&lt;/P&gt;&lt;P&gt;4. Imported file will be called 'shared' and will be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look here for more info and the&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-web-interface-help/device/device-response-pages" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-web-interface-help/device/device-response-pages&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-admin/url-filtering/customize-the-url-filtering-response-pages.html" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-admin/url-filtering/customize-the-url-filtering-response-pages.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 14:23:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339481#M85244</guid>
      <dc:creator>ShaiW</dc:creator>
      <dc:date>2020-07-19T14:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339499#M85245</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have user-id configured on that firewall? If not then the variable for the username will contain the IP address which you can then use in a javascript that will display the message like you need it.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 19:49:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339499#M85245</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2020-07-19T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339547#M85261</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies I may need to add a bit more detail. The configuration contains multiple paths for different partners for a large wireless network. Each Partner has their own SSID and are assigned a specific subnet. Many share the same Response Page for their web traffic but we have a couple that want to have a different response page carrying their own Partner name. Whilst I cannot add multiple response pages and refer a partner to a specific response page I understand that using javascript I can assign a specific response based on the IP source of the user hence the original question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 07:51:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339547#M85261</guid>
      <dc:creator>a.jones</dc:creator>
      <dc:date>2020-07-20T07:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339550#M85262</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt; what PAN-OS verison do you have installed?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:19:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339550#M85262</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2020-07-20T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339551#M85263</link>
      <description>&lt;P&gt;About to upgrade to 8.1.15-h3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are going to 9 or 9.1 in late Sept/Early Oct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:22:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339551#M85263</guid>
      <dc:creator>a.jones</dc:creator>
      <dc:date>2020-07-20T08:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339553#M85265</link>
      <description>&lt;P&gt;hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have user-id configured or not? and are the subnets all /24 subnets?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:41:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339553#M85265</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2020-07-20T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339557#M85267</link>
      <description>&lt;P&gt;so in case you are not using user-id and you have /24 subnets you can use the following response page:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt;
&amp;lt;html&amp;gt;
	&amp;lt;head&amp;gt;
		&amp;lt;title&amp;gt;Web Page Blocked&amp;lt;/title&amp;gt;
		&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;
		&amp;lt;META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"&amp;gt;
		&amp;lt;meta name="viewport" content="initial-scale=1.0"&amp;gt;
		&amp;lt;style&amp;gt;
		  #content {
			border:3px solid#aaa;
			background-color:#fff;
			margin:1.5em;
			padding:1.5em;
			font-family:Tahoma,Helvetica,Arial,sans-serif;
			font-size:1em;
		  }
		  h1 {
			font-size:1.3em;
			font-weight:bold;
			color:#196390;
		  }
		  b {
			font-weight:normal;
			color:#196390;
		  }
		&amp;lt;/style&amp;gt;
		&amp;lt;script type="text/javascript"&amp;gt;
			function onload()
			{
				var ip = "&amp;lt;user/&amp;gt;";
				var octets = ip.split(".");
				var subnet = octets[0] + "." + octets[1] + "." + octets[2];
				var title = document.getElementById("title");
				var infotext = document.getElementById("infotext");
				switch (subnet) {
					case "10.0.0":
						title.innerHTML = "Title 1";
						infotext.innerHTML = "Infotext 1";
						break;
					case "10.0.1":
						title.innerHTML = "Title 2";
						infotext.innerHTML = "Infotext 2";
						break;
					case "10.0.2":
						title.innerHTML = "Title 3";
						infotext.innerHTML = "Infotext 3";
						break;
				}
			}
		&amp;lt;/script&amp;gt;
	&amp;lt;/head&amp;gt;
	&amp;lt;body bgcolor="#e7e8e9" onload="onload()"&amp;gt;
		&amp;lt;div id="content"&amp;gt;
			&amp;lt;h1 id="title"&amp;gt;Web Page Blocked&amp;lt;/h1&amp;gt;
			&amp;lt;p id="infotext"&amp;gt;Access to the web page you were trying to visit has been blocked in accordance with company policy. Please contact your system administrator if you believe this is in error.&amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;User/IP:&amp;lt;/b&amp;gt; &amp;lt;user/&amp;gt; &amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;URL:&amp;lt;/b&amp;gt; &amp;lt;url/&amp;gt; &amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Category:&amp;lt;/b&amp;gt; &amp;lt;category/&amp;gt; &amp;lt;/p&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;The only thing you need to change is the statements in the switch statement according to your subnets and the title and text you want to display to the user.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 09:19:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/339557#M85267</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2020-07-20T09:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Response Page</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/345104#M86291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for no response. I had been in and out&amp;nbsp; with suspected Covid&amp;nbsp; symptoms for a few weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this and whether I am doing something wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the following IP subnets with the following response:&lt;/P&gt;&lt;P&gt;172.18.24.0/23 and 172.18.26.0/23 responde with&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Access to the web page you were trying to visit has been blocked in accordance with NNC filtering policy. Please contact the Complaints and Compliments team at NNC for more information or if you feel that the site you were attempting to view was inappropriately blocked.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All other ips responded with:&lt;/P&gt;&lt;P&gt;“Access to the web page you were trying to visit has been blocked in accordance with Corp Partnering filtering policy. Please go to the Corp Partnering webpage for more information or if you feel that the site you were attempting to view was inappropriately blocked.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a multi vsys Palo Alto and this particular vsys is the Public Wifi vsys. All Partners wifi traverses this vsys so there is no Userid but 2 partners want 2 specific subnets with a different response hence my issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards and thanks as always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 16:14:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-response-page/m-p/345104#M86291</guid>
      <dc:creator>a.jones</dc:creator>
      <dc:date>2020-08-23T16:14:45Z</dc:date>
    </item>
  </channel>
</rss>

