Can proxy append text at the end of the URL on the browser ?
search cancel

Can proxy append text at the end of the URL on the browser ?

book

Article ID: 235627

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

When accessing an existing URL, I want to add text to show it in the browser address bar.

For example, if the browser address bar shows the existing "example.com", I want to add text to the end of the URL so that it looks like "example.com/(text)".

When the text I want to add is #redirect,
www.example.com => www.example.com/#redirect

 

Resolution

1. This can be done using CPL (Content Policy Language)  using request_redirect action

define action redirect_example
request_redirect( 302, "https://www.example.com/(.*)", "https://www.example.com#redirect/$(1)" )
end

<Proxy>
url=//www.example.com/ action.redirect_example(yes)

 

2. Please ensure that SSL interception is enabled for the website for CPL to take effect

Refer https://knowledge.broadcom.com/external/article?legacyId=TECH244873 on how to enable ssl interception