Forum Discussion
BillBraz
Jul 12, 2024Copper Contributor
Intune iOS Web Content Filter Problem
I'm trying to use a web content filter to restrict access to a single YouTube video (https://www.youtube.com/watch?v=YASLijHmB54). I've added that to the Specific websites rule, and it loads if I type it in. When it is redirected to that URL, I noticed that the URL changes to https://youtu.be/YASLijHmB54 I've added another rule with that URL and it still shows as restricted. I can't see the format of the rules on the iPad. It only shows the "bookmark" name.
Is there any way to limit access to just one YouTube video? Thanks!
- SebastiaanSmitsSteel Contributor
When I open this in a browser and inspect the traffic flows there are a lot of connections made and I doubt this will be static so you will not be able to get a static list of URL's (snippet of the URL's):
I think you will be better off hosting this video yourself and providing this URL in the iOS Webcontent filter config..
- BillBrazCopper Contributor
I was able to get it working when embedding the video. When embedded, it doesn't rewrite the URL, so the rule works. I did have to allow about 4-5 Google sites in order for it to work. I believe those are to load the player and perhaps some analytics.
Thanks for taking time to look into this!
Bill
- JutManGrahamBrass Contributor
BillBraz I would suggest clearing the history on your browser then going to the website and see where it all hits to start. Make sure there is not indirect redirection.
Also, publish a web link to the URL and take the users to the direct link, and not the re-direction if you can.
- BillBrazCopper ContributorIt's not possible to clear the Safari cache when web content filtering is applied. I believe it's YouTube that's doing the redirection. Most likely based on the UA string being sent during the request. I have these URLs in the web content filter policy as allowed sites:
https://www.youtube.com/watch?v=YASLijHmB54
https://youtu.be/YASLijHmB54/
https://youtube.com/redirect
But I still get the Restricted Site message when trying to load the video. Any other suggestions?
Thanks!