Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

How do I Geo-redirect content entered in an i-Frame?

Our company has just changed up the front end of one of its web products, and it's broken my Geo-redirection

Previously, users hit https://www.product.com - and were redirected to either https://au.product.com or https://uk.product.com depending on their originating IP - and were presented with a login link for the product concerned.

This worked fine, and has done so for months.

However, a recent change demanded by marketing has led to the following situation

User hits http://www.product.com (yes, no https - yet. This will change when I get a spare minute)

User clicks "Login" link and gets a login window presented in an i-Frame - which needs to be geo-redirected to either https://au.product.com or https://uk.product.com

This isn't working - I've figured out it's most likely because the content from the i-Frame is hitting the F5 differently somehow, and not being caught by the iRule doing the redirection - but I don't know how to fix it.

Can anyone shed some light on how I might get this to work? Or at least tell me it's not possible, so I can tell the developers to go re-think their design to get rid fo the i-Frame?

For relevance - BigIP 1600, running LTM only, version 11.5.3 HF2

Thanks for any pointers.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Thanks for the input - I found the answer, and it boiled down to the way I had the geo-redirect iRule written.

Chalk this up to administrator is an idiot error.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

I haven't worked with iFrame but it looks to be some kind of HTML. I am assuming it requires HTTP and hence, it should work with F5's iRule. Were you able to utilize the developers tools in chrome or any similar tool to check the headers ? May be even a packet capture might help.

0
Comments on this Answer
Comment made 22-Jun-2016 by DaZZa 70
Yes, I was able to inspect the suspect element - however, it shed no light. I have resolved the issue - it actually had nothing to do with the iFrame, rather my own stupidity in writing iRules.
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

First off, iframes aren't great. There are much better options these days (JS/CSS based like Angular, jQuery).

Having said that, what is URL the iframe specifies?

0
Comments on this Answer
Comment made 22-Jun-2016 by DaZZa 70
I don' write the web code - I just have to make it work. :) I've found the answer to this - it boiled down to my own stupidity (and lack of proper understanding of the iRule syntax).
0