[RESOLVED] Youtube ABE only on youtube.com and 1 other site

Discussions about the Application Boundaries Enforcer (ABE) module
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

[RESOLVED] Youtube ABE only on youtube.com and 1 other site

Post by Mad_Man_Moon »

Hi

For the life of me I can't get this to work, and now my ABE has got so convoluted I don't really understand any of it.

I also don't understand what should be whitelisted and what shouldn't be as I've read the FAQs and apparently I can't understand it properly.

Basically, I only want YouTube videos to load on youtube.com and allkpop.com, nowhere else. I can't seem to get that to work.

Here's the current code:

Code: Select all

Site .youtube.com
Accept from .youtube.com .googlevideo.com .allkpop.com .google.com .google.co.uk
Accept INCLUSION from SELF++
Accept INCLUSION from .youtube.com .allkpop.com .googlevideo.com 
Accept GET
Deny from .bleedingcool.com
Deny INC(SCRIPT) from .bleedingcool.com

Site .googlevideo.com
Accept from .youtube.com .googlevideo.com .allkpop.com .google.com .google.co.uk
Accept INCLUSION from SELF++
Accept INCLUSION from .youtube.com .allkpop.com .googlevideo.com 
Accept GET
Deny from .bleedingcool.com
Deny INC(SCRIPT) from .bleedingcool.com

Site .bleedingcool.com
Accept INCLUSION from SELF++
Accept INCLUSION from .bleedingcool.com
Accept GET
Deny INC(SCRIPT) from .youtube.com .allkpop.com .googlevideo.com
Deny from .youtube.com .allkpop.com .googlevideo.com
Sandbox from .youtube.com .allkpop.com .googlevideo.com 
Honestly, I think I'm going slightly crazy,because videos still load on bleedingcool.com (whether the site .bleedingcool.com code is there or not), if anyone could put any of this into action, I'd be most grateful.

M_M_M

[edit]
For the purposes of this particular code I've whitelisted youtube.com googlevideo.com allkpop.com bleedingcool.com

[edit2]
.googlevideo.com should replace .ytimg.com in the faq :)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Youtube ABE only on youtube.com and 1 other site

Post by barbaz »

Does this work? -

Code: Select all

# Allow Youtube only on Youtube and allkpop
Site .youtube.com .ytimg.com .googlevideo.com
Accept from .youtube.com .ytimg.com .googlevideo.com .allkpop.com
Deny INC
(replace your current rules)
*Always* check the changelogs BEFORE updating that important software!
-
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Re: Youtube ABE only on youtube.com and 1 other site

Post by Mad_Man_Moon »

checking now
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Re: Youtube ABE only on youtube.com and 1 other site

Post by Mad_Man_Moon »

Yes! This is excellent, thanks! :)

Great stuff, now I need to get a greasemonkey autoplay stopper and write custom CSS to say "THERE WAS A VIDEO HERE" :lol:

Thanks, barbaz!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Youtube ABE only on youtube.com and 1 other site

Post by barbaz »

You're welcome! Image
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: [RESOLVED] Youtube ABE only on youtube.com and 1 other s

Post by Thrawn »

I think that the problem with the original rule attempt (besides being overly complex) was that there was no ABE rule at all for ytimg.com, so it was unrestricted.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: [RESOLVED] Youtube ABE only on youtube.com and 1 other s

Post by barbaz »

Thrawn wrote:the problem with the original rule attempt (besides being overly complex) was ...
... first and foremost, this pattern -

Code: Select all

Site .youtube.com
Accept ...
Accept ...
Accept ...
Accept GET
I think everything involved here is GET requests, so putting "Accept GET" before all the "Deny"s is practically equivalent to not having the ABE ruleset.

And there is no point to put bleedingcool anywhere in these rules. The ruleset is not trying to restrict what can load bleedingcool, it's only trying to restrict what can load Youtube.

Still, that's a decent effort for not really understanding it. :)
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: [RESOLVED] Youtube ABE only on youtube.com and 1 other s

Post by Thrawn »

Ah, that would also do it.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Post Reply