Yeah, so this friend of mine is trying to keep this guy who has been harrassing her off her page, but he's a moving target. I want to ban by host and user_agent (once I find out what that is). She made up a special 403 page for him (Kirk and Spock in a compromising position, if you're curious). Anyway, she used cPanel to generate the uncommented code, and the lines commented out were me. I had to comment them out because I was getting a 500 when I tried to access the site. What did I do wrong (and how can I fix this)?
Obviously, if I get the REMOTE_HOST block to work (and I intend to add a USER_AGENT condition once it does), then I can remove those deny ip's but one might want to ban other ip's in the future (Cyveillance, other scum).
Also, I want to serve up the proper "hi, you've been 403'd" file, which I think is what that "<Files>" thing is about. (I've never gotten that to work properly on my own website.)
I have discovered a bit of a problem--I tried to echo REMOTE_HOST and got "(none)" as a response. But the server does run reverse lookup on the server logs as they are created. Is there any way I can turn that variable on?