• Resolved ioperator

    (@ioperator)


    Dear Community and Support,

    I tried to block an iFrame via the Integration settings –> i added the URLs I wanted to block and saved it. But still the iFrame is getting loaded including all scripts.

    On the website: I would like to block the iFrame (the 360°tour at the bottom of the page) but when I look in the Network analysis of the Browser I still can see that GoogleTagManager, StorageGoogleApi, etc. is getting loaded on page refresh and of course the iFrame still shows its content. –> all Hosts listed in the Network analysis are loaded via this iFrame (expect the ones with the main URL of course). So there are quite some scripts and Images loaded via this iFrame.

    One reaction I could provoke was that Google Tag manager was loaded all over again in a loop and therefore filled up the Network analysis window in the Browser Dev tools . But I cannot really reproduce that.

    [Image bellow: I removed the Script URLs from Google Tag Manager and GoogleStorageAPI because I guess they are going to be blocked via the iFrame URL:https://optiksutter.360ty.cloud/… –> when it works correctly]

    THX a lot for your time and effort to help me,

    LG

    • This topic was modified 2 years, 2 months ago by ioperator.
    • This topic was modified 2 years, 2 months ago by ioperator.
    • This topic was modified 2 years, 2 months ago by ioperator.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @ioperator,

    Your settings are correct, I have the same here, so we have to look at the difference.
    https://real-ratel-jife.instawp.xyz/360-2/

    Could you post the full iFrame HTML here? Maybe it’s the lazy-loading. The first things to try;

    Try to save with a save button on another block, this will save on page reload, it might be an ajax save issue.

    Otherwise, try disabling optimisations/caching plugins, maybe it’s the lazy loading for example.

    Let me know! regards Aert

    Thread Starter ioperator

    (@ioperator)

    <iframe src="https://optiksutter.360ty.cloud/?Pano=node4&PanoFovTarget=70.0&PanoTiltTarget=0&PanoPanTarget=178.3"
        loading="lazy" style="border:none;width:100%;height:70vh">
    </iframe>

    I just added the loading tag =lazy” today while trying to block the iFrame during pageload. –> I will remove it for now until the problem is resolved. So the Code from now on is

    <iframe src="https://optiksutter.360ty.cloud/?Pano=node4&PanoFovTarget=70.0&PanoTiltTarget=0&PanoPanTarget=178.3"
        style="border:none;width:100%;height:70vh">
    </iframe>

    I deactivated all the Caching and Optimization pluigns (WpRocket and Autoptimize) + deactivated EWW image optimizer. The problem unfortunatly still is present.

    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    Thread Starter ioperator

    (@ioperator)

    is it necessary to give the iFrame a class like you did in your example

    I just have a simple iFrame with the src and a little styleing

    Also this Div Wrapper is missing in my code when i inspect the html –> data-placeholder_class_index=”1″

    is this structure necessarry? or is this added by the Plugin?

    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    • This reply was modified 2 years, 2 months ago by ioperator.
    Thread Starter ioperator

    (@ioperator)

    Do i need to add a PHP filter before this can work?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @ioperator,

    You do not need to apply a filter to achieve this. I’ve tried your iFrame code both with and without the “lazy” parameter, added optiksutter.360ty.cloud as the URL to block in the Script Center and ticked the “blocked content is an iFrame” checkbox and it is immediately being blocked on my end.

    I’d be curious to know the difference with your set-up, as we’ve now created two separate testing sites with the latest Complianz version where this works as intended.

    Perhaps you could send us a message on support(at)complianz.io, and attach an Export of your Complianz settings (Complianz > Settings > Data > Export)?

    That would allow us to test with the same settings to see if the issue arises on our end as well.

    Kind regards, Jarno

    Thread Starter ioperator

    (@ioperator)

    I found out what is creating the problems –> Crocoblock / JetMenu / MegaMenu / Jet-Video-Widget –> I had an embedded Youtube video in one of the Mega Menu Dropdowns. When I remove the Jet-Video-Widget from my MegaMenu the iFrame is blocked succesfully. –> It is also beeing blocked when I use the option “LightBox” in the Jet-Video-Widget which opens the video in a lightbox after mouse-click.

    This feels quite good to finally found the culprit. You played a big role in this because you gave me the confidence that it is working in an Elementor envrionment + the actual iFrame Code –> therefore I looked at compatibility of Plugins –> didn′t thought an embeded YT video causes such problems but I guess that the Jet-Mega-Menu Caching (Content and CSS) could play a role in this. But that is outside of my scope…

    –> is it possible to choose a custom placeholder image?

    THX you are amazing. Great Support.

    • This reply was modified 2 years, 1 month ago by ioperator.
    • This reply was modified 2 years, 1 month ago by ioperator.
    • This reply was modified 2 years, 1 month ago by ioperator.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @ioperator,

    Glad to hear you’ve already managed to identify the cause of the issue, thank you for sharing the solution as well.

    Please find instructions to override the placeholders in this article, under Adding your own placeholder with (s)FTP:

    https://complianz.io/changing-the-default-social-placeholders/

    Kind regards, Jarno

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘iFrame wont get blocked’ is closed to new replies.