New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

Redirect Users


Post Reply New Thread Subscribe

 
Thread Tools
sc8ing

 
Member Since: Oct 14, 2010
Posts: 28
sc8ing is on a distinguished road
Mac Specs: MacBook Air 10.7, iMac 21" 10.7

sc8ing is offline
I want to be able to send users to a different site whenever they try to access specific pages through my network. For example, when a user types in google.com they should be sent to localhost/abc.html. I only want this to occur on certain pages, though, and not all. I'm sure there's a way to do this, but Google was no use this time around.

Thanks in advance for any help!
QUOTE Thanks
dekan

 
dekan's Avatar
 
Member Since: Mar 16, 2007
Posts: 756
dekan is a jewel in the roughdekan is a jewel in the rough

dekan is offline
Do you have access to the user's hosts file? On a Mac it's located at /etc/hosts and can be edited via Terminal with the command:

sudo nano /etc/hosts

You can then add a line like:
google.com localhost/abc.html

If you you don't have access to the machines you'd do this through routing on your DNS server/firewall. More information about your network would be required to help our with that.

Hope that helps!

QUOTE Thanks
sc8ing

 
Member Since: Oct 14, 2010
Posts: 28
sc8ing is on a distinguished road
Mac Specs: MacBook Air 10.7, iMac 21" 10.7

sc8ing is offline
Yeah I'm an admin on my mac and could edit that file, but wouldn't that only redirect users that use my computer? When someone brings a laptop to my house, I need them to be redirected to the page, too.

Sorry for using localhost as an example above, I should have used an actual address. That probably made it confusing... Here's a better one: when someone browses to google.com it would send them to abc.com.
QUOTE Thanks
dekan

 
dekan's Avatar
 
Member Since: Mar 16, 2007
Posts: 756
dekan is a jewel in the roughdekan is a jewel in the rough

dekan is offline
Well, everybody accessing the internet through your network is going through your router. A DNS server resolves all requests (like "I want to see google.com") and forwards them to google's server. This means you would have to set up some sort of DNS server in your network and tell your router that everybody has to use this server when they connect to your network.

That's really hard or quite easy - depending on how good your networking knowledge is. Using Google and researching on how to set up a DNS server might be the best start. Good luck!

QUOTE Thanks
sc8ing

 
Member Since: Oct 14, 2010
Posts: 28
sc8ing is on a distinguished road
Mac Specs: MacBook Air 10.7, iMac 21" 10.7

sc8ing is offline
Thanks for pointing me in the right direction! I'm usually pretty tech savvy, hopefully I'll be able to figure this one out.
QUOTE Thanks

Post Reply New Thread Subscribe


« AirPlay issues on mix on LAN and wifi network | Setting up wireless access point »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Video of Siri working perfectly for users with a variety of accents OneMoreThing... Apple Rumors and Reports 7 10-14-2011 08:54 AM
What OSX needs to win Windows users Buzzterrier OS X - Operating System 14 06-11-2009 05:08 PM
Script for adding users i_eat_short_ppl OS X - Operating System 0 06-04-2009 06:01 PM
Sky by Broadband not available to Mac users: please complain TimandJane06 Schweb's Lounge 1 07-09-2006 09:56 AM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 08:33 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?