I've gone through the questions and I couldn't find exactly what I was looking for.
Logically what the request is to only allow certain IPs access to a certain page. All other IPs should be forwarded to a generic 404 rule (Rather than get a security error which just makes some people WANT to get in)
the rule looks like:
RewriteCond %{REQUEST_URI} ^/Folder/Site/index.hml
RewriteCond %{REMOTE_HOST} !^IP1
RewriteCond %{REMOTE_HOST} !^IP2
RewriteCond %{REMOTE_HOST} !^IP3
RewriteRule $ /Generic404.html [PT,L]
So the previous tech used the above, and I'm VERY new to apache coming from an IIS world its actually very customizable and I'm slowly learning and full-filling my junior role. (From my limited understanding the above will pass every IP EXCEPT IP1,IP2,IP3 to the Generic404.hml page, while IP1,IP2,IP3 will not receive a re-write so they will be able to access the page)
But I'm wondering can the [OR] be used above? Something like:
RewriteCond %{REQUEST_URI} ^/URL
RewriteCond %{REMOTE_HOST} !^IP-1 [OR]
RewriteCond %{REMOTE_HOST} !^IP-2 [OR]
RewriteCond %{REMOTE_HOST} !^IP-3
RewriteRule $ /Generic404.html [PT,L]
I'm curious only because his explanation on why I couldn't use [OR] made no sense to me at all...I'm hoping someone could actually explain it in a way that makes sense to me.