Redirect to a different domain based on URL Filtering

Redirect to a different domain based on URL Filtering

67468
Created On 10/10/19 03:15 AM - Last Modified 10/01/25 15:31 PM


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


Any PAN-OS



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>

   

2. Import the response page under Device>Response Pages  “URL Filtering Continue and override Page” section

3. Generate a Certificate with CN and IP (Certificate Attribute) to be the ingress IP of the firewall and assign it to a TLS profile

4. Max version supported for URL admin Override is TLSv1.2

5. Configure URL Admin override to redirect to the ingress interface

6. Enable Response Page on the Interface and assign it to the ingress interface

 

7. Create a Custom URL category and add the URL list for site https://edition.cnn.com

8. Configure the URL filtering profile to block/override the pre-defined category “news” and set the custom category “redirecturl” to either allow or alert (alert will generate URL filtering logs).




9. Assign the URL filtering to Policy






Result


User-added image
 



Actions
  • Print
  • Copy Link

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

Choose Language