vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Protect Pictures in vBGallery (https://vborg.vbsupport.ru/showthread.php?t=137551)

yuriy 01-26-2007 03:22 AM

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

DemonOuterverse 01-29-2007 12:02 AM

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 01-29-2007 12:05 AM

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 01-30-2007 04:25 PM

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.

bheo 03-29-2007 10:13 AM

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
  • Page Generation 0.01604 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete