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

pixelserv-tls as blocking address #1121

Closed
ammnt opened this issue Oct 25, 2019 · 10 comments
Closed

pixelserv-tls as blocking address #1121

ammnt opened this issue Oct 25, 2019 · 10 comments
Assignees
Milestone

Comments

@ammnt
Copy link

ammnt commented Oct 25, 2019

Hello,

I suggest to use optionally pixelserv-tls as the blocking address instead of 0.0.0.0 or NXDOMAIN. What is pixelserv-tls? This is a small web server that returns a transparent image with a 1x1 pixel resolution when accessing a domain from a blocklist (inc. ALL urls contained this domain like https://domainblocked.com/blablabla123/). More information here:
https://kazoo.ga/pixelserv-tls/
https://github.com/jackyaz/pixelserv-tls
https://www.snbforums.com/threads/pixelserv-a-better-one-pixel-webserver-for-adblock.26114/

This solves the problem of broken pictures and frames. Also this will require generating a self-signed CA certificate and manually adding it to the keychains on user devices and mark it as trusted. For this, it is obvious that an appropriate web-interface...

P.S.: I am not sure that his license allows this, but I assume that something like this can also be realized using a lighttpd web server.

Feel free to ask me if you have any questions!

Thank you.

@imTHAI
Copy link

imTHAI commented Nov 10, 2019

Hello,

You can already do that using host syntax. But it won't include the subdomains of the domains.
In fact, it's precisely the reason I requested the option to be able to choose the ip cible for domains AND subdomains: #663

( I'm a fan of pixelserv-tls, I created a docker version that has a some success: https://hub.docker.com/r/imthai/pixelserv-tls )

I'm happy if your request convince the developers more than mine 👍

@ameshkov ameshkov added this to the v0.103 milestone Dec 8, 2019
@YBS-PC
Copy link

YBS-PC commented Dec 18, 2019

can anyone suggest (step by step) how to set the pixelserv-tls next to the AGH on raspberry pi, please

i did like this kvic-z/pixelserv-tls#32 (comment)

@swetoast
Copy link

the kvic repo is the correct repo for pixelserv since the other one is just a clone.

@szolin
Copy link
Contributor

szolin commented May 27, 2020

When we will implement #1228 - http proxy - will this feature request have a reason?

Also, currently you can start your own http server and set its IP in "Custom IP" setting in DNS configuration section of AGH.

@ammnt
Copy link
Author

ammnt commented May 27, 2020

When we will implement #1228 - http proxy - will this feature request have a reason?

Also, currently you can start your own http server and set its IP in "Custom IP" setting in DNS configuration section of AGH.

I know. And that 's what I did. It would be more convenient to have this functionality here, but it is up to you.

@temporallyaccount
Copy link

I don't quite understand what's going here. Does that feature request means to integrate pixelserv-tls to adguardhome? if then i do not recommend.

@ameshkov
Copy link
Member

Tbh, I don't like the idea either.

This would require AGH to listen to ports 80/443 and make the logic of the HTTP server part quite complicated.

Instead of this, we could add information about pixelsrv to Wiki and explain how to use it with AGH.

@imTHAI
Copy link

imTHAI commented May 29, 2020

It's a good idea.
Fo me, since you added the feature "Custom IP" setting in DNS configuration, I send everything to my pixelserv docker container IP, so I'm satisfied.

@ammnt
Copy link
Author

ammnt commented May 31, 2020

Tbh, I don't like the idea either.

This would require AGH to listen to ports 80/443 and make the logic of the HTTP server part quite complicated.

Instead of this, we could add information about pixelsrv to Wiki and explain how to use it with AGH.

I'm okay with it too🙆‍♂️

@szolin
Copy link
Contributor

szolin commented Jul 13, 2020

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

No branches or pull requests

7 participants