Results 1 to 5 of 5

Thread: Redirect Users

  1. #1


    Member Since
    Oct 14, 2010
    Posts
    28
    Specs:
    MacBook Air 10.7, iMac 21" 10.7
    Question Redirect Users
    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!

  2. #2

    dekan's Avatar
    Member Since
    Mar 16, 2007
    Posts
    756
    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!

  3. #3


    Member Since
    Oct 14, 2010
    Posts
    28
    Specs:
    MacBook Air 10.7, iMac 21" 10.7
    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.

  4. #4

    dekan's Avatar
    Member Since
    Mar 16, 2007
    Posts
    756
    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!

  5. #5


    Member Since
    Oct 14, 2010
    Posts
    28
    Specs:
    MacBook Air 10.7, iMac 21" 10.7
    Thanks for pointing me in the right direction! I'm usually pretty tech savvy, hopefully I'll be able to figure this one out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multibar redirect
    By andrewvivian in forum Switcher Hangout
    Replies: 1
    Last Post: 01-10-2014, 04:27 AM
  2. Redirect when using Chrome
    By federalista in forum Switcher Hangout
    Replies: 2
    Last Post: 09-22-2012, 08:41 PM
  3. MacKeeper redirect
    By Theshizirl in forum Internet, Networking, and Wireless
    Replies: 1
    Last Post: 04-07-2012, 07:00 PM
  4. google redirect issue, not dns or "google redirect malware" issue
    By Billy Play in forum OS X - Apps and Games
    Replies: 7
    Last Post: 11-05-2011, 08:00 PM
  5. facebook redirect
    By croz2803 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 03-14-2009, 12:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •