Bluebear
08-30-2008, 04:48 PM
I suppose the title explains the problem. Is this possible? I am planning on having a lot of pictures at my page and I am worried it will not have enough space for that. Therefore I am thinking of finding a host that only will be used for my images/photos. So is it possible for uploading a .htaccess script on the "photo database page" that allows my main site to hotlink the images, but still will refuse other pages to use them directly?
I barely have any experience with such things.
Volt.Networks
08-30-2008, 05:21 PM
Do you have cPanel? cPanel should have that feature to do that for you.
Bluebear
09-05-2008, 05:46 PM
(Sorry for a late response.)
Yes, I have cPanel. ;) Though I am not very good with it so I have no idea how I can do that?
WebNaz
09-06-2008, 03:17 AM
Create the following .htaccess file where you will host your images
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.domain_allowed.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain_allowed.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain_allowed.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain_allowed.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]