Feature request: Prevent redirections

Various discussions related to Adblock Plus development
Post Reply
Lain_13
Posts: 114
Joined: Fri Dec 18, 2009 5:24 pm
Location: Wonderful World, Ubuntu Linux
Contact:

Feature request: Prevent redirections

Post by Lain_13 »

Ticket: https://issues.adblockplus.org/ticket/2095

Background

Example: ​http://tod-news.com/903-nbu_pokazav_nov ... _foto.html
Try to click on the image or article header at the right side.
You may notice that URL will be opened in a new tab and then content of the old background tab will be replaced with advertisement page (​http://baila.kralia.com/?source=tod-back).
There should be a way to prevent such redirects. I've seen this trick on some sites and I've seen at least one ads network which used this trick.

Another example: ​http://www.pics-money.ru/6/65478/1/ (NSFW!)
This one even more annoying since redirects you _without_ any clicks. Just wait for a few seconds and it will try to open ads page.

What to change

Implement $redir flag which will prevent redirection to the target page if it matches. Similar to $popup one. If a page were redirected in the background tab - close that tab.
Alternative: make $popup handle both popups and redirects since it already monitors chains of redirections in the newly opened tabs.
Post Reply