Page 1 of 1

Pictures are public even though category is set registered

Posted: 14 Mar 2014, 11:39
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!

Re: Pictures are public even though category is set register

Posted: 14 Mar 2014, 12:07
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]

Re: Pictures are public even though category is set register

Posted: 18 Mar 2014, 00:21
by Jan
Hi, great thank you for the guide.

Jan