coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: Anne on February 09, 2005, 04:07:27 PM

Title: 403 Forbidden errors
Post by: Anne on February 09, 2005, 04:07:27 PM
Recently, I've been getting this error when trying to batch add files:

Forbidden

You don't have permission to access /gallery/displayimage.php on this server.


This doesn't happen with all folders, only some so far. I read on the board that it may be cause by the .htaccess file. This is what is in the file:



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com [NC]
rewriterule \.(jpe?g|gif|png|bmp|mp3|mov|wmv|rm|ram|asf|wma)$ - [NC,F]
RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mysite.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$      [NC]


Is anything in it causing the 403 errors? If not, what else might cause it? I'm pretty sure the permissions on the folders are correct...
Title: Re: 403 Forbidden errors
Post by: Anne on February 09, 2005, 06:56:11 PM
Nevermind, I think I figured out the problem. I changed 'Allow several consecutive comments on one file from the same user (disable flood protection)' to Yes in the Config panel. Batch add seems to work fine now.
Title: Re: 403 Forbidden errors
Post by: Joachim Müller on February 11, 2005, 04:16:01 PM
although I can't see how your problem and solution should be related (batch-add = searchnew.php vs. displayimage.php), but thanks anyway for reporting back that you were able to resolve this.

Joachim
Title: Re: 403 Forbidden errors
Post by: vietkool on February 13, 2005, 08:24:14 AM
I have same problem with this error, How do I fix it ?  I am using version 1.2

thanks
Title: Re: 403 Forbidden errors
Post by: Joachim Müller on February 14, 2005, 08:08:19 AM
you already posted this in another thread - don't cross-post! Locking this thread now.

Joachim