Forum Discussion

Srikanth_Kalan1's avatar
Srikanth_Kalan1
Icon for Nimbostratus rankNimbostratus
May 29, 2015

URL Forwarding and Masking

Our current requirement is that if a user clicks on external link from our website - the URL should not be changed and the content should be loaded from an external link.

 

Following are the use cases to understand more about this

 

[1] User is logged in to our website https://example-test.com [2] User clicked on external link https://external-link-website.com [3] User should not see that URL is changed to but instead it should show as https://example-test.com and content should be loaded from https://external-link-website.com

 

Can you please provide us an iRule or suggestions to achieve this requirement for us?

 

Thanks Srikanth

 

  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    Technically yes you could do this with an irule sideband connection (or if your backend server has some method to load resources from other web servers and serve them based on the url it receives) and creative usage of the rewrite profile (which doesn't by itself require APM reference: https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-6-0/24.html). This would be a fairly complicated endeavor -- especially the sideband version -- as you'd basically be reverse engineering APM portal access. But sure, in theory, you could do it :)

     

  • Hi Josiah,

     

    I am sorry, we are actually not using APM product in our primary datacenter. It was my mistake that I tagged APM.

     

    Is there a way that we can achieve this through iRule or any other suggestions you have? We are currently at BigIP F5 LTM 11.3.0

     

    Thanks Srikanth

     

  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    Since this is tagged APM, you do not need an irule, you just need a portal access resource and a rewrite profile (in this case the default one is fine). All links will be rewritten and the user will always connect to the vip, not to the external site. However, the BIG-IP must have DNS and routes configured to load the content from the external site on behalf of the user.