is there a way i can modify my .htaccess file to exclude hotlinking for certain images in a file, but include others? what i mean is, i have a folder that contains all of my images, and the thumbnails have "_th" in the file name (ex: 289452_th.jpg). the large pics don't have the "_th" in the filename (ex: 289452.jpg). can i modify my .htaccess where it allows hotlinking for all files with the "_th", but disallows it for all files without the "_th"? +rep to anyone who can help me out. thanks.
You may try this, RewriteEngine On RewriteBase / RewriteRule ^(.*)_th\.(jpe?g|gif|bmp|png)$ - [F] Code (markup): when imageName_th.jpg is hotlinked from other site, it shows nothing. This is not effect with no '_th' images.
thanks for your feedback, but i need the images with _th to be able to be hotlinked. i have a photo hosting site, and i need the images without the _th to not be hotlinked.
oh sorry, i didn't read your request clearly. what you want is to: Allow: 289452_th.jpg Disallow: 289452.jpg so, rewrite code should be like this: RewriteEngine On RewriteBase / RewriteRule ^.*[^(_th)]\.(jpe?g|gif|bmp|png)$ - [F] Code (markup): sorry for miss reading, this might help.
i can't separate the thumbnails because i'm running an image hosting script that places them in the same directory. ead i'm going to try what you just suggested
ok i tried it, and it's working PERFECTLY. i hope good things happen to you eadkung because you really helped me out of a jam. people were starting to hotlink 1mg image files like crazy. thanks a LOT