Skip to content

Latest commit

 

History

History
103 lines (89 loc) · 3.11 KB

README.md

File metadata and controls

103 lines (89 loc) · 3.11 KB

About

This system is designed to restrict access to unnecessary or harmful websites
There are potentially two scenarios in which ProxyBlocker can be useful

  1. If it is necessary to restrict the child's access to harmful resources
  2. If you want to focus on something and limit yourself from the temptation to be distracted by social networks, streaming platforms, etc

Getting started

To launch the ProxyBlocker download the repository folder and run following on your Linux PC

Download the Virtual Enviroment

python3 -m venv env
source env/bin/activate

Install all the necessary frameworks

pip install -r requirements.txt

Install and configure .env

touch .env

In '.env' fill in the username and password under which you will enter the admin panel

ADMIN_LOGIN=
ADMIN_PASSWORD=

Then you need to configure PROXY in your prowser
Run following to generate the certificate

mitmproxy

And go to ~/.mitmproxy/. Find mitmproxy-ca-cert.pem and add it to your browser proxy-certificates.
Read more
Then go to your browser settings and find proxy configuration
Choose manual proxy configuration and fill:

host : localhost
PORT : 8080

And we're done with configuration

User Manual

Open two terminals - in one we will launch a proxy server, in the other a processing server
Go to main directory in first terminal and run

make run_proxy

Go to main directory in second terminal and run

make run_flask

To block / unblock sites go to localhost:8000/admin with loign information as password=, login=
The final url is

https://localhost:8000/admin?login=<your_login>&password=<your_password>

And you will see the admin panel

To add or delete new site (sites) fill the form with it's domain name and method (add or delete)

For example you want to block tiktok.com. Submit:

The domain name has been added to the blocked list

And now instead of this

You get this and a bunch of motivation to get better and develop, not waste your time


Important remark

Some browsers put blocked sites in the cache and it needs to be cleaned manually if you want to revive some site.
Read more