HOW TO HOTLINK PROTECT A FOLDER

Create a .htaccess file for the directory you want to protect with the following content:

Code:RewriteEngine onRewriteCond %{HTTP_REFERER} !^http://(www.)?allowedtohotlink.com(/)?.*$ [NC]RewriteRule .*.(gif|jpg|jpeg|bmp)$ http://imagetoreplacewith.com/image.gif [R,NC]

If that doesn't work, try:

Code:Options +FollowSymlinksRewriteEngine onRewriteCond %{HTTP_REFERER} !^http://(www.)?allowedtohotlink.com(/)?.*$ [NC]RewriteRule .*.(gif|jpg|jpeg|bmp)$ http://imagetoreplacewith.com/image.gif [R,NC]

If the second one doesn't work, try:

Code:Options +FollowSymlinksRewriteCond %{HTTP_REFERER} !^http://(www.)?allowedtohotlink.com(/)?.*$ [NC]RewriteRule .*.(gif|jpg|jpeg|bmp)$ http://imagetoreplacewith.com/image.gif [R,NC]

If the third doesn't work this is the last one to try:

Code:RewriteCond %{HTTP_REFERER} !^http://(www.)?allowedtohotlink.com(/)?.*$ [NC]RewriteRule .*.(gif|jpg|jpeg|bmp)$ http://imagetoreplacewith.com/image.gif [R,NC]