Improve Internet Security by Blocking Malicious Domains

April 16, 2018 | Views: 2042

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

What is this post about?

In this post, I will show you how can you block all malware domain which hosts malicious code on their sites which can compromise your system or your browser by saving some bad cookies or malware on your computer, not only this it will also block ads and online tracking cookies.

How does it work?

This work by creating a host file by replacing your host file. This host file gets a list of all those malicious domain names and will create a rule to block all those sites on your system.

How does it block the site?

They redirect all those domains to your local address that means all those blocked sites in the list will redirect to which is your own computer and your computer will never allow communicating to that address.

How to use this… 

Using this program is very easy just follow some easy steps below and you are good to go

STEP 1.  Open your terminal and type git clone && cd hBlock


STEP 2.  Now in the program directory type ./Makefile this will configure some important settings.

STEP 3.  That’s it now run ./hblock with your desired options or just simply run ./hblock and you are good to go all those malicious domains will be blocked on your computer.

Does it really work?

To check this, I tried to ping a malicious site from the list to check what DNS it is pointing.

We can see in the above image, the script did its work.

That’s all for now 😉 Follow me on Facebook.

Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?