Hey fellow BHWer's!
I'm not very html or php savvy yet, but I do have ...
-
Can these two scripts be combined?
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...
<html>
<head>
<script>window.status = ' ';</script>
<meta http-equiv="Content-Language" content="en-us">
<title>Welcome!</title><meta name="keywords" content="KEYWORDS GO HERE"/>
<meta name="description" content="DECRIPTION GOES HERE"/>
</head>
<frameset border="0" frameborder="0" marginleft="0" margintop="0" marginright="0" marginbottom="0" rows="100%,*">
<frame
src="HTTP://WWW.YOUR-AFFILIATE-LINK-GOES-HERE.COM"
scrolling="auto" frameborder="no" border="0" noresize>
<frame topmargin="0" marginwidth="0" scrolling="no" marginheight="0" frameborder="no" border="0" noresize>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
HERE IS TWO PHP SCRIPTS USED TO CLOAK YOUR AFFLINK WITH DOUBLE META REFRESH...
"GOTO PHP CODE"
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=HTTP://WWW.YOUR-WEB-ADDRESS.COM/goto2.php\">";
?>
"GOTO2 PHP CODE"
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=HTTP://WWW.YOUR-AFFIATE-LINK-HERE.COM\">";
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=HTTP://WWW.YOUR-WEB-ADDRESS-HERE.COM\">";
}
?>
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!
-
-
-
Re: Can these two scripts be combined?
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!
-
-
Re: Can these two scripts be combined?
People are viewing this but no one is commenting or offering a solution.
Last edited by goodlessons; 10-20-2009 at 04:23 PM.
-
-
Re: Can these two scripts be combined?
Is it possible to combine these?
-
-
Re: Can these two scripts be combined?
-
-
Re: Can these two scripts be combined?
Sorry - can't easily help.
Why not try it and see how far you get?
-
-
Re: Can these two scripts be combined?
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..
..
-
-
Re: Can these two scripts be combined?

Originally Posted by
pavan_buzz
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..

..
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.
-
-
Re: Can these two scripts be combined?
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??
-
-
Re: Can these two scripts be combined?
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
-
The Following User Says Thank You to CyrusVirus For This Useful Post:
-
Re: Can these two scripts be combined?

Originally Posted by
pavan_buzz
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??
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 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.
-
-
Re: Can these two scripts be combined?

Originally Posted by
CyrusVirus
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 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!
-
-
Re: Can these two scripts be combined?
there is a thanks button for this buddy. i would appreciate it, pm sent

Originally Posted by
goodlessons
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!

-
The Following User Says Thank You to CyrusVirus For This Useful Post:
-
Re: Can these two scripts be combined?
I just thought of an idea! 
Is it possible to put something in the script to make it impossible to view the source code?
-
-
Re: Can these two scripts be combined?
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..
..
-
-
Re: Can these two scripts be combined?

Originally Posted by
pavan_buzz
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..

..
Yep. This is pretty much the best way to cloak your affiliate link.
Well the simplest that is.
Cheers.
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks