Sign in to follow this  
Followers 0
ctl

Program that blocks all websites

25 posts in this topic

#1 ·  Posted (edited)

Hello, could someone help me create a program that blocks all sites on PC on all browsers, and allow only the sites that i set ? 

For example, the program block all sites and allow just google.ro and autoitscript.com ? I think its more easy to make a program that do this and to be portable and works for all browsers.Thanks.

Edited by ctl

Share this post


Link to post
Share on other sites



Hello, could someone help me create a program that blocks all sites on PC on all browsers, and allow only the sites that i set ? 

For example, the program block all sites and allow just google.ro and autoitscript.com ? I think its more easy to make a program that do this and to be portable and works for all browsers.Thanks.

should be working if you edit your hosts file with *.* to 127.0.0.1 and above the adresses which you do allow, with their correct ip adresses.

also would be much easier with just a firewall..

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

should be working if you edit your hosts file with *.* to 127.0.0.1 and above the adresses which you do allow, with their correct ip adresses.

also would be much easier with just a firewall..

 

Cant make it work if i edit the hosts file, i`ve try that.It would be much easier to just start and stop a program that to go into the hosts file and edit there.

Edited by ctl

Share this post


Link to post
Share on other sites

Nobody can help me with this ? Its impossible ?

Share this post


Link to post
Share on other sites

Surely using would be router/firewall settings would be alot easier than a script?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Not really beacuse its much easier with a program that i can have it on a usb stick and put it where i want and when i want, the reason that i want a program is that i saw this program 

Edited by ctl

Share this post


Link to post
Share on other sites

Another use for this concept is ransomware.

Share this post


Link to post
Share on other sites

What ?

Share this post


Link to post
Share on other sites

You can block all websites with the hosts file -- And with a small modification to the dns server entry.

Then, add only the sites you want to allow with their proper ip address. This is called white listing.

Which is the opposite of what most people do. (ie: blacklisting)

The problem with whitelisting, especially in your case, is that you gave a search engine: google.ro.

And THERE is where whitelisting will fail. Why? Because search engines use dozens of ip numbers --

and these ip numbers change everytime you access their webpage. Otherwise, it would work.


"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

In the whitelist i cand add the name of the site ? for example www.google.ro ? or this is available just for the blacklist ?

Could you show me how should the hosts file look like ? 

Share this post


Link to post
Share on other sites

This is how it would look using a whitelist ...

127.0.0.1 localhost

87.106.181.57 www.autoitscript.com  # allowed

127.0.0.1 dirty.rotten.websites.com   # denied

Blacklisting would send it to the localhost -- and whitelisting would send it to the correct ip.

The hosts file is good for blacklisting, but not so good otherwise.

Here's another alternative --

You would be much better off, using a local proxy server.

A small proxy server would see if the site is in the whitelist and allow all ip addresses

associated with it to pass. I think something like this could be made with less than

150 lines of code -And- with no additional hardware. The program would reside

on the users computer.

I have not searched the forum for local proxy servers, but,

maybe a member already has one in the examples forum.

Basically it would work something like this:

Browser --> Local Proxy Server (Check WhiteList) --> Send response to Browser

The LPS would be responsible for retrieving website data and send it back to the browser.

There are several advantages to this method -- since the LPS handles the incoming data.

I don't know what your situation is -- maybe, if you could be a little more forth-coming,

there might be other ways of accomplishing what you want.

1 person likes this

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

JohnOne <-- search guru


"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

look for a software instead script.

http://www.thewebblocker.com/

1 person likes this

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Share this post


Link to post
Share on other sites

This is how it would look using a whitelist ...

127.0.0.1 localhost

87.106.181.57 www.autoitscript.com  # allowed

127.0.0.1 dirty.rotten.websites.com   # denied

Blacklisting would send it to the localhost -- and whitelisting would send it to the correct ip.

The hosts file is good for blacklisting, but not so good otherwise.

Here's another alternative --

You would be much better off, using a local proxy server.

A small proxy server would see if the site is in the whitelist and allow all ip addresses

associated with it to pass. I think something like this could be made with less than

150 lines of code -And- with no additional hardware. The program would reside

on the users computer.

I have not searched the forum for local proxy servers, but,

maybe a member already has one in the examples forum.

Basically it would work something like this:

Browser --> Local Proxy Server (Check WhiteList) --> Send response to Browser

The LPS would be responsible for retrieving website data and send it back to the browser.

There are several advantages to this method -- since the LPS handles the incoming data.

I don't know what your situation is -- maybe, if you could be a little more forth-coming,

there might be other ways of accomplishing what you want.

 

This is exactly what I need, a program that woks like you describe Browser -> local proxy server ( Check whitelist if not in whitelist don't go to that site) send response to Browser. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0