• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Block websites but still allow for some users

Hello,

I'm currently helping a company that got following issue:
Their needs are to block sites like youtube.com/facebook.com etc anything not work related.

That is currently done by redirecting the website on the Domain Controllers DNS, so the users can't do domain lookups.
 
The problem is that some users need to get access to some of those websites.

The current solutions that is done is with changing the dns on the users PC to googleDNS.
But that leaves problems when the users need to sync up to the AD.(note the company currently only has one DC)

I have tried with creating hosts file on the PC while using google dns
eg
10.8.8.2   dc00.company.local
But still when doing nslookup to dc00/dc00.company.local or 10.8.8.2 it wont look up in the hosts file before it looks in google dns.

Anyone have idea what a possible solutions could be?
0
Infolink_Denmark
Asked:
Infolink_Denmark
2 Solutions
 
Krzysztof PytkoActive Directory EngineerCommented:
The most simple way is to use local hosts file on each worksatation :) File is located in %WINDIR%\SYSTEM32\Drivers\Etc

put there lines in this format

www.facebook.com 127.0.0.1
www.youtube.com 127.0.0.1

and they won't be able to access those pages :) It's a littlee bit work but it can be scripted or used by GPO

Another way is to set up PROXY server based on example on SQUID and configure access rules for user groups.

Regards,
Krzysztof
0
 
AlanConsultantCommented:
Hi,

If you want to block those sites on some *machines* then you could setup the HOSTS files on those machines by putting in entries such as:

127.0.0.1    www.youtube.com

However, note that doing so will block those sites for ALL USERS on those machines.

Alternatively, you could use some dedicated software on the server and / or gateway that would offer more granularity.

If most users are matched to, and use, only one machine, then the HOSTS file solution could be easiest, especially if the total number of machines is not to great (20 would be manageable, 200 would be too much of a pain).

HTH,

Alan.
0
 
Infolink_DenmarkAuthor Commented:
There is about 80-100 users and 10 of them need access to it.
I'm currently thinking of using eg Internet Explorer with a proxy setting and then just tell them to only use that browser to access the websites
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Infolink_DenmarkAuthor Commented:
To Alan3285:

It's the other way around i need to allow it on some "machines" but for all the others it need to blocked
0
 
AlanConsultantCommented:
H Infolink_Denmark,

Same answer (if you go that way).  You set the HOSTS file on the 90 machines that are blocked, and leave it blank (default) on the 10 machines that you want to allow to reach those sites.

You mention using a proxy.  That would work, and if you set up a proxy with authentication and rules, you could make all the machines point there, and handle things at a user level which seems a better solution, but more complicated to set up.

Alan.
0
 
PberSolutions ArchitectCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now