Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite vs access_mod

which is faster?

         

lemat

11:03 pm on Mar 24, 2004 (gmt 0)

10+ Year Member



There is a thread ".. near perfect .htacces (with edits)". Decdim - the author - used to block some IP ranges using mod_rewrite.

My question is: what is faster mod_rewrite or access_mod? Below there are these IP ranges in mod_rewrite format and IP ranges is acccess_mod format. (correct me please if i have made any mistake calculating it)

RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]¦1[3-9][0-9]¦2[0-4][0-9]¦25[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]¦2[0-4][0-9]¦25[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^12\.175\.0\.(3[2-9]¦4[0-7])$ [OR]
RewriteCond %{REMOTE_ADDR} ^(203\.186\.145\.225¦218\.6\.10\.113¦68\.59\.94\.40¦66\.75\.128\.202)$ [OR]
RewriteCond %{REMOTE_ADDR} ^210\.192\.(9[6-9]¦1[0-1][0-9]¦12[0-7])\. [OR]
RewriteCond %{REMOTE_ADDR} ^211\.(1[0-1][4-9])\. [OR]
RewriteCond %{REMOTE_ADDR} ^218\.([0-2][0-9]¦[3][0-1])\. [OR]
RewriteCond %{REMOTE_ADDR} ^218\.(5[6-9]¦[6-9][0-9])\. [OR]
# Start Cyveillance blocks
RewriteCond %{REMOTE_ADDR} ^63\.148\.99\.2(2[4-9]¦[3-4][0-9]¦5[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^65\.118\.41\.(19[2-9]¦2[0-1][0-9]¦22[0-3])$ [OR]

#NAMEPROTECT.COM
12.148.196.128/25
12.148.209.192/26
12.175.0.32/28
#hongkong
203.186.145.225
#china (redundant, below is 218./11)
#218.6.10.113
#comcast
68.59.94.40
#roadrunner
66.75.128.202
#china
210.192.96.0/19
#korea
211.104.0.0/13
211.112.0.0/13
#china
218.0.0.0/11
218.56.0.0/13
218.64.0.0/11
218.96.0.0/14
#CYVEILLANCE
63.148.99.224/27
65.118.41.192/27

I'm going to do some benchmark but the results from other sources are welcome.