Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Jan 2007, 05:22
yuriy yuriy is offline
 
Join Date: Oct 2006
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!!
Reply With Quote
  #2  
Old 29 Jan 2007, 02:02
DemonOuterverse DemonOuterverse is offline
 
Join Date: Dec 2005
Use .htaccess!

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]
Reply With Quote
  #3  
Old 29 Jan 2007, 02:05
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Real name: Kevin
Originally Posted by yuriy View Post
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.
__________________
Sci-Fi Forum / The Walking Dead & Horror Forum / CinVin

(Sorry, but I am no longer developing for vB; please do not PM. So long, and thanks for all the fish.)
Reply With Quote
  #4  
Old 30 Jan 2007, 18:25
yuriy yuriy is offline
 
Join Date: Oct 2006
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.

Last edited by yuriy; 30 Jan 2007 at 18:44.
Reply With Quote
  #5  
Old 29 Mar 2007, 12:13
bheo bheo is offline
 
Join Date: Apr 2006
restart your apache or check setting your httpd.conf if you have access

if not contact your helpdesk
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:52.

Layout Options | Width: Wide Color: