|
Problems with mod_security? - 403 Forbidden / Not Acceptable?
|
|
03-18-2006, 02:52 AM
(This post was last modified: 08-09-2008 06:04 AM by Dennis Tsang.)
Post: #1
|
|||
|
|||
|
Problems with mod_security? - 403 Forbidden / Not Acceptable?
Recently, there have been many reports on this forum regarding problems or errors with mod_security, one of the modules loaded into Apache. If you are having problems with error 403 Forbidden or other problems that happen once in a while for quite mysterious reasons, read on and see if mod_security is your problem.
The apparent error that is generated is normally a page saying:
Quote:[Sat Oct 8 16:33:45 2005] [error] [client 123.456.789.123] mod_security: Access denied with code 403. Pattern match "rcp " at THE_REQUEST. [hostname "www.example.com"] [uri "/forum/admin/templates.php?expand=1&group=usercp"] Known problematic pages Here are a list of known symptoms
Confirm that mod_security is installed on your server To confirm that the mod_security module is installed on your server, open your PHP Info page (there is one in your forum's Admin CP). Scroll down and find the heading "Loaded Modules" and see if "mod_security" is in the list. The Solution - MyBB 1.4.x and newer The htaccess.txt that comes with the MyBB package disables mod_security by default. If you haven't already, rename the htaccess.txt file to ".htaccess" (without the quotation marks, note the leading dot in the filename). The relevant code is shown below: Code: #The Solution - MyBB 1.2.x and older Place this code in a .htaccess file in your MyBB folder on the server. Code: SecFilterEngine OffNote, this will disable the security function of the mod_security module for the files inside the MyBB folder. This solution is a tradeoff: security vs usability. Use this solution at your own risk. If this does not work, then feel free to create a new support thread and we'll try to help you further. Wiki page: [Wiki: Help:Mod_security] MyBB is on Facebook and Twitter Hosting available, PM for details |
|||
|
03-19-2006, 12:52 AM
Post: #2
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
Hello DenisTT,
What sort of security could i louse from disabling mod_security? Thanks! ![]() Join me on TF2 at 76.74.218.236 or click here: http://forums.lambdascience.com Windows 7 Mag |
|||
|
04-20-2006, 07:23 PM
(This post was last modified: 04-20-2006 07:23 PM by Justin S..)
Post: #3
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
You can always just upload the .htaccess file when you need to edit the User CP templates (if that is the only problem you are having), and then delete it when you no longer need to use it
![]() Justin S. / MyBB Lead Designer / RCTgo / Belloman Design |
|||
|
04-20-2006, 07:51 PM
Post: #4
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
My host recently installed mod_security but i don`t have any problems with it. I tested the symptoms you gave and its all working fine on my board.
I am using: Mybb 1.1.1 PHP Version 4.4.2 Apache 1.3.34 and i can see mod_security in "Loaded Modules" |
|||
|
04-21-2006, 12:12 AM
Post: #5
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
They've configured it properly then.
Certain hosts just blindly configure it not taking notice of a few things. Chris Boulton Twitter | Blog |
|||
|
06-01-2006, 09:02 AM
Post: #6
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
I didn't get this error until I upgraded from 1.1.1 to 1.1.2.
CHMOD doesn't seem to fix it, and the reason I switched from PHPBB to MyBB was (besides much better control and easy setup) security. I don't want to disable security on my board. I'll be back in the same boat, with gambling sites posting as admin. Another board is running 1.1.2 on the same host, no problem?? |
|||
|
06-02-2006, 12:12 AM
Post: #7
|
|||
|
|||
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
autograff Wrote:I didn't get this error until I upgraded from 1.1.1 to 1.1.2. They could have already disabled the mod_security via the .htaccess (or another) fix... MyBB is on Facebook and Twitter Hosting available, PM for details |
|||
|
06-03-2006, 12:32 AM
Post: #8
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
Thanks, Dennis. It's possible. I ended up doing the .htaccess thing, and it worked fine.
|
|||
|
06-16-2006, 08:52 PM
Post: #9
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
Hi friends i'm turkish and i cant understand what you say ! please can you explain it in a simple way ?
|
|||
|
06-17-2006, 02:56 PM
Post: #10
|
|||
|
|||
|
RE: Problems with mod_security? - 403 Forbidden / Not Acceptable?
Hi CrusH,
If you see a warning "403 Forbidden/Not Acceptable" instead of the page you wish to see, make a text file with only this in it: SecFilterEngine Off Then save the text file naming it htaccess.txt Upload it in ASCII mode to the folder that contains your bulletin board. Rename it (on the server) .htaccess Your board will work instead of giving you an error. It might be less secure, but it will work. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help




![[Image: fiveofeight.png]](http://steamcard.com/do/sigcard-tf2-stats/fiveofeight.png)
![[Image: apart_released.png]](http://files.bellomandesign.com/signatures/apart_released.png)