Opened 2 years ago

Last modified 12 months ago

#6592 closed change

Add filter option to rewrite URL — at Version 1

Reported by: hfiguiere Assignee:
Priority: P2 Milestone:
Module: Core Keywords: circumvention
Cc: arthur, mapx, sebastian, kzar, amrmak Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

https://codereview.adblockplus.org/29760704/

Description (last modified by hfiguiere)

Background

Instead of blocking content we could rewrite the URL to still get content.

Like:

||/(server.com/content/.*\.m3u8)\?.*/$rewrite=/\1/

There are multiple use cases for it.

  • Video ads: the ads are queried through the .m3u8 file used as source. See issue #6242
  • AMP: we could redirect people to the non AMP page as AMP is only meant to advertise and track not to actually make the web better.

What to change

  • Add a rewrite option to regexp blocking filters
  • Rewrite the URL at the time of the request
  • Add tests

Change History (1)

comment:1 Changed 2 years ago by hfiguiere

  • Description modified (diff)
Note: See TracTickets for help on using tickets.