Solved

mod_security and secfilter

Posted on 2007-03-26
2
282 Views
Last Modified: 2009-07-29
I just install mod_security to prevent user from typing shell command in phpshell script.
I use :

Secfilter ls
Secfiler cat
Secfilter rm

then problem come when some use wanna access their php script named "catalogue.php" and using view.php?cat=1

also user of wordpress who wanna access options-permalink.php ( rm in permalink ) in the file name.

any clue or hint to solve this problem.

thanks in advance
0
Comment
Question by:hendri2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 500 total points
ID: 18798057
You might try something like:

SecFilterEngine On
SecFilterScanPOST On
SecFilterSelective "SCRIPT_FILENAME" "options-permalink\.php " "allow,log,status:412"
SecFilterSelective "QUERY_STRING" "cat" "allow,log,status:412"
SecFilterSelective "SCRIPT_FILENAME" "catalogue\.php" "allow,log,status:412"
0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 18798072
btw, that should go in your .htaccess file.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question