Hi Guys,
I am newbie + no programmer. Have been using 1.4 for 10 months and now upgraded to 1.5x. You guys do a great Job here.
I have uploaded my family pics and all and want super protect. I have ajdusted the group/user settings, but can't get the .htaccess straight. I read through the forum, but didn't work. I have same issue like Shaar (The guy who started this topic).
Let me explain how my gallery is setup.
Its installed in 'i-gallery' folder under
http://khanz.net/ . I created sub-domain after installation of CPG in
http://khanz.net/i-gallery, but now I am using redirection from
http://igallery.khanz.net to
http://khanz.net/i-gallery. Luckily everything works fine as far as the the gallery is concerned.
I tried to use the .htaccess in several ways explained in the forum, it does block Hot Linking, however it blocks CPG from retrieving the images.
1st one that I tried AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com.* [NC]
RewriteCond %{HTTP_REFERER} !^http://mysite.com.* [NC]
2nd one that I tried RewriteEngine on
Rewritecond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
RewriteRule \.(jpg)$ - [F]
I have tried to place the .htacess file in
http://khanz.net/i-gallery/ , in
http://khanz.net/i-gallery/albums/ , and in
http://khanz.net/i-gallery/albums/myalbum/ folders.
My existing .htaccess file is in /home/khanznet/public_html/, since I have wordpress installed in public_html so I didn't make any changes to that file. Not sure I should post code of that .htaccess file so left it.
Please suggest what would be the best place to save the .htaccess file for my cpg, and what would the code for either redirect to a static Angry Man pic or just blocking the Hot Linking and Index of
http://khanz.net/i-gallery/albums/myalbums.