Hi,
I would like to block some images or scripts only on some domains (facebook like-buttons for example).
I know that I could achieve this by filters, but since https is now almost everywhere, this is no longer possible.
I was thinking to a workaround by using taggers.
Let’s say I want to block .facebook.com only if the referer is .referrer.net.
Is this possible? Has anybody managed in doing something like that and how?
I think I should have something like this in user.action:
+client-header-tagger{referer}
/
+block{test}
TAG:referrer.net$
.facebook.com
But this blocks .facebook.com everywhere.
How should the code look?
To do what you want you have to create a custom tagger
that is enabled for all facebook requests and tags all
request with the referer you want to block.
What do you mean with “to create a custom tagger”. Anything like that in user.filter?
CLIENT-HEADER-TAGGER: fb-request
s@some-facebook-pattern-in-header@FB-pattern@
And then how should the user.action look, to block facebook only on referrer.net.
Something like this?
+block{facebook}
TAG: FB-pattern
TAG: referrer.net
And in default.action:
{
+client-header-tagger{referer}
+client-header-tagger{fb-request}
}
/
"P. Zaccaria" pzac@users.sourceforge.net wrote:
Yes.
TAG:^FB-Pattern$
You don't need this.
the fb-request tagger should only be enabled for facebook requests.
Fabian