How to allow only specific Twitter page
search cancel

How to allow only specific Twitter page


Article ID: 228210


Updated On:


ProxySG Software - SGOS


How to allow only specific twitter Page (i.e. and block everything else on twitter?

If user enter it should automatically redirect to specific twitter page (i.e.

Environment defaults to HTTPS. As a result, for the solution to work, customer environment needs to meet the prerequisite:

1. SSL Intercept is enabled to intercept traffic.

2. Explicit Deployment: Detect Protocol is enabled to hand off the traffic to SSL Proxy


The ProxySG can be configured to allow only single twitter page (i.e. and block everything else and automatically redirect user to specific twitter page(i.e. when is accessed. Following is the CPL code for the same.

; Redirection to Broadcom Twitter Page========================

define condition TWR_Redirect_URLs url.path.exact="/"

define action TWR_Redirect
redirect(307, ".", "")

<proxy> http.method=POST request.header.Referer.url.suffix="" ALLOW http.method=GET request.header.Referer.url.suffix="" ALLOW url.path.substring="Broadcom" ALLOW url.path="/i/api" request.header.Referer.url.suffix="" ALLOW url.path="/i/api" request.header.Referer.url.suffix="Broadcom" ALLOW
url.scheme=https condition=TWR_Redirect_URLs action.TWR_Redirect(yes) ALLOW ALLOW ALLOW deny

<proxy> http.method=CONNECT ALLOW


Note: Above mentioned policy can be created and placed into the local policy file. For information on how to install the CPL policy into the local policy file, please see this article for information on how to install policy into the local policy file.

 Disclaimer :  This CPL is provided on an "as-is" basis. Broadcom has no control of, and is not responsible for changes done (or not) by twitter.