0

I have a iFrame on my website. The problem is, that if you press the iFrame, sometimes it loads a advertising page instead of the URL it should show.

Is there a possibility to disable all external links (so that you can just go to the root URL's - http://mywebsite/...) and allow just some external links (those the iFrame should link to)

Or if the blocking doesn't work is there a possibility to show the advertisement in a new browser site?

gre_gor
  • 6,669
  • 9
  • 47
  • 52
Marius
  • 31
  • 5
  • 2
    Can you add some example code so it's easier to understand what you are trying to do? – Uberswe Apr 06 '17 at 15:48
  • It seems like the iframe is producing "popups" so http://stackoverflow.com/questions/4461282/how-to-block-pop-up-coming-from-iframe may be related – apokryfos Apr 06 '17 at 15:57
  • Do you think, that a framefilter would stop, that the iFrame loads ads by its own? The iFrame is like this: – Marius Apr 06 '17 at 21:24

1 Answers1

0

Since the iframe loads the website as it is, no, there is no way to block specific websites that are loaded FROM the website itself. You can't control what the website you're loading loads itself.

Condorcho
  • 503
  • 4
  • 12