Redirect to a different domain based on URL Filtering

Redirect to a different domain based on URL Filtering

42300
Created On 10/10/19 03:15 AM - Last Modified 06/01/23 03:33 AM


Objective


Redirect to a different domain based on URL Filtering
 
  1. You wish to redirect specific website/domain to a different domain
Example: You wish to redirect URL category “news” to only https://edition.cnn.com
  • Expected behavior, if a customer access any news site, in this example https://abcnews.go.com it will be redirected to https://edition.cnn.com

User-added image


 


Environment


A firewall running 8.1 and 9.0

Procedure


 
  1. Configure response page (html) to redirect to edition.cnn.com
 
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://edition.cnn.com/">
</head>
</html>


Source: https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000CltqCAC

 
 
  1. Add the response page (in step1) in the “URL Filtering Continue and override Page”
  2. Generate a Certificate with CN and IP (Certificate Attribute) to be the ingress IP of the firewall and assign it to a TLS profile
User-added imageUser-added image

 
  1. Configure URL Admin override to redirect to ingress interface
User-added image
  1. Enable Response Page on the Interface and assign it to the ingress interface
User-added image
  1. Configure URL filtering profile to have category “news” to be override/block and configure the https://edition.cnn.com to be part of the Allow URL under “Overrides”


User-added imageUser-added image

 
  1. Assign the URL filtering to Policy


User-added image


Result


User-added image
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PMvgCAG&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail