ctl Posted October 16, 2013 Share Posted October 16, 2013 (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 October 16, 2013 by ctl Link to comment Share on other sites More sharing options...
Hawkysoft Posted October 16, 2013 Share Posted October 16, 2013 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.. Link to comment Share on other sites More sharing options...
ctl Posted October 16, 2013 Author Share Posted October 16, 2013 (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 October 16, 2013 by ctl Link to comment Share on other sites More sharing options...
Starstar Posted October 16, 2013 Share Posted October 16, 2013 Check this. http://www.ehow.com/how_5078719_block-websites-except-one.html Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
ctl Posted October 16, 2013 Author Share Posted October 16, 2013 Check this. http://www.ehow.com/how_5078719_block-websites-except-one.html Thanks for sharing, but if the pc has windows xp i think that not going to work properly, and as I said above i want a program because it is much easier if you have more computers just run the program and thats it. Link to comment Share on other sites More sharing options...
ctl Posted October 17, 2013 Author Share Posted October 17, 2013 Nobody can help me with this ? Its impossible ? Link to comment Share on other sites More sharing options...
13lack13lade Posted October 17, 2013 Share Posted October 17, 2013 Surely using would be router/firewall settings would be alot easier than a script? Link to comment Share on other sites More sharing options...
ctl Posted October 17, 2013 Author Share Posted October 17, 2013 (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 October 17, 2013 by ctl Link to comment Share on other sites More sharing options...
gruntydatsun Posted October 17, 2013 Share Posted October 17, 2013 Another use for this concept is ransomware. Link to comment Share on other sites More sharing options...
ctl Posted October 17, 2013 Author Share Posted October 17, 2013 What ? Link to comment Share on other sites More sharing options...
JohnOne Posted October 17, 2013 Share Posted October 17, 2013 (edited) He said... Another use for this concept is ransomware. Edited October 17, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ripdad Posted October 17, 2013 Share Posted October 17, 2013 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 Link to comment Share on other sites More sharing options...
ctl Posted October 19, 2013 Author Share Posted October 19, 2013 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 ? Link to comment Share on other sites More sharing options...
ripdad Posted October 19, 2013 Share Posted October 19, 2013 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. ctl 1 "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
JohnOne Posted October 19, 2013 Share Posted October 19, 2013 '?do=embed' frameborder='0' data-embedContent>> AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ripdad Posted October 19, 2013 Share Posted October 19, 2013 JohnOne <-- search guru "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
JohnOne Posted October 20, 2013 Share Posted October 20, 2013 I'm getting a bit better, since I conceded IP Board search stinks and just use google instead. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Starstar Posted October 20, 2013 Share Posted October 20, 2013 look for a software instead script. http://www.thewebblocker.com/ ctl 1 Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
ctl Posted October 20, 2013 Author Share Posted October 20, 2013 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. Link to comment Share on other sites More sharing options...
ctl Posted October 20, 2013 Author Share Posted October 20, 2013 '?do=embed' frameborder='0' data-embedContent>> Thanks, I will try every script in that topic, maybe I will find what I`m looking for. look for a software instead script. http://www.thewebblocker.com/ That address is not working, the antvirus its blocking that address. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now