Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×
Here's a pretty well-written introduction to utilizing the access control mechanisms built into Apache. This includes the Apache security modules, controlling access by IP and username, using htaccess/htpasswd, among others.