Giter Site home page Giter Site logo

sidingsmedia / pixelserv-tls-pihole Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kvic-z/pixelserv-tls

1.0 1.0 0.0 551 KB

A tiny bespoke HTTP/1.1 server for adblock and accelerating web browsing.

License: GNU Lesser General Public License v3.0

Makefile 0.25% C 90.21% M4 0.60% Roff 8.94%
webserver addblock pihole

pixelserv-tls-pihole's Introduction

pixelserv-tls is a tiny bespoke HTTP/1.1 webserver with HTTPS and SNI support. It acts on behalf of hundreds of thousands of advert/tracker servers and responds to all requests with nothing to speed up web browsing.

pixelserv-tls supports TLSv1.0, TLSv1.2 and TLSv1.3 and thus could operate with a wide range of browsers and client devices. Server certificates for any given advert/tracker domains are generated automatically on first use and saved to disk.

pixelserv-tls can log access and HTTP/1.1 POST contents to syslog. So it is also a useful tool to inspect and expose 'wrongly blocked' domains as well as 'rogue' domains invading user privacy.

This fork of pixelserv-tls redirects all HTTPS traffic to HTTP which means that the Pi-Hole blocking page can be used instead of a blank screen.

Build from source

This works on all Linux distributions and Linux-like environments such Homebrew for macOS and Cygwin for Windows.

autoreconf -i
./configure
make install

Launch pixelserv-tls

pixelserv-tls <listening ip>

Check out the man page for customization and command line options.

Creating a service

In order to get pixelsrv-tls to run constantly on Linux you will need to create a service. An example of a service file can be found below. This has been tested on Debian 10. You may need to modify it to suit your distribution.

Filename: pixelsrv-tls.service
[Unit]
Description=A tiny bespoke webserver for adblock with HTTP/1.1 and HTTPS support
After=network.target

[Service]
ExecStart=/usr/local/bin/pixelserv-tls 192.168.1.2 -p 8080 -l 1 -z /var/cache/pixelserv -f
Restart=always

[Install]
WantedBy=multi-user.target

After creating this file in /etc/systemd/system or whereever your service files are stored, you will be able to start and stop your pixelsrv-tls server like any other service with commands like systemctl start pixelsrv-tls.service or systemctl stop pixelsrv-tls.service.

pixelserv-tls-pihole's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.