vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=137551

Protect Pictures in vBGallery
by yuriy
26 Jan 2007 05:22

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!!

Use .htaccess!
by DemonOuterverse
29 Jan 2007 02:02

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]

KW802 29 Jan 2007 02:05

Quote:

Originally Posted by yuriy (Post 1167496)
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!!

If your friend owns vBGallery then he should know that creating .htaccess files is a stock feature of the current versions.

yuriy 30 Jan 2007 18:25

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|midi|MIDI|mp3|MP3|mpeg|MPEG|mpg|M PG|png|PNG|ram|RAM|wav|WAV|wma|WMA|wmv|WMV)$ [F,NC]

Please help me.

bheo 29 Mar 2007 12:13

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 05:31.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.