I have this set in my .htacess
file:
Order Allow,Deny
Deny from all
Allow from localhost
Allow from 86.101.198.88
(my ip)
ErrorDocument 404 /block/?code=404
ErrorDocument 403 /block/?code=403
But for some reason, I don't have permission to access from localhost and using my IP either. I just keep getting redirected to the ErrorDocument
for error 403. What am I missing?
From https://httpd.apache.org/docs/2.0/mod/mod_access.html
Since you have a Deny from all, and your order is Allow,Deny, everything will be blocked. You probably want
order Deny,Allow
instead.