Is it possible to replace advertise with my own image? #1273

Closed
opened 2026-03-04 01:11:26 -05:00 by deekerman · 3 comments
Owner

Originally created by @ada672 on GitHub (Jan 25, 2020).

as title.

Originally created by @ada672 on GitHub (Jan 25, 2020). as title.
deekerman 2026-03-04 01:11:26 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@vorlif commented on GitHub (Jan 26, 2020):

You can enter your own IP address to which all requests will be sent.

I think, under this IP address you should be able to run a webser that checks if the http request wants an image and then returns your own image. But this only works if an image is loaded directly and not if a javascript file is loaded first, which then inserts an image at runtime. The javascript file will probably be blocked before loading and therefore the image will not be loaded.

Furthermore, requests for all protocols are sent to this IP and should be blocked there. The loading of a page is then probably a bit slower than blocking it directly.

But in principle it should be possible.

@vorlif commented on GitHub (Jan 26, 2020): You can enter your own IP address to which all requests will be sent. I think, under this IP address you should be able to run a webser that checks if the http request wants an image and then returns your own image. But this only works if an image is loaded directly and not if a javascript file is loaded first, which then inserts an image at runtime. The javascript file will probably be blocked before loading and therefore the image will not be loaded. Furthermore, requests for all protocols are sent to this IP and should be blocked there. The loading of a page is then probably a bit slower than blocking it directly. But in principle it should be possible.
Author
Owner

@ameshkov commented on GitHub (Jan 26, 2020):

Additionally, you'll need to use something like pixelsrv-tls, check the links here:
https://github.com/AdguardTeam/AdGuardHome/issues/1121

@ameshkov commented on GitHub (Jan 26, 2020): Additionally, you'll need to use something like pixelsrv-tls, check the links here: https://github.com/AdguardTeam/AdGuardHome/issues/1121
Author
Owner

@ada672 commented on GitHub (Jan 27, 2020):

Thanks for point out the way. ^_^

@ada672 commented on GitHub (Jan 27, 2020): Thanks for point out the way. ^_^
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#1273
No description provided.