Need for an anomyizer script

oliver

Newbie
Joined
Sep 27, 2008
Messages
11
Reaction score
0
Hello guys,

It seems that there's fuckers actively scanning filesharing websites of my niche with a bot, and sending DMCA reports with all the found links.
You know the hosts, they never take time to really study if there's a problem, they prefer to mass-delete the reported links.

Would you guys know if I can find a php script that would :
- transform any URL I give him into another URL not mentioning the initial URL (for instance, if my website is mywebsite.com and I give him rapidshare.com/123456789/filename.zip, it would create mywebsite.com/azerty123)
- insert a temporary landing page before the real link is shown. Meaning that when someone clicks my target=_blank link, it loads itself in a window showing a "loading..." text during 2-3 seconds before the real link is automatically loaded to replace the "loading..." page.

That way, a bot scanning my website for keywords would find no matching keyword, and even if it's still configured to follow suspect links, it would only load pages containing a "loading..." text.

I know that there are services almost like that already (for instance link-protector.com) , but you never know, with 3rd party websites. I want my own script for that, installed and working on my own hosting account.

Thanks a LOT if you know how I could find it, guys :D

Oliver
 
- transform any URL I give him into another URL not mentioning the initial URL (for instance, if my website is mywebsite.com and I give him rapidshare.com/123456789/filename.zip, it would create mywebsite.com/azerty123)

Code:
CREATE DATABASE `IP_db` ;
CREATE TABLE `Ip` (
  `Id` int(11) NOT NULL auto_increment,
  `Ip` char(15) NOT NULL default '',
  PRIMARY KEY  (`Id`)
) TYPE=MyISAM AUTO_INCREMENT=1

PHP:
<?php

$link=$_POST['Link'];

$url=$_GET['i'];



function form()

    {

        echo('<form action="./index.php" method="POST">

            <input type="text" name="Link" />LINK

            <button type="submit">CREATE</button></form>');

    }



function code($limit)//this function will be generating random string

    {

        return substr(md5(date("d.m.Y.H.i.s").rand(1,1000000)) , 0 , $limit);

    }    

/////////////////////////////////////////////////////



if ($url) //if someone use short url

    {

    $sql = mysql_connect ('server', 'user','password')or die(mysql_error();//connect to database

    $baza=mysql_select_db('Short_url_db')or die(mysql_error());//chose database

    $sql_query = mysql_query("SELECT * FROM Short_url WHERE Short='$url'")or die(mysql_error());//check short_url in database



    while($r = mysql_fetch_assoc($sql_query)) 

        {

        $go_to=$r['Link'];

        }

    echo '<script>window.location="'.$go_to.'";</script>';

    }



else

    {

    if($link)

        {

        $sql = mysql_connect ('server', 'user','password')or die(mysql_error();//connect to database

        $baza=mysql_select_db('Short_url_db')or die(mysql_error());//chose database

        

        $short=code(6);

        $sql_query = mysql_query("INSERT INTO Short_url VALUES ('','$short','$link')")or die(mysql_error());//save short_url and link in database

        mysql_close($sql);//disconnect with database

        echo "http://yourserver.com/$short";

        }

    else

        {

        form();

        }

    }    

?>

- insert a temporary landing page before the real link is shown. Meaning that when someone clicks my target=_blank link, it loads itself in a window showing a "loading..." text during 2-3 seconds before the real link is automatically loaded to replace the "loading..." page.

I think that you can change this:
echo '<script>window.location="'.$go_to.'";</script>';

to:
echo "Loading...";
echo '<script>pause(800); window.location="'.$go_to.'";</script>';


I hope that I helped
regards
 
I use secretscript for exactly that reason.. it does exactly what you need and my tech installed it in minutes, I go into the control pannel and just put the rapidshare link in and then it gives me a link that looks like this , mysite.com/bluraydvd . It all runs on my servers and does not use anyone elses hardware or software to get the job done. It masks the links very very nicely. It will take the pricks that are getting your stuff removed, more time to waste on their deeds since with secretscript is wont be so easy anymore. By the way, Secretscript is Free today, so go grab it from their site secretscript.com it is normally selling for like 50 bucks.
 
Last edited:
Hey, thanks a lot guys !

Fartmaster, I looked a bit at secretscript, but it looks like a heavy machine in my eyes, for which I couldn't overview all the code easily, not mentioning the fact it isn't talking about a landing page.

Your code, Cyclotrial, looks pretty sweet, I'll try that, thanks again :)
 
I didn't manage to make that code work, it contained a few typos or small forgotten things, and next, I didn't manage to make it work either.

In case you guys are interested, I made it work like that in the end :

PHP:
<?php
$link=$_POST['Link'];
$url=$_GET['i'];
function form()
    {
        echo('<form action="./d.php" method="POST">
            <input type="text" name="Link" />LINK
            <button type="submit">CREATE</button></form>');
    }
function code($limit) //this function will be generating random string
    {
        return substr(md5(date("d.m.Y.H.i.s").rand(1,1000000)) , 0 , $limit);
    }   
/////////////////////////////////////////////////////
if ($url) //if someone use short url
    {
    $sql = mysql_connect ('***database-server***', '***database-name***', '***password***') or die (mysql_error()); //connect to database
    $baza=mysql_select_db('***database-name***') or die (mysql_error()); //chose database
    $sql_query = mysql_query("SELECT * FROM ***table-name*** WHERE Short='$url'")or die(mysql_error()); //check short_url in database
    while($r = mysql_fetch_assoc($sql_query))
        {
        $go_to=$r['Link'];
        }
    echo '<script>window.location="'.$go_to.'";</script>';
    }
else
    {
    if($link)
        {
        $sql = mysql_connect ('***database-server***', '***database-name***', '***password***') or die (mysql_error()); //connect to database
        $baza=mysql_select_db('***database-name***') or die (mysql_error()); //chose database
        $short=code(6);
        $sql_query = mysql_query("INSERT INTO ***table-name*** (Short, Link) VALUES ('$short','$link')") or die (mysql_error()); //save short_url and link in database
        mysql_close($sql); //disconnect with database
        echo "(root)/d.php?i=$short";
        }
    else
        {
        form();
        }
    }   
?>

And in the database, a table called Ip, like that :

http://img203.imagevenue.com/img.php?image=03737_d.db_122_197lo.jpg

The output link structure being like that (root)/d.php?i=abcde
 
Last edited:
Back
Top