Forum Moderators: phranque
"GET / HTTP/1.0" followed by someone's URL. I have been researching here for days but possibly searching for the wrong terms. Here is the problem:
nnn.137.129.75 - - [18/Feb/2012:15:09:55 -0600] "GET / HTTP/1.0" 200 7638 "http://example.dir.ru/" "Mozilla/5.0 (Windows NT 5.1; U; en) Opera 8.00"
nnn.137.129.75 - - [18/Feb/2012:15:10:01 -0600] "GET / HTTP/1.0" 200 7638 "http://example.dir.ru/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
nnn.137.129.75 - - [18/Feb/2012:15:10:08 -0600] "GET / HTTP/1.0" 200 7638 "http://example.dir.ru/" "Mozilla/4.0 (compatible; MSIE 6.0; Update a; AOL 6.0; Windows 98)"
"GET / HTTP/1.0" and "GET / HTTP/1.1"? I mean, is there a downside? I apologize for asking a basic-newb question, but before I try to redirect this to a 403 I need to know if I should.
Perhaps another may clean up the syntax for you.
Don't use .* at the beginning or in the middle of a RegEx pattern. It is uncomprehensibly inefficient in its usage of server processor cycles.
[F,L] can be replaced by [F]. It's one of the few occasions when 'L' can be omitted. Another is when using [G].
\.ru{2} matches .ruu - but why?
If you hadn't obscured the Class A, and, rather obscured the Class D (a multiple forum practice), somebody may have been able to provide some worthwhile insight the internet provider (i. e., server farm or other pest worthy of denying access)
Those lines (and the accompanying other lines) were in place and functioning for more than ten years and never caused any issue while functioning fine.
I believe the two is not necessary because the RU is specific rather than random characters within a range (i. e., [a-z] ).
RewriteCond %{HTTP_REFERER} ^http://.*\.(A-Z 0-9){2}/ SetEnvIf Remote_Addr ^123\.238\.10\.71$ getout I clean it out when there is an obvious bad neighborhood and block the IP group. It sets an environment to block and allows all that are not in that environment. I have had trouble trying to block by additional rewrite rules further down the htaccess file and I think it is because of the inverse Env. set in this process. I'm thinking that I can add this referrer block into the environment that gets blocked as: SetEnvIf Referer ^http://.\.ru/$ getout
SetEnvIf Referer ^http://.\.pl/$ getout I am trying to do too many things at the same time right now
I've gotten many thousands of them already today, most are perfectly valid.