Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can I Create a URL Whitelist Using Windows 7?

05 Jan 2017   #1
Michael33

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Can I Create a URL Whitelist Using Windows 7?

I know I can:

1. Create a URL blacklist by editing the hosts file.
2. Use 3rd-party software to create a URL blacklist or whitelist (ie. internet filters).

But...

What I'm wondering is can I either use the hosts file or some other OS-level (or whatever level) hack to create a whitelist (ie. "block everything but..."), without resorting to flaky, error-prone 3rd-party software?

Thanks!
Michael33


My System SpecsSystem Spec
.
07 Jan 2017   #2
Alejandro85

Windows 7 Ultimate x64
 
 

Without resorting to anything external, I doubt it can be done effectively. I can think of two alternatives:

Use Windows Firewall to block everything but a few selected IP addresses corresponding to the target websites. You need to get the addresses of each URL, then allow it explicitly, while blocking everything by default. This has the drawback of allowing all the sites hosted on a particular IP, not just a specific domain. Also, if the site changes its hosting, the firewall rule breaks and the site becomes unavailable to you. While it works, it's not extraordinarily good, as the firewall don't supports rules by host name, just by IP.

Another option would be to use Windows Firewall to block outgoing DNS requests, so that no domain name can be ever resolved, then use the hosts file to add the right IP to each allowed site. This, like the "blacklist" approach, has the drawback of not actually blocking sites at all, just avoid its name resolution. This however can block shared hostings correctly.

For both options you need the IP addresses of each affected site, then you depend on that not changing. Also that are system-wide and require administrator access to enact or change, so be sure not to give admin permissions to the intended users.
My System SpecsSystem Spec
07 Jan 2017   #3
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

Are you still trying to work on the problem you had way back?

Is it possible to self-regulate using OpenDNS?

Jack
My System SpecsSystem Spec
.

07 Jan 2017   #4
Michael33

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Alejandro85:

Is your Win.Firewall solution basically the same as the solution presented here? whitelist - Allow only white-listed sites on Windows 10 - Super User
My System SpecsSystem Spec
07 Jan 2017   #5
Alejandro85

Windows 7 Ultimate x64
 
 

Almost the same idea! Wasn't aware of that post, but yes, pretty much the same. I didn't knew of blocking all the top level domains in hosts, but the rest is the same.
Is that trick a good option to you?
My System SpecsSystem Spec
09 Jan 2017   #6
Michael33

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Alejandro85:

Apparently the guy who posted that over at superuser didn't know what he was talking about, because I tried pasting all those null-route TLDs in the hosts file, without adding any whitelisted domains, and it didn't block anything (theoretically it should have blocked everything) - unless I'm missing something?

Jack:

Yes, the end goal is the same, and I have had much success at self-regulating using OpenDNS, along with blacklisting other sites it misses using the hosts file, but...

All:

I guess, in thinking more about what I'm after, I'd like to be able to blacklist all Youtube channels except the ones I whitelist (using the hosts file). But I can't get any YT channels to block using the hosts file (and therefore certainly can't block all except...). I can only block the main website URL, Youtube.com. Anybody know why that is?
My System SpecsSystem Spec
09 Jan 2017   #7
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

I'm glad your self control is getting better.

Take a read through this tutorial and see if it will help.

Parental Controls - Setup and Use

I have never used it but it's the only thing I can think of.

Jack
My System SpecsSystem Spec
09 Jan 2017   #8
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Not sure if the secondary YT URL's could be blocked using your browsers/AV re-direct options setting
Tell me if the page requested redirection

Roy
My System SpecsSystem Spec
09 Jan 2017   #9
Michael33

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Jack:

Yes, I have considered the parental controls, but they are not what I'm looking for; they do not allow blocking of specific websites. But thanks for the suggestion.

Roy:

I did a little searching for browser redirect settings and I didn't find anything. Not sure what those are. Maybe you can clarify?

Note: I discovered that the hosts file only deals with domains and not subdomains. It will not recognize anything that comes after the "/" symbol, which is why it ignored attempts to block specific Youtube channels (ie. "Youtube.com/user/videos").

There just has to be a way to get every url entered to be processed in the desired way. Guess I'll just keep looking.
My System SpecsSystem Spec
10 Jan 2017   #10
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 


The following add-on might be of use

https://www.google.co.uk/url?sa=t&rc...GP6aWX8yQtr1rw


Bit more info, obviously FF, assume google has the same kinda thing

Roy
My System SpecsSystem Spec
Reply

 Can I Create a URL Whitelist Using Windows 7?




Thread Tools




Similar help and support threads
Thread Forum
Setup was unable to create a new system partition - I can not create p
Hello guys,'ve looked for everything that google and not found my solution. Is giving the following error when trying to install windows 7 in HD: "setup was unable to create a new system partition or locate an existing system partition" I've tried to do some procedures, but also can not...
Installation & Setup
Cookies whitelist on Chrome
Hi. I want clear all my cookies with some exceptions For that I use Click&Clean extension to clear all cookies, history, ... when Chrome closes, for whitelist i use "Cookies" app (it has the "encrypted cookie storage"), it works great, but i don't know which the cookies i need add to whitelist,...
Browsers & Mail
Microsoft's 'whitelist' helps hackers, says Trend Micro
VULNERABILITIES By recommending that users exclude some file extensions and folders from antivirus scans, Microsoft may put users at risk, a security company said today. In a document published on its support site, Microsoft suggests that users do not scan some files and folders for...
System Security
Windows 7: UAC whitelist. Secret APIs again. A lawsuit waiting to happen?
Windows 7: UAC whitelist. Secret APIs again. A lawsuit waiting to happen? This is message written by a mod at the unofficial forum for Directory Opus, a 3rd party Windows file manager. It's a interesting little read, especially since I am a Directory Opus user myself :huh:
News


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:13.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App