Setting up publications to show up only on specific sites

Product: FlippingBook Publisher

This article applies to FlippingBook Publisher 2019.1 and higher. This feature is only available in Business edition.


When you upload something to the internet, then by default, it is accessible to everyone. For your publications that means that If someone knows the link, then they can open your publication. It is possible to make it more difficult to get access to your content by taking measures like:

However, should someone find out the direct link to the publication somehow, then they can share it with others anyway. Even if you have embedded it on a page which is only accessible to users who are logged in! So this way, unauthorized users can get access to your content. It is also possible for others to embed your publication into their own site.

This is where our feature ‘restricted domains’ comes into play. By using ‘restricted domains’, the publication will only work on sites that you specify: typically your own site(s) and perhaps those of specified partners.


How does the list with ‘restricted domains’ work exactly?

You can only restrict access to domains or subdomains, not to specific folders. I.e.

  • If you add the domain ‘yoursite.com’ then you can embed the publication in  www.yoursite.com/publications/yourpublication, and also in demo.yoursite.com/somedemo  (www.yoursite.com and demo.yoursite.com are both subdomains of the domain ‘yoursite.com’)
  • If you add the domain ‘www.yoursite.com’ then you can embed the publication in  www.yoursite.com/publications/yourpublication, but not in demo.yoursite.com/somedemo (demo.yoursite.com is not a subdomain of the domain ‘www.yoursite.com’
  • If you add www.yoursite.com/publication/ then you can embed the publication in www.yoursite.com/publications/yourpublication but also in and www.yoursite.com/somethingelse - the folder is ignored; we only look at the domain part.
  • Restricted domains apply to both direct hosting and embedding. So if you add the domain ‘www.yoursite.com’ to the list, and then upload the publication files to www.yoursite.com/publication and to www.anothersite.com/publication then the direct link to the publication on www.anothersite.com will not work.

Note!If you embed publications with 'restricted domains' then use the official FlippingBook embed code. If you use a standard iframe, then the publication will not show up.

 

How to use the ‘restrict domains’ feature?

There are different reasons to use domain restrictions:

  1. Prevent embedding by third parties. You may not mind that people share the direct link with others, but you want to prevent that third parties embed your publication in their site. This is useful if your publication is basically accessible to everyone, but you want to drive all traffic to your own site.
  2. You embed the publication in a page that is only accessible to authorized users. In this case, you want the publication to work ONLY on pages on your site where you have embedded it, but NOT when the direct link to the publication is used.
  3. You upload your publication to FlippingBook cloud, but you don’t want the direct link on cld.bz to work for end users.

 

Where to specify the list of restricted domains?

It is relatively straightforward to restrict embedding a publication to a specific list of domains, but how to do this exactly it depends on whether you use FlippingBook Cloud or upload to your own server.


Restrict domains when using FlippingBook Cloud

If you upload to FlippingBook Cloud, then you can specify the allowed domains during the upload process, but also change this after the publication has been upload. Even for several publications at once!


To specify restricted domains during upload:

  • Click on ‘Upload Publication’ in the menu bar in FlippingBook Publisher
  • Click on the button after ‘Access mode’
  • Select ‘Limited Access’
  • Click on the switch after ‘Restrict domains’
  • Type the domains where this publication can be shown (if you want to list several domains, then separate them with a COMMA)

Note: if you do not add cld.bz to the list of restricted domains, then the direct link to your publication will not work. People who try to open it will see this message:


To specify restricted domains for already uploaded publications:

  • Click on 'FlippingBook Cloud' in the menu bar in FlippingBook Publisher
  • Right click on your publication(s). You can keep Shift or Ctrl pressed to select multiple publications at once.
  • Select ‘Access mode’ from the pop-up menu
  • Click on the switch after ‘Restrict domains’
  • Type the domains where this publication can be shown (if you want to list several domains, then separate them with a COMMA)

Note!You can only change the Access Mode for publications created with version 2019.1 or higher. You will need to update older publications to this version first to be able to set restricted domains.


Restrict domains when using your own server

If you upload to your own server, then you have to specify the allowed domains during the upload process. Create your publication as usual, and select ‘Upload Publication’.

If you use our built-in FTP-client then

  • Select FTP/SFTP server
  • Type in your credentials and press Next
  • Click on the switch after ‘Restrict domains’
  • Type the domains where this publication can be shown (if you want to list several domains, then separate them with a COMMA)

If you use another FTP program or another way to upload the files then

  • Select ‘Local Folder’
  • Expand ‘Access Settings’
  • Click on the switch after ‘Restrict domains’
  • Type the domains where this publication can be shown (if you want to list several domains, then separate them with a COMMA)

 

Make a publication to work ONLY on embedded pages on your site

You can also use the ‘restrict domains’ feature to make your publications work only on your own site, even though they are physically hosted on FlippingBook Cloud or another server. This is a great way to protect publications if you have a restricted area on your site (where your users have to log in first). If the publication is embedded there, then your users will not have any other way to see your publication other than by logging in first.

It also serves a branding tool, because your publication will only be accessible on your own site.


If your publication is hosted on FlippingBook Cloud

Simply add your own domain to the restricted domains. You can then acquire the embed code by clicking on the ‘FlippingBook Cloud’ button in Publisher, right click your publication, and select ‘Share’. On the tab ‘<> Insert to Site’ you will see the embed code to use on your site. We advise you to disable the 'Share' option in the 'Controls' section in FlippingBook Publisher in this case. When users would click the share icon, they would get the link to FlippingBook cloud, which is now no longer accessible.


If your publication is hosted on your own site

This is a bit more tricky. If you just want to make sure that the publication is only accessible for authorized users, then the best solution is probably to simply upload it to the restricted area of your website too. If you really want to work it just in the embedded pages, then you need to do it as follows:

Suppose that your main site is www.yoursite.com.

  • Ask the administrator of your website to set up a subdomain (e.g. publications.yoursite.com)
  • Upload your publication to this subdomain, without any restrictions and with the share option enabled. E.g. to publications.yoursite.com/yourpublication
  • Open the URL publications.yoursite.com/yourpublication, click the Share icon and click on 'Insert to Site' to acquire the embed code
  • Insert the embed code to your page at www.yoursite.com/yourpage
  • In FlippingBook Publisher, now disable sharing, and then re-upload the publication to publications.yoursite.com, but during the upload set the ‘restrict domains’ to only ‘www.yoursite.com’

This workaround is needed because if you would upload the publication directly with a domain restriction, the direct link would not work any more and there is no way to get the embed code.


If your publication is hosted on a third party domain

In the (rare) situation that you upload your publication to another domain than your own domain/FlippingBook cloud, you can use the following way to make the publications work on your pages only:

Suppose that your site is www.yoursite.com but the publications are uploaded to www.yourhostingsite.com.

  • Upload your publication to www.yourhostingsite.com, without any restrictions and with the share option enabled. E.g. to www.yourhostingsite.com/yourpublication
  • Open the URL www.yourhostingsite.com/yourpublication, click the Share icon and click on 'Insert to Site' to acquire the embed code
  • Insert the embed code to your page at www.yoursite.com/yourpage
  • In FlippingBook Publisher, now disable sharing, and re-upload the publication to www.yourhostingsite.com, but now set the ‘restrict domains’ to only ‘www.yoursite.com’

This workaround is needed because if you would upload the publication directly with a domain restriction, the direct link would not work any more and there is no way to get the embed code.

Was this article helpful?
drift chat