Opened 2 years ago

Last modified 12 months ago

#6592 closed change

Add filter option to rewrite URL — at Initial Version

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

Background

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

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 (0)

Note: See TracTickets for help on using tickets.