Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ada672 opened this issue Jan 26, 2020 · 3 comments
Closed

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

ada672 opened this issue Jan 26, 2020 · 3 comments
Labels

Comments

@ada672
Copy link

ada672 commented Jan 26, 2020

as title.

@vorlif
Copy link

vorlif commented 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
Copy link
Member

Additionally, you'll need to use something like pixelsrv-tls, check the links here:
#1121

@ada672
Copy link
Author

ada672 commented Jan 27, 2020

Thanks for point out the way. ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants