Skip to content

Instantly share code, notes, and snippets.

@barbotkin
Last active January 7, 2016 16:47
Show Gist options
  • Save barbotkin/4ec6ec286d325712866f to your computer and use it in GitHub Desktop.
Save barbotkin/4ec6ec286d325712866f to your computer and use it in GitHub Desktop.
Protecting wordpress folders and files
# 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