Git Product home page Git Product logo

pss's Introduction

Special Thanks To

Barry Quiel for fixing the Python version. This may be the future of PSS!

SafeSearch for Pi-hole

Pi-hole Logo

Supported Search Engines

Google Logo

DuckDuckGo Logo

Bing Logo

Installation

To install Pi-hole SafeSearch (PSS), simply run the following commands in your pi-hole terminal (log into pi with ssh; pi hole should be set up and running).

  1. Download the Pi-hole SafeSearch script:

    wget https://raw.githubusercontent.com/jaykepeters/PSS/master/Pi-hole_SafeSearch.sh

  2. Move the script.

    sudo mv ./Pi-hole_SafeSearch.sh /usr/local/bin/

  3. Make the script executable.

    sudo chmod a+x /usr/local/bin/Pi-hole_SafeSearch.sh

  4. Enable Pi-hole SafeSearch:

    sudo Pi-hole_SafeSearch.sh -e

Uninstallation

If you wish to not enforce SafeSearch on your network anymore, please follow the steps below to completely uninstall PSS

  1. Pi-hole_SafeSearch.sh --disable
  2. PSS creates the following files:
  • /var/log/pss.log
  • /etc/pss.ack
  • /tmp/safesearch.txt
  • /etc/dnsmasq.d/05-restrict.conf (Version < 2.0)
  • /etc/dnsmasq.d/SafeSearch.conf
  1. Version 2.1 will have the --uninstall option
  • User has to type y/n to confirm
  • All files will be deleted, including the script

API Draft

  • GET
    • /ssStatus.php/?/getStatus
    • /ssStatus.php/?/getStatus/{provider}
    • /ssStatus.php/?/getStatistics
    • /ssStatus.php/?/getStatistics/{provider}
  • POST
    • /ssStatus.php/?/enable/{provider}&auth={KEY}
    • /ssStatus.php/?/disable/{provider}&auth={KEY}

pss's People

Contributors

jaykepeters avatar quielb 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.