Using whitelist to restrict browsing but allow embedded video

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Post Reply
Jojamoco
White ninja
White ninja
Posts: 5
Joined: 08 Mar 2019, 14:25
Distribution: Kiosk 4.8.0

Using whitelist to restrict browsing but allow embedded video

Post#1 by Jojamoco » 08 Mar 2019, 14:29

Hello,

I am trying to set up a simple Kiosk that allows users to browse a live website that heavily uses youtube embeds. However we don't want users leaving to youtube. If I use whitelist to prevent browsing elsewhere it blocks the embeds and if I don't people can click through to youtube.

Any help is welcome.

User avatar
fanthom
Site Admin
Site Admin
Posts: 5286
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Using whitelist to restrict browsing but allow embedded video

Post#2 by fanthom » 08 Mar 2019, 17:14

Hi Jojamoco,

Which browser are you using?
Can you post an URL to your website so i could test this on my kiosk?

BTW: i have deleted your other thread as it has very similar query.
Please add [Solved] to your thread title if the solution was found.

Jojamoco
White ninja
White ninja
Posts: 5
Joined: 08 Mar 2019, 14:25
Distribution: Kiosk 4.8.0

Using whitelist to restrict browsing but allow embedded video

Post#3 by Jojamoco » 12 Mar 2019, 11:42

Hello,

First off sorry for the double post I didn't see the message about posts being approved and made a new one thinking I had made a mistake somehow.

The website is https://www.cahfa.com/en-us/

I think I defaulted to using chrome but I am happy to use firefox if that works better/differently./ I was thinking of switching anyway because of the option to hide the navigation stuff.

Thanks

User avatar
Ed_P
Contributor
Contributor
Posts: 5509
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Using whitelist to restrict browsing but allow embedded video

Post#4 by Ed_P » 12 Mar 2019, 17:03

:good:
Ed

User avatar
fanthom
Site Admin
Site Admin
Posts: 5286
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Using whitelist to restrict browsing but allow embedded video

Post#5 by fanthom » 12 Mar 2019, 17:59

Hi Jojamoco,

This is what works for me (only first embedded video is whitelisted in sample below):

Code: Select all

whitelist=cahfa.com https://www.youtube.com/embed/aokMLRkrJ-I
You can find other video URLs by inspecting the html source code of your webpage.

Thanks
Please add [Solved] to your thread title if the solution was found.

Jojamoco
White ninja
White ninja
Posts: 5
Joined: 08 Mar 2019, 14:25
Distribution: Kiosk 4.8.0

Using whitelist to restrict browsing but allow embedded video

Post#6 by Jojamoco » 13 Mar 2019, 11:21

I will do that, but if there is a way to make the whitelist only check when a new page is called then I won't need to update everytime the website gets a new video.

For now though this will work. Thank you for all you time/work

User avatar
fanthom
Site Admin
Site Admin
Posts: 5286
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Using whitelist to restrict browsing but allow embedded video

Post#7 by fanthom » 13 Mar 2019, 11:25

For Firefox this should work to allow all embedded videos:

Code: Select all

whitelist=cahfa.com https://www.youtube.com/embed/
This trick may not work for Chrome (did not check).
Please add [Solved] to your thread title if the solution was found.

Jojamoco
White ninja
White ninja
Posts: 5
Joined: 08 Mar 2019, 14:25
Distribution: Kiosk 4.8.0

Using whitelist to restrict browsing but allow embedded video

Post#8 by Jojamoco » 13 Mar 2019, 11:59

Is it possible to edit the whitelist or do I do a fresh install?

User avatar
fanthom
Site Admin
Site Admin
Posts: 5286
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Using whitelist to restrict browsing but allow embedded video

Post#9 by fanthom » 13 Mar 2019, 12:15

Please add [Solved] to your thread title if the solution was found.

Post Reply