Local site redirection

  • Thread starter Thread starter Aaron Chan
  • Start date Start date
A

Aaron Chan

Hi all,

I know that using the "hosts" file, I can map IPs to host names. What I
would like to ask is how one would go about mapping individual sites
(including paths, etc...) to another site? I.e. blocking/redirecting access
from certain sites

For example, I would like to redirect all these types of addresses to other
addresses or block them entirely (from viewing in IE, other browsers,
etc...):

Domain, path and page:
http://www.domain.com/path/page.html

Domain:
http://www.domain.com

Domain, path:
http://www.domain.com/path

Thanks for any suggestions,
Aaron
 
Aaron Chan said:
Hi all,

I know that using the "hosts" file, I can map IPs to host names. What I
would like to ask is how one would go about mapping individual sites
(including paths, etc...) to another site? I.e. blocking/redirecting
access from certain sites

For example, I would like to redirect all these types of addresses to
other addresses or block them entirely (from viewing in IE, other
browsers, etc...):

Domain, path and page:
http://www.domain.com/path/page.html

Domain:
http://www.domain.com

Domain, path:
http://www.domain.com/path

Thanks for any suggestions,
Aaron


You can't do all of what you want with the hosts file.
There's no real way to do this on the XP client.

The best you can do is to re-direct the host www.domain.com using the hosts
file.
Then you'd need to impliment the rest of what you want to do on the web
server you have re-directed to.

So if you re-directed www.domain.com away from the real site to your own
server, you then need to have your server serve up whatever you want at
/path or /path/page

Alternatively, you might be able to put a proxy in the way of all web
traffic, configure all the clients to go via the proxy, and it could filter
out the sites you want and re-direct them for example to a page saying
'unauthorised for viewing' or whatever you want. I don't really know
details of specific proxies, but you could start by looking at ISA, perhaps
someone in an ISA group coud advise if it can do this kind of thing. I'd
expect it can.

http://www.microsoft.com/isaserver/default.mspx
 
Back
Top