• alegira

    (@alegira)


    Hi, after installing disable embeds iframes are still loading. As you say in FAQ section that wordpress caches frames, will they stop working after some time?

    And as a future request, I have a website that is a catalog of my other websites, so that it would be nice for me to have the possiblity to allow frames only from an specific url. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Yeah, so WordPress caches these embeds indefinitely. They will continue to work unless you manually delete the cache entries from the database or the sites your embedding stop working.

    White-listing only specific URLs is actually a good idea! You could probably do that using only two lines of code (in a plugin or your theme’s functions.php file):

    add_filter( 'embed_oembed_discover', '__return_false' );
    wp_oembed_add_provider( 'https://example.com/*', 'https://example.com/wp-json/oembed/1.0/embed' );
    Thread Starter alegira

    (@alegira)

    Hi, thanks for your explanation.
    I installed Oembed cache plugin and deteleted oembed cache of all my websites, but iframes would still load on my catalog website. Any idea why they are not being blocked?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘iframes still working after installation and allow fron url’ is closed to new replies.