I have an admin directory on my web server (http://test.com/admin) and I don't want unauthorized parties to access this /admin/ directory instead I want to return 404 error code for all unauthorized accesses.
My question is, is there any way to return 404 error code for all access attempts except a few specific IP addresses?
My web server is Apache on Linux (plesk).