[GET] Adfly locker - Lock your content with Adfly

Schvamp

Power Member
Joined
Feb 13, 2012
Messages
684
Reaction score
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

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
?>
As I said, I've never used adfly myself and this might get you banned. Dont know how the ToS looks like.
 
I'm pretty sure ****** has something similar built in already although I've never really used them as a publisher.
 
Can't you just use a sub domain and have your own custom domain?

hxxp://adf,ly/publisher/tools#tools-domains
 
Back
Top