Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows DNS: How to redirect a webrequest

Posted on 2013-01-11
2
Medium Priority
?
491 Views
Last Modified: 2013-01-11
Hi,
I am trying to ban a few sites that users are going to.  Is it possible to add the site

(say www.badwebsitie.com) to the DNS tables and then have it point to a specific webpage hosted internally that say "This site is banned by policy"?

If so, how do I do.  Thanks.
0
Comment
Question by:NYGiantsFan
2 Comments
 
LVL 23

Accepted Solution

by:
Thomas Grassi earned 2000 total points
ID: 38767093
0
 
LVL 9

Expert Comment

by:gt2847c
ID: 38767113
You can't redirect a DNS query to a specific page, but you can create a common web page at the root of a server/virtual server and have DNS return the IP address of that server when querying a domain you wish to block.  Your server will also have to have a custom 404 error page to catch all the URLs other than root and return the "Banned site" message.

A proxy server setup might be easier to maintain over time, however...  Most proxies including the free ones (Squid) allow for this kind of administrative setup.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Resolve DNS query failed errors for Exchange
Integration Management Part 2
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

772 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