[Method] Autopilot Content Locking Warez Download on the Fly

rastan

Regular Member
Joined
Aug 12, 2009
Messages
391
Reaction score
125
Hi Bros!

Here is my giveback to the community. First i have to say that this method is still under construction and it will not make you rich. But it's autopilot and this is what I'm looking always for. Also you can copy and implement this method for something else while i think this method is unique and good.

OK here we go... In this method we will scrape links from warez sites. In my scraper i'm fetching from pastebin .com/u/DownloadLinkz which is actually not a warez site but this guy is posting links consistently. For example, we have scraped a download link which is looking something like this:

Code:
[URL]http://uploaded.net/file/vzy379vd/Bob_Marley_And_The_Wailers_-_Live_Forever_September_23_The_Stanley_Theatre_Pittsburgh_PA_muzyka.rar[/URL]

with title Bob_Marley_And_The_Wailers_-_Live_Forever_September_23_The_Stanley_Theatre_Pittsburgh_PA_muzyka

Then we will encode the urls and titles so that they are not readable by users. Url will be changed to something like this:

Code:
[URL]http://www.yourdomain.com/dl.php?lb=aHR0cDovL3VwbG9hZGVkLm5ldC9maWxlL3Z6eTM3OXZkL0JvYl9NYXJsZXlfQW5kX1RoZV9XYWlsZXJzXy1fTGl2ZV9Gb3JldmVyX1NlcHRlbWJlcl8yM19UaGVfU3RhbmxleV9UaGVhdHJlX1BpdHRzYnVyZ2hfUEFfbXV6eWthLnJhcg==&tb=Qm9iIE1hcmxleSBBbmQgVGhlIFdhaWxlcnMgTGl2ZSBGb3JldmVyIFNlcHRlbWJlciAyMyBUaGUgU3RhbmxleSBUaGVhdHJlIFBpdHRzYnVyZ2ggUEEgbXV6eWth[/URL]

While 'lb' is the link and 'tb' is the title. AS you can see that this link is really long we will short it with bit.ly... Now we have http://bit.ly/1210FiI which is our final url.

The best part of this method is that you don't have to create any page on the server while the dl.php will create content locked pages on the fly from the url parameters itself. This means all data needed for your content locked page is already embedded in the accessed url. The download page will bring up content locked page to the user who wants to download the stuff.

Then we will create a rss feed from the bit.ly urls and post them via twitterfeed, dlvr or any other feed service to twitter or anywhere else you can post to spread the links as much as possible to gain hits and profit.


Ok, this is the method now we will take action to make it real.

Please download these files first, we will need them later:

FeedCreator zip here http://www.bitfolge.de/index.php?op...e&id=67:feedcreator&catid=38:eigene&Itemid=59

JS packer zip file here: http://joliclic.free.fr/php/javascript-packer/en/

connect.php:
PHP:
<?php
//===========================================================================
//===========================================================================

$mysql_username="root";
$mysql_password="root";
$mysql_database="localbot";

$proxy_host="";
$proxy_port="";
$proxy_loginpassw="login:password";

$yourdomain="http://www.somesite.com";

$bitapikey="bit.ly api key";
$bitlogin="bit.ly login";


$content_locker_code="paste here";

//===========================================================================

$agent  = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6";

//===========================================================
//===========================================================

mysql_connect (localhost, $mysql_username, $mysql_password);
mysql_select_db ($mysql_database);

//===========================================================
//===========================================================
?>


Edit conncet.php file with your own data.

Enter your mysql username, password and database name. If you don't have a database already running at your host please create one with cpanel.

Enter your private proxy settings so that your real ip won't get banned for scraping content. Or leave it for blank for using real ip.

Enter your domain name where you will running this method.

Register an account at bit.ly and enter api key and login.

Enter your CPA content locker JS script at $content_locker_code variable.


setup.php:
PHP:
<?php

include ('connect.php');

mysql_query ("DROP TABLE IF EXISTS pbwarez") or die ("Unable to DROP TABLE pbwarez");

mysql_query ("CREATE TABLE pbwarez (
id INT UNSIGNED not null auto_increment,
dat1 TINYINT UNSIGNED not null,
dat2 TINYINT UNSIGNED not null,
dat3 varchar (255) not null,
dat4 varchar (255) not null,
dat5 varchar (64) not null,
PRIMARY KEY (id),
UNIQUE INDEX (dat4))
ENGINE = MYISAM")
or die ("Unable to CREATE TABLE pbwarez");

mysql_close();

print "Table created!";

?>


scrape.php
PHP:
<?php

include ("connect.php");
include ("feedcreator.class.php");

//-----------------------------------------------------------------------------------------------------------
//============================================================================================================= get latest entry from pastebin/u/DownloadLinkz

$url="http://pastebin.com/u/DownloadLinkz";

$contents=getpage($url,$proxy_port,$proxy_host,$proxy_loginpassw);

$masterxp0=explode ("everybody can see this paste.\" alt=\"\" border=\"0\" /> <a href=\"/", $contents);
$masterxp1=explode ("\">", $masterxp0[1]);

$pbcode=trim($masterxp1[0]);

print $pbcode."\r\n";


$url="http://www.pastebin.com/".$pbcode;
$contents=getpage($url,$proxy_port,$proxy_host,$proxy_loginpassw);

$master0 = explode ("<ol>", $contents);
$master1 = explode ("</ol>", $master0[1]);

$all=$master1[0];
$all=str_replace ("\r","",$all);
$all=str_replace (" ","",$all);
$all=strip_tags($all);

$allxp = array();
$allxp = explode ("\n", $all);

$downloadtitle="";
$downloadlinks="";


for($sr=0;$sr<sizeof($allxp);$sr++){

$typ=0;

$line=$allxp[$sr];
$line=str_replace ("\r","",$line);
$line=str_replace ("\n","",$line);
$line=trim($line);


if ($line == "") $typ=1;

if (strtolower(substr($line,0,7)) == "http://" AND $downloadlinks=="") { $typ=2; $downloadlinks=$line; }

if ($typ==0) {
$line = str_replace ("_"," ",$line);
$line = str_replace ("-"," ",$line);
$line = preg_replace('/\s\s+/','',trim($line));
$line = trim($line);
$downloadtitle=$line;
}


if ($typ==1 AND $downloadtitle <> "" AND $downloadlinks <> "") {

$lb=base64_encode($downloadlinks);
$tb=base64_encode($downloadtitle);

$longurl="$yourdomain/dl.php?lb=$lb&tb=$tb";

$bitlink=getbitlink($longurl,$bitapikey,$bitlogin);

print $downloadtitle." ".$downloadlinks." ".$bitlink."\r\n";

$downloadtitle = addslashes ($downloadtitle);
$downloadlinks = addslashes ($downloadlinks);
$bitlink = addslashes ($bitlink);


$insresult=mysql_query("INSERT INTO pbwarez (dat1,dat2,dat3,dat4,dat5) VALUES ('0','0','$downloadtitle','$downloadlinks','$bitlink')") or print ("skipped");

$downloadtitle="";
$downloadlinks="";

} //if

} //for sr

//=============================================================================================================
//-------------------------------------------------------

$rss = new UniversalFeedCreator();
$rss->useCached();
$rss->title = "Free Downloads";
$rss->description = "Free Downloads";
$rss->link = $yourdomain;

$rss->syndicationURL = "";

$result=mysql_query("SELECT * from pbwarez ORDER BY id DESC LIMIT 50") or die ("Invalid rss query");
$rows=mysql_num_rows($result);


while ($data = mysql_fetch_object($result)) {
$item = new FeedItem();

$title = $data->dat3;
$title = html_entity_decode($title);
$title = str_replace ("'","'",$title);

    $item->title = $title;
    $item->link = $data->dat5;
    $item->description = $title." download";
    $item->date = time();
    $item->source = "";
    $item->author = "";
    $rss->addItem($item);
}

$rss->saveFeed("RSS1.0", "rss.xml", false);

//-------------------------------------------------------
//=============================================================================================================
//======================================================================================
//======================================================================================


exit();

//======================================================================================
//======================================================================================
//======================================================================================

function getpage($url,$proxy_port,$proxy_host,$proxy_loginpassw) {

global $agent;

print $url."\r\n";

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,$url);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_USERAGENT, $agent);
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port);
curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');
curl_setopt($ch, CURLOPT_PROXY, $proxy_host);
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxy_loginpassw);

$curl_output = curl_exec ($ch);
curl_close($ch);

return $curl_output;

}
//======================================================================================
//====================================================================================
//===========================================================================
function getbitlink($longurl,$bitapikey,$bitlogin){

$bitlink=urlencode($longurl);

$url = "http://api.bit.ly/shorten?version=2.0.1&longUrl=$bitlink&login=$bitlogin&apiKey=$bitapikey&format=json&history=1";

$s = curl_init();
curl_setopt($s,CURLOPT_URL, $url);
curl_setopt($s,CURLOPT_HEADER,false);
curl_setopt($s,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($s);
curl_close( $s );

$obj = json_decode($result, true);

return $obj["results"]["$longurl"]["shortUrl"];

}

//======================================================================================
//======================================================================================
//====================================================================================


?>



dl.php:
PHP:
<?php

include ("connect.php");

//-----------------------------------------------

$lb=base64_decode($_GET["lb"]);
$tb=base64_decode($_GET["tb"]);


$script="top.location.href='http://anonym.to/?$lb'";

$encoding = 62;


  require 'class.JavaScriptPacker.php';
  $t1 = microtime(true);
  $packer = new JavaScriptPacker($script, $encoding, $fast_decode, $special_char);
  $packed = $packer->pack();
  $t2 = microtime(true);

  $originalLength = strlen($script);
  $packedLength = strlen($packed);
  $ratio =  number_format($packedLength / $originalLength, 3);
  $time = sprintf('%.4f', ($t2 - $t1) );

$spacked=htmlspecialchars($packed);


$contents="
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<title>$tb</title>
<style type=\"text/css\">
.f1 { font-family: Verdana, Tahoma, Helvetica, Arial; font-size: 18px; font-weight: normal; color: #0043e0; text-decoration: none }
.f3 { font-family: Verdana, Tahoma, Helvetica, Arial; font-size: 14px; font-weight: normal; color: #990000; text-decoration: none }
.f4 { font-family: Verdana, Tahoma, Helvetica, Arial; font-size: 10px; font-weight: normal; color: #0043e0; text-decoration: none }
</style>
".$content_locker_code."
<script language=\"JavaScript\" type=\"text/javascript\">
<!--
function dl() {
$spacked
}
-->
</script>
</head>
<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\">
<table width=\"770\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\">
  <tr>
    <td height=\"100\" align=\"center\" valign=\"bottom\" class=\"f1\">$tb</td>
  </tr>
  <tr>
    <td height=\"50\" align=\"center\" valign=\"bottom\" class=\"f3\">$fb [$sb]</td>
  </tr>
  <tr>
    <td height=\"50\" align=\"center\" valign=\"bottom\"><input onClick=\"dl()\" type=\"submit\" name=\"submit\" value=\"DOWNLOAD FILE\" style=\"font-family: Verdana; font-weight: bold; font-size: 18px; color: #009000; width:250px; height: 32px; border: 1px inset; border-color: #000000; background-color: #eaeaea;\" /></td>
  </tr>
</table>
</body>
</html>
";

print $contents;



?>


rss.xml:
PHP:
this will be rss file


Upload now all files to server:

connect.php
setup.php
dl.php
scrape.php
rss.xml
only 'class.JavaScriptPacker.php' from JS packer zip
only 'feedcreator.class.php' from FeedCreator zip



Now run setup.php file to create table. After you created the table please delete the file from server.

Change owner of rss.xml to 'nobody:nobody' or just give this file write permission so that we don't get permission denied failure.

Run scrape.php manually from web to see that everything is OK and see that the xml file has been created. If everyting is OK create cron job so that everything will be running on autopilot. Let the job running every five minutes to create thousands of downloading links with ease.

Here is a tip. Add some banners to dl.php to gain some extra bucks and make it more look like a file sharing service. Also if you like you can implent adfly api instead of bitly but i'm not sure if they support links which are bigger than 300-500 chars because not all shortener service support this.

Hope you liked this method. If you have any questions please post on thread while i don't have much time for PM everybody individual, thanks.

Rastan
 
Sorry but i could not find that above php and xml files! are they located in zipped files?
 
Last edited:
Sorry but i could not find that above php and xml files! are they located in zipped files?


create files with the names i stated and copy/paste the codes into them. if you wanna i can create a zip with all files included and share it ?
 
create files with the names i stated and copy/paste the codes into them. if you wanna i can create a zip with all files included and share it ?

Hello rastan and thanks for your answer
you'll be kind if you do that:drinking2
 
I am new to internet marketing, and even more to programming.
From what i understand i need my own domain for this?
 
Got few errors at the top but it created the xml file.

Code:
http://pastebin.com/u/DownloadLinkz 
[B]Warning[/B]:  curl_setopt() [[URL="http://ddcchipsgiveaways.tk/function.curl-setopt"]function.curl-setopt[/URL]]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [B]/home/scrape.php[/B] on line [B]143[/B]
kPhy2y8u [URL]http://www.pastebin.com/kPhy2y8u[/URL] 
[B]Warning[/B]:  curl_setopt() [[URL="http://ddcchipsgiveaways.tk/function.curl-setopt"]function.curl-setopt[/URL]]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [B]/home/scrape.php[/B] on line [B]143[/B]

And I couldn't manage to integrate my locker, if that's alright I sent you pm with my networks js code to see if I'm doing it right.

Thanks for the share!
 
Last edited:
just disable this line with double slash in scrape.php

Code:
[COLOR=#000000][COLOR=#0000BB]//curl_setopt [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_FOLLOWLOCATION[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);[/COLOR][/COLOR]


Got few errors at the top but it created the xml file.

Code:
http://pastebin.com/u/DownloadLinkz 
[B]Warning[/B]:  curl_setopt() [[URL="http://ddcchipsgiveaways.tk/function.curl-setopt"]function.curl-setopt[/URL]]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [B]/home/scrape.php[/B] on line [B]143[/B]
kPhy2y8u [URL]http://www.pastebin.com/kPhy2y8u[/URL] 
[B]Warning[/B]:  curl_setopt() [[URL="http://ddcchipsgiveaways.tk/function.curl-setopt"]function.curl-setopt[/URL]]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [B]/home/scrape.php[/B] on line [B]143[/B]

And I couldn't manage to integrate my locker, if that's alright I sent you pm with my networks js code to see if I'm doing it right.

Thanks for the share!
 
Hello rastan and thanks for your answer
you'll be kind if you do that:drinking2

I'll send the zip later from my office, I'm at home now.


I am new to internet marketing, and even more to programming.
From what i understand i need my own domain for this?

You can run this from a free hosting which supports php+mysql. But I don't recommend a free one because they will limit you or just ban you when they will.
 
Nice little method here :) Just wondering if you've been using it yourself with any success?

Also, this allows for quite a bit of scaling and automating even further so anybody trying it out should do a little thinking outside of the box and you'll bank hard!
 
I could think of a dozen cool twist from this method. Brilliance! Thanks so much rastan!
 
Nice little method here :) Just wondering if you've been using it yourself with any success?

Also, this allows for quite a bit of scaling and automating even further so anybody trying it out should do a little thinking outside of the box and you'll bank hard!

Yes I'm doing this myself, still in testing mode but I can say it's working. The only thing is that I don't have much traffic. If you can drive enough & the right traffic there's no reason for not banking.
 
35355877.jpg
 
great share
you can easily add your own twist to bank hard
 
Back
Top