Schvamp
Power Member
- Feb 13, 2012
- 684
- 553
I have never used adfly myself but here is a very basic script on how to lock your content with a adfly link.
1) Copy the script and save it as something.php - Let's say your URL now is http://example.com/something.php
2) Go to adfly and get a adfly link to http://example.com/something.php
3) Update the file and replace " http://******/xxxx " with your adfly link and " http://finalpage.com " with your locked page
a) If a user visits http://example.com/something.php they'll be redirected to your adfly
b) If the visitor comes from adfly to http://example.com/something.php they'll be redirected to http://finalpage.com
As I said, I've never used adfly myself and this might get you banned. Dont know how the ToS looks like.
1) Copy the script and save it as something.php - Let's say your URL now is http://example.com/something.php
2) Go to adfly and get a adfly link to http://example.com/something.php
3) Update the file and replace " http://******/xxxx " with your adfly link and " http://finalpage.com " with your locked page
a) If a user visits http://example.com/something.php they'll be redirected to your adfly
b) If the visitor comes from adfly to http://example.com/something.php they'll be redirected to http://finalpage.com
Code:
<?
$your_adfly = "http://******/xxxx"; // Your adfly link that points to this file
$to = "http://finalpage.com"; // Send visitor to your site
$referer = $_SERVER['HTTP_REFERER'];
if ( $referer == $your_adfly ){
echo '<META HTTP-EQUIV="Refresh" CONTENT="0; URL='.$to.'" />';
}else{
echo '<META HTTP-EQUIV="Refresh" CONTENT="0; URL='.$your_adfly.'" />';
}
//By the awesome Schvamp @BHW
?>