کد PHP:
	
<?php $pass = "admin"; ?>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Up-link</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="upload">
<h2><span class="fontawesome-upload"></span>Upload Now !</h2>
<form method="POST">
<fieldset>
<p><span class="fontawesome-link"></span><label for="link">Link :</label>
<p><input type="text" id="input" name="link" placeholder="http://www.cloudha.ir" required autofocus></p>
<p><span class="fontawesome-lock"></span><label for="password">Password :</label></p>
<p><input type="password" name="pass" placeholder="Password" id="Input" required></p>
<p><input type="submit" value="Upload" name="send" class="Button"></p>
</fieldset>
</form>
</div>
</body>    
</html>
<?php
if(isset($_POST["send"])) { 
if($_POST["pass"] == "$pass") {
$url = $_POST["link"];
$name = basename($url);
file_put_contents("$name", file_get_contents($url));
echo "<div class=\"success\">successfully uploaded</div>";} else {
echo "<div class=\"error\">Error</div>"; }
} else {
echo "<center><strong>Copyright © Cloudha  (<a target=\"_blank\" href=\"http://www.cloudha.ir\">CloudHa.iR</a>) 2014 All Rights Reserved.</strong></center>";
echo "<center>Programming by Mohamad<br /></center>";
    }
?>
<style>
/*
About Us
LastMod 2014/2/12 by Gijgah
Programming by Gijgah
Template Design by SaeedS255
Edited by Ramin
RAMZ group (www.20script.ir)
Special thanks to Gijgah , tekide , Mahdi.Yar , hror , RAMIN , SaeedS255 , Black_Sky , s1r101 And other team members ...
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;
}
body {
    background-image:url('images/background.jpg');
        background-repeat:no-repeat;
    color: #000;
    font-family: "Varela Round", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
}
input {
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    -webkit-appearance: none;
}
#upload {
    margin: 150px 100px 150px 453px;
    width: 500px;
        opacity:0.7;
        transition:all 0.7s ease;
}
#upload:hover {
        opacity:1;
        box-shadow:-0.5px -0.5px 5px 2px #7e97ff;
}
#upload h2 {
    background-color: #7e97ff;
    -webkit-border-radius: 2px 2px 0 0;
    -moz-border-radius: 2px 2px 0 0;
    border-radius: 2px 2px 0 0;
    color: #fff;
    font-size: 28px;
    padding: 20px 26px;
}
#upload h2 span[class*="fontawesome-"],#upload fieldset p span[class*="fontawesome-"] {
    margin-right: 14px;
}
#upload fieldset {
    background-color: #fff;
    -webkit-border-radius: 0 0 2px 2px;
    -moz-border-radius: 0 0 2px 2px;
    border-radius: 0 0 2px 2px;
    padding: 20px 26px;
}
#upload fieldset p {
    color: #777;
    margin-bottom: 14px;
        font-size:20px;
}
#upload fieldset p:last-child {
    margin-bottom: 0;
}
#upload fieldset input {
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}
#upload fieldset input[type="text"], #upload fieldset input[type="password"] {
    background-color: #eee;
    color: #777;
    padding: 4px 10px;
    width: 428px;
}
#upload fieldset input[type="submit"] {
    background-color: #33cc77;
    color: #fff;
    display: block;
    margin: 0 auto;
    padding: 4px 0;
    width: 300px;
        transition:all 0.4s ease;
cursor:hand;
}
#upload fieldset input[type="submit"]:hover {
    background-color: #28ad63;
}
.Button:hover{cursor:hand;}
.cover{
        width:0;
        height:40px;
        background-color:white;
        transition:all 0.3s ease;
        float:left;
}
.cover:hover{
        width:100%;
        height:40px;
}
/* share URL: http://www.20script.ir */
</style>