Seeming grabber scripts are becoming more and more alive on here i was wondering what your best methods of protection are?
maybe:
or maybe using a logged in script with headers to hide file locations such as:
You could use .htaccess to prevent images being stolen such as:
But For Many Mobile Phones They Do Not Support Referer so you need to add a blank No Condition also
any better ideas?
maybe:
PHP Code:
if(substr_count($_SERVER['HTTP_USER_AGENT'],"php")>0){
header("Location: http://getlost.con");
exit;
}
PHP Code:
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: $type");
header("Content-Disposition: attachment; filename=\"$name\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . $size);
PHP Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://mysite.com/hotlink.png [L]
any better ideas?
Comment