Loving Coding & Visual Design
PHP post error: Forbidden - You don't have permission to access
When we post a form with PHP, some errors maybe return, such as: 500 SERVER Error, or:
Here are some explains may help:
A similar reason same as the above explain, they will redirect your post, when your post includes some "security" words, such as: "inc","curl".
Further more optional reasons:
or
place this file in your problem directory.
----------------------------------------
Forbidden
You don't have permission to access /post.php on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Here are some explains may help:
We had installed a software to block attack against the web-server which caused the trouble for you.We have tweaked that to allow the URL format.
A similar reason same as the above explain, they will redirect your post, when your post includes some "security" words, such as: "inc","curl".
Further more optional reasons:
In the control panel of hosting, the PHP scripts doesn't need special permissions, but mod_php is configured in safe mode, so if I need PHP-CGI scripts or applications that install something, You need permissions (770). Besides, need to create a .htaccess file with the command: Options ExecCGI.
mod_security:
ModSecurityTM is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks.
While mod_security can be a very powerful tool, misconfigured or overly strict rule sets can interfere with vBulletins Operation. Below for Apache users you can use an htaccess file and add a specific rule to disable mod_security.
Make or edit your forum .htaccess file and add the following code
Code:
< IfModule mod_security.c >
SecFilterEngine Off
SecFilterScanPOST Off
< /IfModule>
or
< IfModule mod_security.c>
SecFilterInheritance Off
< /IfModule>
place this file in your problem directory.
----------------------------------------
最 近 文 章
- 签证申请经验:越南和泰国 - Wed, 21 Mar 2007 13:36:30 +0000
- 初步确定东南亚自助游行程 - Sun, 18 Mar 2007 16:55:11 +0000
- IIS绑定域名加PHP空间 - Sun, 11 Mar 2007 17:20:35 +0000
- MySQL server has gone away - Tue, 06 Mar 2007 13:37:29 +0000
- 终于收到了护照,下一步是VISAs - Mon, 05 Mar 2007 13:11:06 +0000
- PHP Error: Permission denied in Unknown on line 0 - Thu, 01 Mar 2007 08:19:35 +0000
- 网页中直接嵌入小图片的办法 - Tue, 13 Feb 2007 04:16:53 +0000
- Powerset - Google终结者? - Sat, 10 Feb 2007 03:12:32 +0000
- chmod4位数字中第一位的含义 - Fri, 02 Feb 2007 13:25:48 +0000
- 不要再用PHP的代码简写方式<?=$var?> - Thu, 25 Jan 2007 08:31:05 +0000