https://stackoverflow.com/questions/1073852/mod-rewrite-based-on-ip
Something like this?
Kind of but not really. That's good if you're taking an an entire site down and only want a few IP addresses through, I need to let the Internet at large through to the main site while blocking it to the local site. It works with a simple require ip directive, but there doesn't appear to be a way to let that directive work AND let the error handlers work because the error handlers are blocked by the require directive. The reason I want an error handler is simple obscurity - it takes a bit more work to determine if there's a site there, and casual script kiddies will probably ignore it. Otherwise, you get the apache Forbidden screen, and that's a tipoff there's something there you're not supposed to see.
I think I have a solution, although it's not as elegant. There's another server that is accessed with a port number, but there's nothing on the *:80 service. I can put it there, but users won't be able to go to "https://example.com/internalsite", they'll have to go to "http://192.168.1.100" instead. It works, I guess.
(post is archived)