| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Blocking ip on cluster server|
How to optimize .htaccess file
| 8:35 pm on Feb 24, 2009 (gmt 0)|
I use cluster server and below is only option to Block IP's.
Is there a way to make the very long file shorter?
How can I block an IP range with this method?
SetEnvIf X-Cluster-Client-Ip 22.214.171.124 block
SetEnvIf X-Cluster-Client-Ip 126.96.36.199 block
SetEnvIf X-Cluster-Client-Ip 188.8.131.52 block
SetEnvIf X-Cluster-Client-Ip 184.108.40.206 block
SetEnvIf X-Cluster-Client-Ip 220.127.116.11 block
SetEnvIf X-Cluster-Client-Ip 18.104.22.168 block
Deny from env=Block
| 9:43 pm on Feb 24, 2009 (gmt 0)|
I don't have a clue what cluster server is!
#SHOULD deny 22.214.171.124-2555
SetEnvIf X-Cluster-Client-Ip 11.1.11. block
| 10:02 pm on Feb 24, 2009 (gmt 0)|
SetEnvIf uses regular expressions, so
SetEnvIf X-Cluster-Client-Ip ^11\.1\.11\.11[1-6]$ block
replaces all six lines, as well as correcting the unanchored pattern and un-escaped literal periods.
This assumes that the X-Cluster-Client-Ip variable is defined within the scope where this SetEnvIf directive executes.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved