Skip to content

🐍 If you wanna block any website without pay a software or configure your internet network, you are in the right repo!! 🐍 (πŸ”‘ KeyWords: python, website-blocker πŸ”‘)

Notifications You must be signed in to change notification settings

CSFelix/PYTHON-WEBSITE-BLOCKER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌟 WebSite Blocker 🌟


❓ What's it? ❓

  • WebSite Blocker is a Python's Code that works to block websites access in the browsers during a period of time. By default, the period is between 8:00 - 18:00.

βš’οΈ Tools βš’οΈ

  • Python 3.7 version or later.

βš™οΈ Run βš™οΈ

  • Download the source code;
  • Open cmd and go to Python Code's Folder;
  • Tip:
python blocker.py

πŸ“ Notes πŸ“

  • Running: perhaps you needa run this code as Administrator (hosts files is changed only if the user is adm);
  • Blocker Time: the websites are blocked between 8:00 - 18:00 and they are unblocked after this period when the code is running;
  • Alert: if you block the websites and stop the code's execution, the websites will remain blockeds!!
  • Manual Unblock: ito unblock the websites manually, you needa change the time period in the file and execute the code again!! Or you can just edit the file manually taking off the line with '127.0.0.1 web_site_url'

🎁 Bonus 🎁

  • You can check the blocker file in this path on your computer:
- Linux / Mac: /etc/hosts
- Windows: C:\Windows\System32\drivers\etc\hosts
  • Toblock a website, you needa put the url with and without www, for example:
website_list = ['www.facebook.com', 'facebook.com']

πŸ“« Reach Me πŸ“«

Email: csfelix08@gmail.com

Linkedin: linkedin.com/in/csfelix/

Instagram: instagram.com/c0deplus/


Portfolio: CSFelix.io

About

🐍 If you wanna block any website without pay a software or configure your internet network, you are in the right repo!! 🐍 (πŸ”‘ KeyWords: python, website-blocker πŸ”‘)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages