.htaccess Allow Hot Linking To One Subfolder
Here was my little dilemma. I have my domain setup to prevent hot linking of images using an .htaccess file in the root directory. I’m using a link sharing plug-in that pulls snippets of my articles and any images (hence my problem) in that article and places it on an affiliate site. The plug in is called Related Websites. When the affiliate website tries to pull the image, my server thinks the other website is hot linking and wont cough up the image, it directs them to my 404 page. To make matters worse I have my 404 page setup to send me emails every time it gets pulled. I was getting about 160 emails a day. Not so pleasant.
The fix was simple:
Create an .htaccess file with this code:
Rewrite Engine off
Place it in the folder that you want to allow hot linking. Problem solved.
Now this does create another problem. It does open up that one folder to hot linking so I will have to monitor it. I wouldn’t think it would be a problem because the images in there are small and generic, but there are a lot of really pathetic people out there so I’ll have to watch it, odds are I’ll get burned.




Like






