Pictures are public even though category is set registered

Phoca Gallery - image gallery extension
fshw
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Mar 2014, 11:27

Pictures are public even though category is set registered

Post by fshw »

All direct links to pictures and thmbnails are shown tu unregistered (public), even though the category is set to "registered" and access is restricted to all registered users.

Example:
fruehling-sommer-herbst-winter.de/images/phocagallery/fridtjof_khn-informatio-049d/thumbs/phoca_thumb_l_evaluation_2014.jpg
fruehling-sommer-herbst-winter.de/images/phocagallery/fridtjof_khn-informatio-049d/evaluation_2014.jpg

Also bots and crawlers will have access to these pictures!
fshw
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Mar 2014, 11:27

Re: Pictures are public even though category is set register

Post by fshw »

Found a solution myself:

/images/phocagallery/.htaccess

Code: Select all

RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?fruehling-sommer-herbst-winter.de/ [NC] 
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC]
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pictures are public even though category is set register

Post by Jan »

Hi, great thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply