Solved

Blocking sites

Posted on 2013-12-19
2
327 Views
Last Modified: 2013-12-20
I need to block some specific internet sites on a Domain Organizational Unit only can someone help me out? I'm on a Windows 2008-R2 domain.
Thanks in advance.
0
Comment
Question by:narce100
2 Comments
 
LVL 2

Assisted Solution

by:mcj2006
mcj2006 earned 200 total points
ID: 39730496
There has to be a better solution available then the one I'm about to give but here is a quick and dirty way.
Assuming you do not need to retain their current hosts file you could add a group policy for the OU. Add a logon script to User Configuration - windows settings - scripts.

Make and add a .bat file. Example.

hosts.bat

@echo off

set hosts=%systemroot%\system32\drivers\etc\hosts

attrib -r %hosts%
echo 127.0.0.1		siteyouwanttoblock.com>%hosts% 
echo 127.0.0.1		siteyouwantalsoblock.com>>%hosts%
echo 127.0.0.1		site3.com>>%hosts%

Open in new window


edit. forgot to mention. The first site you're blocking needs 1 > this overwrites existing hosts file with a new one. To append and not overwrite the rest need 2 >>
0
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 300 total points
ID: 39732118
You can accomplish this via Group Policy using "Security Zones and Content Ratings". The link below provides all of the steps including screenshots to accomplish this.

Security Zones and Content Ratings GPO - http://www.grouppolicy.biz/2010/07/how-to-use-group-policy-to-allow-or-block-urls/

Personally, i think that if you are wanting to block sites from a business perspective you should be installing some sort of firewall or proxy server which will do the content filtering for you. This way you can monitor traffic and also have instant change control for this. Using group policy will work but it is limited in that you need the clients group policy processing to take place to grab new policies if they have been published.

Will.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now