Intrusion Detection System
trialnick Offline
Junior Member
**
Posts: 13
Joined: Oct 2010
Post: #11
RE: Intrusion Detection System
you do not need any plugins, just read here

http://perishablepress.com/press/2009/03...http://perishablepress.com/press/2009/03/16/the-perishable-press-4g-
and other themes about htaccess protection on blog.

Especially :

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# QUERY STRING EXPLOITS
<IfModule mod_rewrite.c>
 RewriteCond %{QUERY_STRING} \.\.\/    [NC,OR]
 RewriteCond %{QUERY_STRING} boot\.ini [NC,OR]
 RewriteCond %{QUERY_STRING} tag\=     [NC,OR]
 RewriteCond %{QUERY_STRING} ftp\:     [NC,OR]
 RewriteCond %{QUERY_STRING} http\:    [NC,OR]
 RewriteCond %{QUERY_STRING} https\:   [NC,OR]
 RewriteCond %{QUERY_STRING} mosConfig [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|'|"|;|\?|\*).* [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(%22|%27|%3C|%3E|%5C|%7B|%7C).* [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(globals|encode|config|localhost|loopback).* [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(request|select|insert|union|declare|drop).* [NC]
 RewriteRule ^(.*)$ - [F,L]
</IfModule>



Choose the lines that will suit your server&forum (eg. you shouldn't use SELECT  or INSERT  because it will conflict wth mybb queries; you can add in the same line: rlike and like)

(This post was last modified: 02-08-2011 11:16 AM by trialnick.)
02-08-2011 11:14 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Intrusion Detection System - techu - 11-01-2010, 11:49 PM
RE: Intrusion Detection System - RateU - 11-02-2010, 04:27 AM
RE: Intrusion Detection System - MattR - 11-02-2010, 04:48 AM
RE: Intrusion Detection System - RateU - 11-02-2010, 04:58 AM
RE: Intrusion Detection System - techu - 11-02-2010, 12:19 PM
RE: Intrusion Detection System - 1master1 - 11-02-2010, 05:52 PM
RE: Intrusion Detection System - trialnick - 11-07-2010, 02:28 AM
RE: Intrusion Detection System - trialnick - 02-08-2011 11:14 AM
RE: Intrusion Detection System - trialnick - 02-08-2011, 08:37 PM
RE: Intrusion Detection System - trialnick - 02-10-2011, 05:16 AM
RE: Intrusion Detection System - trialnick - 02-12-2011, 09:22 AM

 Standard Tools
Forum Jump: