Browser URL Spoof

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lukasbradley
    Registered User
    • Jun 2003
    • 6

    #1

    Browser URL Spoof

    What is the best way to spoof a client-side browser URL?

    This is not a malicious intent, and will have the consent of both websites. Assume a media package is being held on site B, in a subdirectory. We want the end user to think they are on site A (the client), while actually viewing the full content on site B.

    For example, we need

    http://siteA.com/look

    to spoof to

    http://siteB.com/some/where/far/down/here

    without using DNS entries, or redirect scripts.

    Creating a frameset HTML on siteA is an option, but we are looking for a better solution. Any ideas?

    Lukas
    ...and my wee-wee is freakishly small, it's my worth as a person that is constantly in flux.
  • Apollo
    Confirmed User
    • Sep 2002
    • 433

    #2
    Using apache's rewrite function would work for you if all the links on site B are relative. hahahahahahas is another alternative (although you already mentioned that).

    Option 3 would be to use a server side script to grab the page from site B and then display it to your user.

    -----------
    Free automated way to rotate sponsor gallery thumbnails on your sites
    TgpWizards - Free TGP Gallery submission system

    Comment

    • lukasbradley
      Registered User
      • Jun 2003
      • 6

      #3
      What is hahahahahahas ? Or is that an admin blanking out something you wrote?

      Lukas
      ...and my wee-wee is freakishly small, it's my worth as a person that is constantly in flux.

      Comment

      • SandraB
        Confirmed User
        • Dec 2002
        • 147

        #4
        If you use Linux/Apache - You could symlink (symbolic link) the catalog
        http://siteB.com/some/where/far/down/here
        to
        http://siteA.com/look ie http://siteA.com/look/here

        Very easy...

        Good luck

        Click here to buy Great content in all niches!

        Comment

        • gavster
          Registered User
          • Jun 2003
          • 27

          #5
          You could also use a simple PHP script to parse the URL and deliver your content accordingly.

          If you are using apache, you can add this to your virtual host container in httpd.conf:

          <Location /look>
          ForceType application/x-httpd-php
          </Location>

          Then name your php script "look" (just look, not look.php - keep the file extension off) and drop that into your document root.

          Apache will execute that script anytime the resource http://www.yourdomain.com/look - or anything under it like http://www.yourdomain.com/look/over/here - is requested.

          In the script, you can do a simple redirect, or just build a dynamic page with the content from site B, whatever. It's all handled in your script, leaving a nice, clean URI for the surfers to see

          =0)

          Comment

          Working...