Skip navigation
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
5125 Views 33 Replies Latest reply: Apr 4, 2013 12:49 PM by eelsasser RSS 1 2 3 4 Previous Next
DimSys Newcomer 16 posts since
Nov 25, 2009
Currently Being Moderated

Jul 24, 2012 1:58 AM

Youtube block by category

Hi.

I've imported the rule "Youtube Block By Category" from online rule library.

I've see that it works only if clip have the only one category.

If the clip have few categories (even all of them is in the "Blocked List") it doesn't block.

 

How to block clips that categorized by few categories?

 

Message was edited by: DimSys on 7/24/12 12:58:49 PM ALMT
  • asabban McAfee SME 1,354 posts since
    Nov 3, 2009
    Currently Being Moderated
    1. Jul 24, 2012 2:14 AM (in response to DimSys)
    Re: Youtube block by category

    Hello,

     

    can you give me an example video? I have not come across videos with more than one category so far, so I never tested this.

     

    Thank you,

    Andre

  • asabban McAfee SME 1,354 posts since
    Nov 3, 2009
    Currently Being Moderated
    4. Jul 24, 2012 3:12 AM (in response to DimSys)
    Re: Youtube block by category

    Hello,

     

    thank you for the examples. I had a look and it seems that the major category is "Shows", but as an uploader you can add additional "sub categories" which will show up when you browse there. We would basically detect "Shows" correctly, but there are several additional categoy tags returned which indicate some more detatils about regions and origin media of the video, which we incorrectly use as the category.

     

    I will try to modify the rule set. I will see if I can also get access to the "sub categories", but it may be possible that we are restricted to the main category, which is "Shows" in this case.

     

    I will let you know once I made progress.

     

    Thank you for reporting the examples, that is very helpful.

     

    Best,

    Andre

  • florian.hallas Newcomer 26 posts since
    Jul 26, 2011
    Currently Being Moderated
    7. Jul 24, 2012 12:27 PM (in response to asabban)
    Re: Youtube block by category

    I have also an example.

    http://www.youtube.com/watch?v=0RmJr1l0Aks&list=ELDxB4vbZDPbI&index=2&feature=pl pp_video

     

    This should be blocked because i block the YouTube Category Games. But everyone can see this example video.

    On the screenshot you can see the Categories of the posted video

    youtube_categories.png

     

    If you need more examplesfrom the same categories?

    Follow this playlist on youtube http://www.youtube.com/playlist?list=ELDxB4vbZDPbI&feature=plcp

  • eelsasser McAfee SME 841 posts since
    Mar 24, 2010
    Currently Being Moderated
    8. Jul 24, 2012 1:17 PM (in response to florian.hallas)
    Re: Youtube block by category

    If it does not block the category, it may be because of  2 things:

     

    The category name is not the same as the display name on the page. you may have entered "Gaming" in the rule but the API uses the word "Games".

     

    http://gdata.youtube.com/schemas/2007/categories.cat

     

    Category in rulesDisplay name on page

    Animals

    Pets & Animals

    Autos

    Autos & Vehicles

    Comedy

    Comedy

    Education

    Education

    Entertainment

    Entertainment

    Film

    Film & Animation

    Games

    Gaming

    Howto

    Howto & Style

    Movies

    Movies

    Movies_action_adventure

    Action/Adventure

    Movies_anime_animation

    Anime/Animation

    Movies_classics

    Classics

    Movies_comedy

    Comedy

    Movies_documentary

    Documentary

    Movies_drama

    Drama

    Movies_family

    Family

    Movies_foreign

    Foreign

    Movies_horror

    Horror

    Movies_sci_fi_fantasy

    Sci-Fi/Fantasy

    Movies_shorts

    Shorts

    Movies_thriller

    Thriller

    Music

    Music

    News

    News & Politics

    Nonprofit

    Nonprofits & Activism

    People

    People & Blogs

    Shortmov

    Short Movies

    Shows

    Shows

    Sports

    Sports

    Tech

    Science & Technology

    Trailers

    Trailers

    Travel

    Travel & Events

    Videoblog

    Videoblogging

     

    2) There appears to be a problem with the categorization from youtube's API.

    I can't tell if it's because of the localization, but on mine the API claims it's in the "Shows" category;

    http://gdata.youtube.com/feeds/api/videos/0RmJr1l0Aks?v=2

     

    I also notice a bug in External List definition on mine.

    By default, the XPath expression reads this:

     

    //*[local-name() = 'category']/text()

     

    But there are multiple category definitions sequentially and the last one is the one that takes for MWG.

    Change the XPath to:

     

    //*[local-name() = 'category' and @label]/text()

     

    This should help MWG locate the right XML node.

    But there still is a problem with the data that youTube is returning. It's under the category 'Shows'

     

     

     

     

    However, why would you ever want to block anything about angry birds? It's awesome!

  • jsuboh Newcomer 14 posts since
    Jan 27, 2012
    Currently Being Moderated
    9. Jul 24, 2012 5:47 PM (in response to eelsasser)
    Re: Youtube block by category

    Hi,

     

    I just got this working and it is working great. However, Youtube needs to add a category for sexual content because, can still search and find sexual content.

     

    One more thing, the detected category does not work in my case (ISA Server Proxy Chaining > MWG). Is there something that I missed?

     

    Thanks,

     

    Jahad Suboh

     

    Message was edited by: jsuboh on 7/24/12 5:47:09 PM CDT
1 2 3 4 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • Correct Answers - 5 points
  • Helpful Answers - 3 points