Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
I would like to redirect all website traffic to a single domain www.mydomain.com for a simple reason that im making a PC available to a large number of users solely to be used for visiting www.mydomain.com
I want to keep the PC as simple as possible, don't want user accounts on their, so don't want to join it to AD.
Can I do something as simple as edit the hosts file for something like * www.mydomain.com ?
|
VrsTurbo
Premium Member
Registered: 8th Jun 10
User status: Offline
|
quote: Originally posted by Bart
I would like to redirect all website traffic to a single domain www.mydomain.com for a simple reason that im making a PC available to a large number of users solely to be used for visiting www.mydomain.com
I want to keep the PC as simple as possible, don't want user accounts on their, so don't want to join it to AD.
Can I do something as simple as edit the hosts file for something like * www.mydomain.com ?
What FW? IIRC you can do it via a .pac file
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Bart
Can I do something as simple as edit the hosts file for something like * www.mydomain.com ?
You can manipulate the routing table using the route command under windows but you're dealing with IP addresses only (website would need to be reachable via an IP address).
Otherwise you'd need to use a DNS and apply routing rules to that.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by VrsTurbo
IIRC you can do it via a .pac file
You sure?
I thought PAC files just allow you to script conditions for redirecting traffic to a proxy (or not/'direct'). Can't say i've ever come across the ability to redirect to a specific hostname within a PAC; if you can though, then it'll save a lot of arseache.
[Edited on 24-02-2014 by Dom]
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Don't understand why you can't do this in your DNS snap in?
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
quote: Originally posted by pow
Don't understand why you can't do this in your DNS snap in?
Please elaborate how?
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
It's internal yes?
Scrap that I understand what you're doing now. A PAC file would work, redirect www.mydomain.com to www.mydomain.com and everything else to the loop back address or something. Host the PAC file locally and point IE to it. Might be worth manually configuring the DNS addresses to loop back as well?
The other thing you can do to help this is start internet explorer in kiosk mode.
[Edited on 23-01-2014 by pow]
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
never even heard or used PAC files before.
That sounds too complicated already
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
actually, it can be done with Nod32:
http://kb.eset.com/esetkb/index?page=content&id=SOLN2844
not the most cleverist, and someone IT related might be able to bypass them.
I can password protect the Nod32 settings, so that'll be good enough I think
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by pow
A PAC file would work, redirect www.mydomain.com to www.mydomain.com and everything else to the loop back address or something.
Any more info on redirects within PAC files?
Past experience is that you can't (it's designed for dealing with proxy redirections not hostnames) and Google seems to suggest the same.
Still think a local/external DNS server is your only option if you're wanting to redirect all to a hostname/domain. Or change routing table if the site is accessible via IP.
Edit - If you're wanting to display your website on a PC for guests then i'd be looking into running the system (and browser) in kiosk mode; plenty of tutorials if you Google.
Edit 2 - Quick Google - http://sysadministrivia.blogspot.co.uk/2012/05/creating-kiosk-machine-with-windows-7.html
[Edited on 23-01-2014 by Dom]
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
Looked into kiosk mode, in Win8 it's all tied in with user accounts (Microsoft not local accounts), so it's a bit messy, as I want a stand alone machine without any account info.
I'm pretty happy with what I have now, but a type of kiosk mode does look intriguing.
[Edited on 23-01-2014 by Bart]
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Bart
Looked into kiosk mode, in Win8 it's all tied in with user accounts (Microsoft not local accounts), so it's a bit messy, as I want a stand alone machine without any account info.
You mean assigned access?
You can use Win8 with local accounts (i do), same as other Win OS's, and assigned access can be applied to local accounts - so you shouldn't have any issues setting it up
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Skimmed this but sounds like it will do what you want
http://smallbusiness.chron.com/block-websites-except-one-56338.html
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
I do it at work with our intranet and the PAC file... I'll dig it out tomorrow. It's a dirty hack though really!
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
This should work:
function FindProxyForURL(url, host)
{
// don't proxy example.com:
if (shExpMatch(host, "example.com"))
{
return "DIRECT";
}
// All other requests go through fake proxy server
return "PROXY proxy.example.com:8080;
}
Assuming there is no proxy in place - it'll redirect any other traffic to a proxy that doesn't exist so users will get a proxy server not responding page. Set the proxy in IE and lock it all down.
|