![]() |
Protect Pictures in vBGallery
hello, my friend own a vbgallery v2 he asked me a question, about um somewhere in .htaccess file, like you put it inside /gallery folder and it protects your images from being hot linked to other sites, like only the gallery module can access it, if you click Photos, Category, Picture, then you can see the images, but if you type /gallery/images/2/coolrock.jpg It will say like Your are Forbidden to access this file on this server. someone please help me, Thank you!!
|
I haven't done it in a long time myself, but using RewriteCond's, you can achieve it.
Here's a site that explains how to set it up. [link] |
Quote:
|
This is what I see in /gallery/files .htaccess
but I tried online Hotlinking tool and I check the image url and it still displays the image RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.net(/)?.*$ [NC] RewriteRule .*\.(avi|AVI|bmp|BMP|gif|GIF|jpeg|JPEG|jpg|JPG|mid i|MIDI|mp3|MP3|mpeg|MPEG|mpg|M PG|png|PNG|ram|RAM|wav|WAV|wma|WMA|wmv|WMV)$ [F,NC] Please help me. |
restart your apache or check setting your httpd.conf if you have access
if not contact your helpdesk ;) |
All times are GMT. The time now is 06:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|