Preventing Hot-linking / Script


You can disallow hot linking (aka bandwidth stealing) on your server, so those attempting to link to an image or CSS file on your site.


htaccess for images


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?mydomain.com/.*$ [NC]
RewriteRule .(gif|jpg|png)$ http://www.mydomain.com/yourlogo.gif [R,L]


htaccess for files


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?mydomain.com/.*$ [NC]
RewriteRule .(js|css)$ - [F]

Comments




 



Copyright © 2017 epictrim. All rights reserved.What we doOur WorkInsideIdeasJoin UsContact Us