Last active
January 7, 2016 16:47
-
-
Save barbotkin/4ec6ec286d325712866f to your computer and use it in GitHub Desktop.
Protecting wordpress folders and files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Protect Folders | |
find wp-content -type d -exec chmod 555 {} + | |
# Protect Files | |
find wp-content -type f -exec chmod 444 {} + | |
# Allow write only in needed folder | |
find wp-content/uploads -type d -exec chmod 755 {} + | |
find wp-content/uploads -type f -exec chmod 644 {} + | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment