Forum Moderators: phranque

Message Too Old, No Replies

mod access

"var"

         

wilderness

6:41 pm on Apr 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are there any options for variables?

Is it possible to use the pipe character or something else which distinguishes "or"?

deny from 123.45.¦67.

coopster

7:59 pm on Apr 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No, but you could use a regular expression with a combination of SetEnvIf and your Deny directives. In simple cases like this though, I would just write two lines of Deny directives.

wilderness

8:39 pm on Apr 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks coopster.

I just provided the previous as a simple example.

Changed hosts on one of my sites recently and some of the Rewrites which utilize the pipe character are not being processed.

RewriteCond %{REMOTE_ADDR} ^123\.(45¦56¦67¦78¦90)\. [OR]

And was looking for a possible way to convert multiple lines similar to the above using "deny from"

Don