1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can these two scripts be combined?

Discussion in 'Cloaking and Content Generators' started by goodlessons, Oct 20, 2009.

  1. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    Hey fellow BHWer's!

    I'm not very html or php savvy yet, but I do have a little knowledge of the basics.

    My question is... Is it possible to combine the two scripts shown below so that the URL in the address bar stays the same but the affiliate link is cloaked?

    Can someone savvy fix the code for us BHWer's?

    HERE IS THE HTML CODE FOR KEEPING THE ADDRESS URL THE SAME...


    HERE IS TWO PHP SCRIPTS USED TO CLOAK YOUR AFFLINK WITH DOUBLE META REFRESH...

    "GOTO PHP CODE"


    "GOTO2 PHP CODE"

    If any of you could help with this or have suggestions by all means please speak up, and if this helped any of you please give rep and click THANKS! :D
     
  2. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    By the way if any of you want to know how to use the "Double Meta Refresh", there is plenty of info online and on the forums. Tutorials Galore! :D
     
  3. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    People are viewing this but no one is commenting or offering a solution.
     
    Last edited: Oct 20, 2009
  4. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    Is it possible to combine these?
     
  5. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    Still no replies?
     
  6. tivowatcher

    tivowatcher Junior Member

    Joined:
    Oct 7, 2008
    Messages:
    132
    Likes Received:
    49
    Sorry - can't easily help.

    Why not try it and see how far you get?
     
  7. pavan_buzz

    pavan_buzz Junior Member

    Joined:
    Jul 25, 2009
    Messages:
    169
    Likes Received:
    115
    Occupation:
    Freelancer
    Location:
    Internet
    So what do u want the script to do?? Tell me that clearly.. Cause, the php script actually, checks whether the referrer is blank. If it is blank, then it sends the user to affiliate link, and if it is not, it sends to ur address.. But the html file displays the affiliate link.. So what do u want the combined script to do.. I am not an expert but i can help u with all the wisdom i have.. :) ..
     
  8. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    I want the script to cloak my afflink and show my url in the address bar.

    If I use the php script it shows a different url than what the visitor clicked on.

    If I use the url script then my afflink is exposed in the source code, but the url in the address bar is my url.

    I want a script that does both.

    I hope that helps. :)
     
  9. pavan_buzz

    pavan_buzz Junior Member

    Joined:
    Jul 25, 2009
    Messages:
    169
    Likes Received:
    115
    Occupation:
    Freelancer
    Location:
    Internet
    So what does the php script do actually.. It changes the referrer to ur site and then, it sends to the affiliate link right.. Now whats the problem there mate??
     
  10. CyrusVirus

    CyrusVirus BANNED BANNED Premium Member

    Joined:
    Aug 20, 2009
    Messages:
    1,110
    Likes Received:
    686
    just throwing this out there. but you could do something along the lines of upload the scripts seperatly, lets say
    yoursite.com/script1.php
    yoursite.com/script2.php

    and when you want to use it you can have
    yoursite.com/SCRIPT.php
    do this number

    {include file='script1.php'}
    {include file='script2.php'}

    just an idea
     
    • Thanks Thanks x 1
  11. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    The problem is that when someone clicks on my url link it changes the url in the address bar to a different url than my visitor clicked on.

    Example:
    The visitor clicks on http://www.My Url.com.
    but...
    when they are redirected to the product page it shows...
    http://www.My Promoted Product.com/affiliate numbers and letters

    So...

    In the address bar I want it to continue to say www. My Url.com
    but still be cloaked.

    The html script I originally posted will do this, but my afflink is still visible if you click View>Page Source.
     
  12. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    Thanks for the reply, but as I mentioned before my php/html script knowledge is limited.

    Where would I cut and paste this in, or would you mind cutting and pasting it in and then reposting here?

    Thanks again! :D
     
  13. CyrusVirus

    CyrusVirus BANNED BANNED Premium Member

    Joined:
    Aug 20, 2009
    Messages:
    1,110
    Likes Received:
    686
    there is a thanks button for this buddy. i would appreciate it, pm sent
     
    • Thanks Thanks x 1
  14. goodlessons

    goodlessons Newbie

    Joined:
    Jun 26, 2009
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Musician
    Location:
    Florida
    Home Page:
    I just thought of an idea! :D

    Is it possible to put something in the script to make it impossible to view the source code?
     
  15. pavan_buzz

    pavan_buzz Junior Member

    Joined:
    Jul 25, 2009
    Messages:
    169
    Likes Received:
    115
    Occupation:
    Freelancer
    Location:
    Internet
    Nope that is not possible.. Well now all u can do is, rent a domain, and redirect it to ur sales page.. so u wont get ur aff link seen.. simple.. :) ..
     
  16. sirtaxster

    sirtaxster Newbie

    Joined:
    Oct 11, 2009
    Messages:
    46
    Likes Received:
    4

    Yep. This is pretty much the best way to cloak your affiliate link.

    Well the simplest that is.

    Cheers.