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!
Pictures are public even though category is set registered
-
fshw
- Phoca Newbie

- Posts: 2
- Joined: 14 Mar 2014, 11:27
-
fshw
- Phoca Newbie

- Posts: 2
- Joined: 14 Mar 2014, 11:27
Re: Pictures are public even though category is set register
Found a solution myself:
/images/phocagallery/.htaccess
/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]- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Pictures are public even though category is set register
Hi, great thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project