{"id":15641620,"url":"https://github.com/kalebu/website-blocker-python","last_synced_at":"2025-08-20T04:32:54.545Z","repository":{"id":41094615,"uuid":"265020044","full_name":"Kalebu/Website-blocker-python","owner":"Kalebu","description":"A simple website blocker project implemented in Python, It can be used to block certain websites during working time to reduce distraction thus improving productivity","archived":false,"fork":false,"pushed_at":"2023-11-08T23:19:50.000Z","size":244,"stargazers_count":116,"open_issues_count":7,"forks_count":45,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T06:17:27.779Z","etag":null,"topics":["python","python-beginners","python-cli-project","python-project","python-script","python-website-blocker","python3","pythontanzania","tanzania","website-blocker"],"latest_commit_sha":null,"homepage":"https://kalebujordan.com/how-to-build-website-blocker-in-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kalebu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-18T18:02:01.000Z","updated_at":"2024-11-29T07:05:16.000Z","dependencies_parsed_at":"2024-10-23T05:34:51.572Z","dependency_job_id":null,"html_url":"https://github.com/Kalebu/Website-blocker-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalebu%2FWebsite-blocker-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalebu%2FWebsite-blocker-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalebu%2FWebsite-blocker-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalebu%2FWebsite-blocker-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kalebu","download_url":"https://codeload.github.com/Kalebu/Website-blocker-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230394228,"owners_count":18218707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-beginners","python-cli-project","python-project","python-script","python-website-blocker","python3","pythontanzania","tanzania","website-blocker"],"created_at":"2024-10-03T11:43:49.356Z","updated_at":"2024-12-19T07:07:12.361Z","avatar_url":"https://github.com/Kalebu.png","language":"Python","readme":"# Website Blocker Python\n\n\nIntro \n------------\n\nHi Guys 👋 \n\nThis 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.\n\n\nThe magic \n--------------\n\nThe magic of this project lies on modifying the host file within your \ncomputer that manages how you access the web.\n\nGetting started \n---------------------\n\nWell to get started with this project just clone the repository \nand edit the host file location depending on the OS your using.\n\n```bash\n    $-\u003e git clone https://github.com/Kalebu/Website-blocker-python\n    $-\u003e cd Website-blocker-python\n    $ Website-blocker-python -\u003e\n```\n\nAdding sites to block + Editing host files \n------------------------------------------------\n\nNow open the *app.py* and then go to line 4 with variable *site_to_block*\nand you can add the sites you would like to block during work time\n\n\nthe script will automaticaly detect your OS and will add the host records to the relevent location\n\nOne more thing \n-------------------\n\nYou would need to set up the starting working + ending working hours where you would like to be restricted from accessing those websites.\nTo do this go to line last line of our code and edit the hours where by.\n\n![time_to_block](./time_to_block.png)\n\nCongratulations \n--------------------\n\nWell done you now have a fully functioning website blocker that you have made yourself to improve your productivity, in Python \n\nIssues \n-----------\n\nIncase you have any difficulties or issues while trying to run the script\nyou can raise it on the issues \n\nPull Requests\n----------------\n\nIf you have something to add, I welcome pull requests that improve the project, your helpful contribution will be merged as soon as possible.\n\n\nGive it a Star ✴️\n--------------------\nIf you find this repo useful , give it a star\n\nCredits\n-----------\nAll the credits to [kalebu](https://github.com/Kalebu)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalebu%2Fwebsite-blocker-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalebu%2Fwebsite-blocker-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalebu%2Fwebsite-blocker-python/lists"}