Coder Social home page Coder Social logo

karthik558 / webblockerscript Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 4.0 1.28 MB

"Web Blocker Script" is a command-line tool to block unwanted websites by modifying the local host file. It allows users to add custom websites to the block list and also provides options to backup and restore the host file. The tool is easy to use and can enhance productivity by blocking distractions.

License: MIT License

Batchfile 100.00%
hotel-management-system information-security-policies website-blocker windows-host-management internet-sites-blocker user-data-blocking

webblockerscript's Introduction

WebBlockerProxy | WebBlockerScript

Web Blocker Script Banner

Table of Contents

About

WebBlockerScript is a simple command-line tool written in Batch script that allows users to easily block access to specific websites on their Windows computer by modifying the hosts file. This tool provides a user-friendly menu system that allows users to add custom websites to block, remove blocked websites, and even backup and restore their hosts file. It is designed to be easy to use and requires no technical knowledge or expertise to operate. This tool can be useful for parents who want to limit their children's access to certain websites or for anyone who wants to improve their productivity by blocking distracting websites during work hours.

Usage

  • 1. Clone the repository (or download from the releases page) - git clone https://github.com/karthik558/WebBlockerScript
  • 2. Run the script as administrator. (Right-click on the script and select "Run as administrator")
  • 3. Select an option from the menu. (1-13)
  • 4. Follow the on-screen instructions to block/unblock websites, add/remove websites to block, backup/restore hosts file, etc.
  • 5. Always flush the DNS cache after blocking/unblocking a website. (Option 8)
  • 6. Use Task Scheduler to run the script at a scheduled time to block websites. (Option 10)
  • 7. Select a custom block list file to block websites. (Option 11)
  • 8. Update the block list file with the latest version from the GitHub repository. (Option 12) (If block.txt is not present in the same directory, then run the script with the internet connection to download the latest block list file. (Option 12))
  • 9. That's it! The script will do the rest.

Overview of the Menu

  • 1. Block a website - Blocks all the websites that are stored in the WebBlockerScript.cmd file.
  • 2. Unblock a website - Removes all the websites that are stored in the WebBlockerScript.cmd file.
  • 3. Add a website to block - Allows you to add a custom website to block.
  • 4. Remove a website from block - Allows you to remove a custom website from block.
  • 5. Backup hosts file - Creates a backup of the current hosts file.
  • 6. Restore hosts file - Restores the hosts file from the backup.
  • 7. View host file - Displays the contents of the hosts file in the notepad.
  • 8. Flush DNS cache - Flushes the DNS cache. (Always recommended after blocking/unblocking a website)
  • 9. Unblock WhatsApp - Unblocks WhatsApp by removing the block from the hosts file. (Quick access to WhatsApp)
  • 10. Set Blocking Schedule - Allows you to set a schedule for blocking websites. (Use Task Scheduler to run the script at the scheduled time)
  • 11. Select Block List File - Allows you to select a custom block list file to block websites.
  • 12. Update Block List File - Updates the block list file with the latest version from the GitHub repository.
  • 13. Exit - Exits the script.

Features

  • 1. Block access to specific websites on your Windows computer.
  • 2. Add custom websites to block.
  • 3. Remove blocked websites.
  • 4. Backup and restore hosts file.
  • 5. Easy to use menu system.
  • 6. No technical knowledge or expertise required. (1-4)
  • 7. Free and open-source.
  • 8. Regular updates and improvements.
  • 9. Block websites on a schedule.
  • 10. Select custom block list file.

Contribution

  • This project is open to contributions. Feel free to open a pull request or an issue if you want to contribute to this project.
  • If you find any bugs or issues, please report them in the issues section.

Developer Information

This project was developed by KARTHIK LAL. You can contact me at [email protected] for any queries or suggestions.

webblockerscript's People

Contributors

karthik558 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.