SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Non-Member
    Join Date
    Apr 2006
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cloaking/Masking/Redirecting with php?

    I'd like to set up something where www.mydomain.com/offers/offer1.php (or offer.php?=1) redirects to whatever affiliate link i tell it to while keeping that URL in the address bar the whole time the surfer is browsing the affiliate website.

  2. #2
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    USA, Saratoga Springs, NY
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use an iframe that takes up the whole window.
    They say, "Practice makes perfect," yet they also say, "Nobody's perfect". I don't get it.

  3. #3
    Non-Member
    Join Date
    Apr 2006
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried using frames and iframes but the affiliate i'm redirecting to breaks the frames and shows the true url

  4. #4
    Are You There? KDesigns's Avatar
    Join Date
    Oct 2003
    Location
    Your Monitor
    Posts
    1,147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure you're going to be able to accomplish this without employing some shady methods and if you're looking to build something successful shady methods aren't the way to go.
    ChooseDaily.com - Follow on Twitter
    Top Resources for Web Designers and Developers Every Day!

  5. #5
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if the other website is intentionally breaking out of your frames, then i dont think they want you to put thier pages in frames

    you could try to create a proxy in a sense, where your webserver grabs the html and rewrites all the links and modifies/disables any javascript getting in your way, but this would be quite a project if you want it to be reliable.

    i wouldnt do it. what if you end up proxying a login page? now youre intercepting peoples personal info, and they did not give you permission to do that. not to mention you may break that websites functionality, hurting your affiliates sales.


Bookmarks

Posting Permissions

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