Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit b3299dc

Browse files
authored
Update README.md
1 parent 0759c29 commit b3299dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
blocker is a useful tool for blocking certain websites on linux operating system. It allows you to block certain websites for all ips in `ifconfig`.
33

44
# Requirements
5-
This script based on bash shell. You can check if you are using bash or not with this commend:
5+
This script is based on bash shell. You can check if you are using bash or not with this commend:
66
> $ which bash
77
8-
if output of commend is: `/usr/bin/bash` that means you are using bash.
8+
if output of commend is: `/usr/bin/bash` that means you are using bash and you can run this script.
99

1010

1111
# How to setup
12-
For adding a website for blocking , add `"www.website address"` to `websites` array in script. It will generate a block state for each ip and website in `websites` array. Each block state will add to `/etc/host/` file.
12+
For adding a website for blocking , add `"www.website address"` to `websites` array in script. It will generate a block state for each ip and website in `websites` array. Each block state will add to `/etc/hosts/` file later.
1313

1414
For editing the script run this commend on terminal:
1515

1616
> $ nano blocker.sh
1717
1818
You can fill `nano` with your favourite text editor.
1919

20-
And then add your websites to
20+
then you can add websites to `websites` array in script.
2121

2222
> [!WARNING]
2323
> please don't insert websites with `https://` or `http://` prefixes. This method will not working with these prefixes.
@@ -39,5 +39,5 @@ This will add your blocked websites to `/etc/hosts`. For unblocking websites run
3939
> $./blocker.sh web_unlock
4040
4141
> [!WARNING]
42-
> The `web_unlock` commend will only remove the blocked from end of file.
42+
> The `web_unlock` commend will only remove the blocked from end of file.If this commend not removing blocked states you must go to `/etc/hosts` file and remove them manually.
4343

0 commit comments

Comments
 (0)