mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Is it possible to replace advertise with my own image? #1273
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#1273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ada672 on GitHub (Jan 25, 2020).
as title.
@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.
@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
@ada672 commented on GitHub (Jan 27, 2020):
Thanks for point out the way. ^_^