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

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

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

Post by Mad_Man_Moon » Fri Oct 27, 2017 12:11 pm

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 :)

barbaz
Senior Member
Posts: 8788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Fri Oct 27, 2017 3:40 pm

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
Posts: 4
Joined: Fri Oct 27, 2017 12:02 pm

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

Post by Mad_Man_Moon » Sun Oct 29, 2017 9:08 am

checking now

Mad_Man_Moon
Posts: 4
Joined: Fri Oct 27, 2017 12:02 pm

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

Post by Mad_Man_Moon » Sun Oct 29, 2017 9:30 am

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!

barbaz
Senior Member
Posts: 8788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Sun Oct 29, 2017 4:11 pm

You're welcome! Image
*Always* check the changelogs BEFORE updating that important software!

User avatar
Thrawn
Senior Member
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 » Tue Oct 31, 2017 1:47 am

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.

barbaz
Senior Member
Posts: 8788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Tue Oct 31, 2017 2:17 am

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
Senior Member
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 » Tue Oct 31, 2017 4:09 am

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.

Post Reply