I wana assume ur site is a download site then? Its easy, dont hotlink your files. Add a captcha that pops up anytime u wana download a file. Make sure all ur downloads go through a file dl.php?f=(file_id or file_name).
So ur dl file could be something LIKE:
<?php define('__SILENCE__','Silence is golden.');
/**
* $id dl.php 15-04-2010 09:00 mobilegigs $
*
* @author Neo Ighodaro
* @copyright CreativityKills (c) 2010
*/
// Simple post check
if ( ! $_POST)
{
// Display a captcha page
include_once 'captcha_form.php';
exit;
}
else
{
// POST was made, verify the Captcha
if( ! empty($_SESSION['captcha']) AND ! empty($_POST['captcha']) AND ($_POST['captcha'] === $_SESSION['captcha']))
{
// Allow download :)
$dl_from = isset($_GET['f']) ? $_GET['f'] : NULL;
header('Location: '.$dl_from);
exit;
}
}
To make everythng safer, ur link shud neva have the folder name its downloading from
BAD: dl.php?f=mp3/music_file.mp3
BETTER: dl.php?f=music_file.mp3&from=1
BEST: dl.php?from=5am5gtjai&f=music_file.mp3 (from should probably be an md5 encrypted name ov ur folder)
in ur dl.php u may add a
function valid_folder($md5_folder)
{
/// Loop ur dir names(md5 encrypted) to see if any matches the md5 argument
/// also check the files existence if the folder is found
/// if any ov d above conditions fail, bail
}
You have to work out the rest coding urself as i duno how ur site is coded. Bt u have an idea ov wot 2 do. Gudluck. Oh also change ur folder name, dnt use conventional names like mp3, video, music n sh!t.