Discussion:
RequestPolicy-like patch
p***@public.gmane.org
2012-08-08 00:26:57 UTC
Permalink
Patch implements functions similar to Firefox addon RequestPolicy. [1]
It allows user to control automatic requests more flexible than
filter_auto_requests option. Patch removes this option and replaces it
with file .dillo/domainrc that looks like this:

default deny
wikipedia.org .wikimedia.org
wikisource.org .wikimedia.org
wikitionary.org .wikimedia.org
wikiversity.org .wikimedia.org

That way most requests are denied, but images on wikipedia are loaded
from wikimedia.org without clicking on them.

Patterns can start with "." to allow subdomains.

Special pattern "*" can be used to allow requests to any domains from
some domain (for example if it is a website full of external images) or
to allow requests from any domain to some domain (maybe CDN).

Without domainrc file all cross-domain requests are denied.

[1] https://www.requestpolicy.com/
p***@public.gmane.org
2012-08-08 00:53:30 UTC
Permalink
Fixed error messages, they lacked newline.

Sample domainrc is attached.
p***@public.gmane.org
2012-08-08 15:10:50 UTC
Permalink
Fixed memory leak in a_Crossdomain_freeall.
p***@public.gmane.org
2012-08-20 01:40:18 UTC
Permalink
By the way there is a related bugreport 1072. HTReproduce says
look into dillorc.
there is no filter_auto_requests.
This bugreport is outdated, filter_auto_requests is documented in
dillorc now.
corvid
2012-10-03 02:04:45 UTC
Permalink
Post by p***@public.gmane.org
Patch implements functions similar to Firefox addon RequestPolicy. [1]
It allows user to control automatic requests more flexible than
filter_auto_requests option. Patch removes this option and replaces it
default deny
wikipedia.org .wikimedia.org
wikisource.org .wikimedia.org
wikitionary.org .wikimedia.org
wikiversity.org .wikimedia.org
That way most requests are denied, but images on wikipedia are loaded
from wikimedia.org without clicking on them.
Patterns can start with "." to allow subdomains.
Special pattern "*" can be used to allow requests to any domains from
some domain (for example if it is a website full of external images) or
to allow requests from any domain to some domain (maybe CDN).
Without domainrc file all cross-domain requests are denied.
[1] https://www.requestpolicy.com/
Committed with a little dilloification, etc.

At the moment, I have the default set to accept rather than deny,
thinking that it might be easier for us to build up a sample or
default domainrc with a bunch of notorious ad sites to blacklist than
it would be to whitelist enough common sites that use a [site]images.com
or suchlike.
corvid
2012-10-03 17:29:21 UTC
Permalink
I should mention that I was playing around with printing a summary at
freeall time in order to see which sites are the worst offenders.
Diff attached.
p***@public.gmane.org
2012-10-04 06:03:12 UTC
Permalink
I thought I'd removed all of it; did I overlook something?
No, it is me who overlooked one of the two commits (a18a70e099aa).
corvid
2012-10-04 00:28:38 UTC
Permalink
You did not remove filter_auto_requests preference (see my patch [1]).
I thought I'd removed all of it; did I overlook something?
p***@public.gmane.org
2012-10-03 19:57:48 UTC
Permalink
Post by corvid
Committed with a little dilloification, etc.
You did not remove filter_auto_requests preference (see my patch [1]).

It is not necessary: no domainrc can work as
filter_auto_requests=allow_all and when domainrc with "default deny"
is present it is the same as filter_auto_requests=same_domain.

[1] http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-August/009394.html
Loading...