In files.php find:
PHP Code:
// #################### View File ###################
if ($action=="viewfile"){
if ($bbuserinfo['usergroupid']=="1" or $f=="") {
header("Location: files.php?action=error");
}else{
Replace with: (make sure you change both the ***yoururl.com here*** with your domain)
PHP Code:
// #################### View File ###################
if ($action=="viewfile"){
if ($bbuserinfo['usergroupid']=="1" or $f=="") {
header("Location: files.php?action=error");
} elseif
$loo_hack_url = "yoururl.com here";
$member_url = parse_url($GLOBALS[HTTP_REFERER]);
if ($member_url[host]!="***yoururl.com here**) {
eval("standardredirect(\"".gettemplate("redirect_loo_badurl")."\",\"\$loo_hack_url\");");
} else {
Make a new template named redirect_loo_badurl.
Populate it with:
PHP Code:
Hotlinking is a no no!
I havent tested this, cause i dont use said hack, and its late, so if theres a error, yank it out and ill see whats wrong with it.