Embedded website no loading

Discussion in 'C-Bus Automation Controllers' started by kojobomb, Jun 18, 2024.

  1. kojobomb

    kojobomb

    Joined:
    May 27, 2019
    Messages:
    76
    Likes Received:
    6
    Location:
    Possum Brush
    I am attempting to embed a DSE Webnet webpage into a visualization frame (https://www.dsewebnet.com) and it wont load, stating that,
    Firefox cant open the page
    www.dsewebnet.com will not allow firefox to display the page if another site has embedded it.

    is there any work around???
    it is fairly vital info to have direct link to via the SHAC rather than bouncing in and out of the controller
     
    kojobomb, Jun 18, 2024
    #1
  2. kojobomb

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    242
    Likes Received:
    35
    Location:
    Melbourne
    That gets displayed when the source page is using something like X-Frame-Options set to 'sameorigin' to actively block being embedded in an i-frame. It could only be defeated by changing the source web site.

    This kind of blocking is usually employed to stop a form of attack known as 'clickjacking', and is a good thing from a security standpoint.

    Can you write a Lua script to periodically load the web page into a variable, then parse the HTML to extract the information you need? (Using something like https://github.com/msva/lua-htmlparser.) That would work with simple web sites, but you'll struggle if client-side JS is employed.

    It wouldn't be as pretty, I'm betting, but if it is just the information that you need then being pretty is optional.
     
    ssaunders, Jun 25, 2024
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.