4 Replies Latest reply on Oct 23, 2012 10:37 AM by jejjowens

    Blocking Youtube by uploader

      We tried using the ruleset from the Content and Cloud Security site (Youtube Restrict Access By Uploader) for blocking youtube by only allowing certain uploaders and am not able to get it working correctly.  In our application, we would like to block all of Youtube and only allow videos by a single user, which is our company's user name/id.  What is giving me problems is when we also enable the streaming media category.  Once we have the streaming media category enabled as a block, we get weird playback issues where we can get to our company's page, but the video won't play back without adding numerous URL's.  If we turn off the category blocking, we are then able to play videos by our company's user name/id and block random user uploaded videos using the rule , but are unable to block channels or playlists from large companies like Home Depot.   Has anyone been able to successfully block Youtube videos by certain uploaders by making changes to the Youtube Restrict Access By Uploader ruleset available on the Content and Cloud Security site? 

        • 1. Re: Blocking Youtube by uploader
          asabban

          Hello,

           

          I created the rule set and I tried it with a couple of URLs, but there may be issues with it. Can you probably give me some examples that should/should not work and let me know what happens? I can try to do some troubleshooting and see if we need some tweaks to the rule set.

           

          I only know the "by category" rule set is already used by a couple of customers and seems to work pretty good. The "by uploader" rule set is not that popular (yet).

           

          If you give me some more details I will try to have a look.

           

          Best,

          Andre

          • 2. Re: Blocking Youtube by uploader
            luca.scamoni

            I did something like that.

            The customer request was to allow access to certain youtube channels only. Since I didn't find a way to "detect" the channel using YouTube APIs, I've setup a workaround using the uploader. In my case I had to work also on URL Filtering to allow access to www.youtube.com and a few URLs.

            So to start I used the Application Control Ruleset and created a Ruleset for YouTube:

            ruletree.PNG

            Application:Youtube Ruleset looks like this:

            ruleset.PNG

            here I setup several extarnal lists to fetch different attributes. Maybe there's a better way but this one works.

            I also setup here a block page to debug issues printing all the values just computed (quite useful).

            The nested ruleset performs the real block:

            limit.PNG

            Here I check if the URL contains the "v" parameter and if the uploader is not in the list of allowed uploader block access to the page.

            In URL Filtering ruleset I setup a rule to allow traffic towards

            URL.Host equals "www.youtube.com" AND URL matches in list YouTube Allow List

            where Youtube Allow List contains:

            http*://www.youtube.com/watch*

            http*://www.youtube.com/user/<uploader>

             

            This is all more or less...

            Best

            Luca

            • 3. Re: Blocking Youtube by uploader

              Hi Andre,

               

              Sorry for not getting back to you sooner.  We had a few things come up and had to put our YouTube issues on hold.  I have created rules to block uploaders and seem to have it to where it does now block other users and doesn't allow videos even if our company name is in the description or title, but for some reason channels aren't blocked.  For example: http://www.youtube.com/user/homedepot?feature=results_main  The Wal-Mart channel also gets through.

               

              I responded for a request for information in this link https://community.mcafee.com/thread/47201 and imported the rule set from eelsasser.

              • 4. Re: Blocking Youtube by uploader

                Hi Andre,

                 

                I stand corrected and apologize for the multiple posts.  The more troubleshooting I did, the more it seems that it is just the initial video on the channel that plays.  When you actually dig deeper or click on the videos within the channel, they do get blocked.  I did use another ruleset from the one eelsasser uploaded, but it is essentially the same.  eelsasser's was just more detailed and had more options than the one I used (https://contentsecurity.mcafee.com/ruleset_library/dl?type=package&rule_id=50024 Youtube Restrict Access By Uploader) I found on the Content and Cloud Security Portal).  Some of the commercials that appear at the top when you go to YouTube.com did play, but I'm sure can easily stop that with a couple of category blocks.