Code Monkey home page Code Monkey logo

website-blocker-python's Introduction

Website Blocker Python

Intro

Hi Guys 👋

This repository consists the code of a simple website blocker project implemented in Python. It can be used to block certain websites during work time to reduce distraction thus improving productivity.

The magic

The magic of this project lies on modifying the host file within your computer that manages how you access the web.

Getting started

Well to get started with this project just clone the repository and edit the host file location depending on the OS your using.

    $-> git clone https://github.com/Kalebu/Website-blocker-python
    $-> cd Website-blocker-python
    $ Website-blocker-python ->

Adding sites to block + Editing host files

Now open the app.py and the goto line 4 with variable site_to_block and you can add the sites you would like to block during work time

drawing

Also when you go to the line no 12 and edit default host depending on Operating System you're using

drawing

One more thing

You would need to set up the starting working + ending working hours where you would like to be restricted from accessing those websites To do this go to line last line of our code and edit the hours where by.

drawing

Congratulations

Well done you now have a fully functioning website blocker that you have made yourself to improve your productivity, in Python

Issues

Incase you have any difficulties or issues while trying to run the script you can raise it on the issues

Pull Requests

If you have something to add, I welcome pull requests that improve the project, your helpful contribution will be merged as soon as possible.

Give it a Star ✴️

If you find this repo useful , give it a star

Credits

All the credits to kalebu

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.