Is there any way to redirect a website request?

Discussion in 'Software' started by vaosu, Mar 19, 2006.

  1. vaosu

    vaosu Private E-2

    I need to make it so that any time my computer tries to go to a website, say http://www.google.com/ in this example, it is redirected to an html file or a php file. I don't know any way to do this. I tried looking at DNS programs, but didn't really kow what to do with them. If anyone has any insight, please let me know. Thanks


    EDIT: Would it be like spoofing a packet?
     
  2. goldfish

    goldfish Lt. Sushi.DC

    In my opinion the easiest way to do this would be to setup an Apache web server on your PC, then using the Hosts file to redirect to localhost (so instead of loading http://google.com, you'd really be loading http://localhost).

    Then use a .htaccess file to redirect any request to a particular HTML file.

    If you decide to go down that route, I'd be more than happy to help out with any specifics :)

    EDIT: No, it wouldn't be anything like spoofing a packet
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds