barbaz wrote:ReporterX wrote:Wouldn't this be better?
Code: Select all
Site .akamai.net .akamaihd.net
Accept from .akamai.net .akamaihd.net
Accept INCLUSION from .facebook.com
Deny
Well, you're blocking links to akamai with that ruleset, which you said you didn't want to do.
Using the above rule, I found out if I access the link directly by typing/pasting in the address bar. It will load.
But if I click their direct link in the third party site, it will be blocked.
barbaz wrote:
ReporterX wrote:And what are ALL, SUB too by the way?
ALL = everything
SUB = (i)frames
ReporterX wrote:Accept ALL - allow any requests from any method (so basically the same as Accept)
Accept SUB - only allow requests loaded in frame or iframe
Accept INCLUSION - only allow requests if not directly loaded from the main domain (i.e. example.com). It sounds to me it allows requests loaded in frame or iframe too.
Am I right?
You understand ALL and SUB. INCLUSION refers to anything that's not a top-level load (meaning, INCLUSION matches everything other than what you see in the address bar).
Thanks a lot.
As to INCLUSION, let's say you load
http://www.example.com/somepage.html
Everything inside the page is permitted to be loaded.
But since you can't load (access) the page first, so you can't see anything.
Am I right?
barbaz wrote:ReporterX wrote:Change accept into sandbox. Does it work? Will it be better?
No, because that won't have any effect on requests for things that can't *include* active content.
Basically that only affects frames/iframes.
Oh! What I thought was different.
I tested ABE with sandbox.
I ran the king.com Candy Crush from Facebook.
I had this rule:
Code: Select all
Site .akamai.net .akamaihd.net
Sandbox INCLUSION from .facebook.com
Deny INCLUSION
But the Facebook avatars couldn't be loaded.
I added "Accept INCLUSION from .king.com". Avatars loaded.
But when I changed it into "
Sandbox INCLUSION from .king.com", avatars didn't load.
I thought Sandbox was to scrutinize and strip off the scripts, objects, plugins (like Javascript, Java, Flash, (i)frame etc.), and it was what active contents mean.
king.com probably needs to run a script and call the avatar. That's why it doesn't load if I use "Sandbox" instead of "Accept".
Everything is just wild guess. I know little about programming, so I could be wrong.
barbaz wrote:
ReporterX wrote:I don't really trust those sites (I'm forced to whitelist it otherwise the content of Facebook won't load.
I prefer setting some restrictions instead of giving a blanket accept.
Site .akamai.net .akamaihd.net
Sandbox from .akamai.net .akamaihd.net
Sandbox INCLUSION from .facebook.com
Deny
The "Deny" where it is, necessarily means that you're placing restriction.
Could you please explain more what you want?
I don't really want to permit those tracking sites to run at all, if possible.
But some sites refuse to display (some or all) contents if you don't allow them.
They probably use scripts to check if those are blocked. If so, the contents won't be loaded.
So I just want to give as few permissions as possible to display the contents, and anything unnecessary should be blocked.
If my understanding is correct, "Accept from onesite.com" allows them to run anything from that site.
Sandbox looks like I could get back some controls and disable scripts, plugins, active contents that I don't want to run, even from that site.
But you seem to tell me that sandbox basically are only useful in frames and iframes.
Well, but then what are the differences between "Sandbox" and "Deny SUB"?
Sorry for all those questions.
I spent quite a long time searching and reading, but I still couldn't understand them on my own.
