Question
How do you redirect URLs using the Cisco Web Security Appliance?
Environment
The Cisco Web Security Appliance (WSA) running any AsyncOS version.
In addition to using the Cisco Web Security Appliance to monitor and block traffic to certain websites, you can also use it to redirect users to a different website. You can configure the appliance to redirect traffic originally destined for a URL or website to a location you specify by using custom URL categories. This allows you to redirect traffic on the appliance instead of the destination server redirecting it.
For HTTP Traffic
- Create a Custom URL Category (GUI > Web Security Manager > Custom URL Category) and include the URL that you wish to redirect.
- Include this new Custom URL Category in the relevant Access Policy (GUI > Web Security Manager > Access Policies > URL Categories).
- In the Custom URL Category .. section, select the relevant Custom URL category, select Include under the Setting column, and then select the Redirect option for the concerned custom URL category.
- Once the Redirect option has been selected, a text box will appear under the Custom URL Category name. In this text box, enter the URL that you wish the requests to be reidrected to.
For HTTPS Traffic
By default, the HTTPS URLs cannot be redirected like the HTTP URLs. In order to redirect HTTPS URLs, they must be decrypted first (GUI > Web Security Manager > Decryption Policy). Once the HTTPS URL has been decrypted, it will then be subjected to Access Polices. The HTTPS URL can then be redirected under the Access Policy.
- Create a Custom URL Category (GUI > Web Security Manager > Custom URL Category) and include the URL that you wish to redirect.
- Include this new Custom URL Category in the relevant Access Policy (GUI > Web Security Manager > Access Policies > URL Categories) and Decryption Policy (GUI > Web Security Manager > Decryption Policy > URL Categories).
- In the Decryption Policy select the Decrypt option for the included Custom URL Category.
- In the Access Policy select the Redirect option for the included Custom URL Category.
- Once the Redirect option has been selected, a text box will appear under the Custom URL Category name. In this text box, enter the URL that you wish the requests to be redirected to.