ProxySG & Advanced Secure Gateway

 View Only
  • 1.  Block Twitter except our twitter company's page

    Posted Nov 25, 2021 02:11 AM
    Hi,
    We have blocked all social media category including twitter, but we want to allow our company's twitter page as we are showing it on our internal portal.
    can anyone share the steps. I tried using VPM but it did not work. Below is our company's twitter page:

    https://twitter.com/saudimoh?lang=en


    Regards,
    Sohail


  • 2.  RE: Block Twitter except our twitter company's page

    Posted Nov 25, 2021 02:41 AM
    Dear Sohail,

    Kindly try the below CPL. Unfortunately, I don't have a lab setup to test it.

    ;==================Twitter Redirection to Saudi MOH Page====================
    define condition TWR_Support_URLs
    url.domain=twimg.com
    url.domain=twitter.com http.method=CONNECT
    end

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

    <proxy> condition=TWR_Support_URLs
    ALLOW

    define action TWR_Redirect
    redirect(307, ".", "https://twitter.com/saudimoh?lang=en")
    end

    <proxy> url.domain=twitter.com
    url.path.substring="saudimoh" ALLOW
    url.scheme=https action.TWR_Redirect(yes) ALLOW
    ;=====================================================================

    Thank you.

    Best Regards,
    Priyesh MP


  • 3.  RE: Block Twitter except our twitter company's page

    Posted Mar 20, 2022 08:51 AM
    Hello Priyesh,

    This does not work. I have blocked the social media in VPM category and only need to allow "https://twitter.com/SaudiMOH".