Bug? HTTP 302

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
A

Bug? HTTP 302

Post by A »

Does Adblock Plus block the HTTP-requests or only the display?

Use the filter "ivwbox.de".
Then load the site "http://www.gmx.de"
gmx.ivwbox.de will set 2 cookies!
But ivwbox.de should be blocked!

Internally it works this way:
- http://www.gmx.de is forwared to http://www.gmx.net/de/ (nothing special)
- document.write('<img src="//www.gmx.net/cgi-bin/ivw/CP/AGOF_ID_264?r=' + escape(document.referrer) + '&d=' + Math.random() +'" style="width: 1px; height: 1px;" alt="" />');
- http://www.gmx.net/cgi-bin/ivw/CP/AGOF_ID_264?r=&d=0 (for example) sends a
HTTP/1.x 302 Found
[...]
Location: http://gmx.ivwbox.de/cgi-bin/ivw/CP/AGOF_ID_264?r=&d=0
[...]
- http://gmx.ivwbox.de/cgi-bin/ivw/CP/AGOF_ID_264?r=&d=0
sends a
HTTP/1.x 302 FOUND
[...]
Location: /blank.gif
[...]
Set-Cookie: srp=[...]
Set-Cookie: i00=[...]
[...]
- http://gmx.ivwbox.de/blank.gif is only 1px x 1px. I don't know if it is shown, but the HTTP request is sent.
Wladimir Palant

Post by Wladimir Palant »

Maybe some exception rule is defined that prevents blocking ivwbox.de? Check the list of blockable items - Ctrl+Shift+V.
A

Post by A »

I tried to reproduce this effect on my own servers. It's really very easy.

File ".htaccess" on domain1 server (yes, I know, mod_rewrite is not the best way for redirects. You can use others.)
RewriteEngine On
RewriteRule ^2\.jpg$ http://domain2/1.jpg [NC,R=302,L]

URL "http://domain1/1.htm" on domain1 server
<HTML>
<BODY>
<IMG SRC=1.jpg>
<IMG SRC=2.jpg>
</BODY>
</HTML>

Image "1.jpg" on domain1 and domain2 server
any jpg image.

Call http://domain1/1.htm now. You will always see two images. There isn't a way to block data from domain2 with Adblock Plus directly. Only indirect as domain1/2.jpg.
domain2 could be googlesyndication, google-analytics, and so on. As you wish.
Wladimir Palant

Post by Wladimir Palant »

Ok, I realized that you are talking about https://bugzilla.mozilla.org/show_bug.cgi?id=431782 - you can only block the original address, not the address it redirects to. So you would have to block "http://www.gmx.net/cgi-bin/ivw/*"
Post Reply