[edited by: phranque at 12:51 pm (utc) on Jun 17, 2013] [edit reason] unlinked url [/edit]
Wizcrafts
9:12 pm on Jun 16, 2013 (gmt 0)
Http disappeared and some extra characters appeared before and after the curly brackets, before the [L] command, after I posted this. I don't know why. Here is what I tried to post:
http:// %{REMOTE_ADDR} [L]
Remove the space after http
lucy24
9:57 pm on Jun 16, 2013 (gmt 0)
Http disappeared and some extra characters appeared before and after the curly brackets
Uh, yeah, that's why the WebmasterWorld forums insist on "example.com" everywhere. Obviously a bit awkward when the material after http:// is something other than a plain-text domain name, but there you are.
General principle: if you're testing for a literal string, put the same literal string in your target. F'rinstance
No need to capture the request if you're not going to reuse it.
Some people prefer to redirect to 127.0.0.1 and let your offending visitors contemplate their navels. In practice it rarely makes much difference-- unless you're dealing with real humans attached to real browsers.
Readie
12:51 pm on Jun 17, 2013 (gmt 0)
Http disappeared and some extra characters appeared before and after the curly brackets