6 Network Iframe Whitelist

By default, Pressbooks prohibits the use of iframes from most third-party media sources in order to prevent malicious users from embedding harmful content inside of a book. However, Pressbooks Network Managers can whitelist iframes from media sources that they trust. This chapter will cover:

How to Whitelist an Iframe Source

Until a media source is whitelisted, no user with permissions lower than Network Manager can embed that content into their Pressbooks books using the iframe embed code. However, Network Managers can whitelist an iframe source at any time from their Network Admin Dashboard. Follow these steps:

  1. Navigate to the Pressbooks Network Admin Dashboard
  2. From the left sidebar menu, select Settings > Sharing & Privacy
    Navigate to the Sharing & Privacy page
  3. Paste in the domain or path that you intend to whitelist into the Iframe Whitelist form
    Iframe Whitelist page
  4. Click Save Changes 

Afterward, iframes that match the added domain or path can be added to a book by any user on the network. Please note that in order for the whitelist form to work you should only enter one domain or path per line. Also note that media cloned from another network may include iframes not whitelisted on your network.

NOTE: A whitelisted domain or path must match the iframe URL exactly in order for the iframe to properly embed and display.

The Pressbooks Global Whitelist

Some media sources have been vetted and added to our global Pressbooks whitelist. These are media sources we’ve deemed to be safe. Iframes from globally whitelisted sources can be embedded on any Pressbooks network by any user.

What Media Should be Whitelisted

Iframes can pose a potential risk to readers on your network when they have not been properly vetted. Iframes can be used to embed malicious content into a book, which can transmit viruses to readers.

We simply caution network managers to only whitelist trusted media sources.

More on Embedded Media

You can safely embed all sorts of media in Pressbooks not mentioned in this chapter. Pressbooks is compatible with any media that supports oEmbed. For more on embedded media and oEmbed content, check out the Embedded Media & Interactive Content chapter in our user guide.


Icon for the Creative Commons Attribution 4.0 International License

The Pressbooks Network Manager's Guide by Pressbooks is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book