How can I redirect requests to one website in my Wi-Fi to another site?

18,079

Solution 1

Those things are simple to do for someone who understands basic networking.

How and what you can do (and how reliably you can do it) will depend on what equipment you have available, not all home wi-fi routers are created equal in that regard. Some can be given custom firmware like Tomato or DD-WRT which give them extra features. The ability to redirect (or restrict) sites would be one such feature.

You can buy a Wi-Fi router that offers those features (or can be 'flashed') but you'd still need to configure it and this sounds like where you'll come unstuck. So, the best advice is to ask someone who knows what they're doing to set it up for you. Most techies are up for a little mischief on a home network in return for a beer or two.

Solution 2

One of the easiest (and easiest to bypass) methods to do this is to set up a dns server that gives alternate address to the censored website that point at a specially configured webserver that redirects the traffic.

another method is a layer 3 switch and a transparent proxy.

Share:
18,079

Related videos on Youtube

Minedude78910
Author by

Minedude78910

I am a person. Are you? These are the types of questions I hope get answered. Help me by answering meh questions. Don't downvote. It's not nice.

Updated on September 18, 2022

Comments

  • Minedude78910
    Minedude78910 over 1 year

    For example, whenever someone tries to go to apple.com, I want them to go to another website, but just when someone connects to my Wi-Fi. Maybe by using dnsmasq? Please don't be afraid to ask for clarification.

    • Minedude78910
      Minedude78910 over 10 years
      I.... don't understand that at all. How does that affect the network...
    • nerdwaller
      nerdwaller over 10 years
      Are you trying to have them login to your network, or just disallow access to certain sites?
    • Robert Harvey
      Robert Harvey over 10 years
      For starters, you haven't really given us any information whatsoever on the reasoning behind this. Any answer provide you is therefore going to be merely a speculative stab at what we think you might actually want.
    • Minedude78910
      Minedude78910 over 10 years
      Its sorta like a joke, I am making an alternate version of Apple.com. I would like them to be sent to that when they go on Apple.com, but only for my wifi network. So neither @nerdwaller and RobertHarvey, heres your reasoning :)
    • Robert Harvey
      Robert Harvey over 10 years
    • David Schwartz
      David Schwartz over 10 years
      Search "captive portal".
    • Minedude78910
      Minedude78910 about 10 years
      No, David it doesn't have to do with that, as I want them to be able to use it normally except for one page :)
  • Minedude78910
    Minedude78910 over 10 years
    What does that mean, and how would one attempt this? It technically isn't censoring, it is just redirecting a url (such as Apple.com)
  • hildred
    hildred over 10 years
    I am not aware of any shrink wrapped packages to do this from a point and click, but it can be built with apache and bind. I would recommend starting with the book dns and bind from oriely to get started.
  • Minedude78910
    Minedude78910 over 10 years
    I have no idea how to do any of the things any of you suggest, is their a simple way to do this, maybe buy a special box or something?
  • hildred
    hildred over 10 years
    learnable, but not simple.
  • Minedude78910
    Minedude78910 over 10 years
    I want to use dnsmasq. Is there a way to do it, because it currently isn't working :).
  • James Snell
    James Snell over 10 years
    As per the answer my best advice is "ask someone who knows what they're doing to set it up for you."
  • Minedude78910
    Minedude78910 over 10 years
    I'm asking you, lol