Log in Sign up
Discussion WordPress

Securing uploads folder: Prevent PHP execution.

Nina Beginner
Nina Beginner
0 reputation
1 week ago 108 views 3 replies
Working on a project and need some expert opinions:

Question: Securing uploads folder: Prevent PHP execution.

3 Replies

Paul Agency
Paul Agency · 1 week ago
Nginx users need a location block: `location ~* ^/wp-content/uploads/.*.php$ { deny all; }`.
Tom Security
Tom Security · 1 week ago
Add: `<Files *.php> deny from all </Files>`.
Chris Theme
Chris Theme · 1 week ago
Create an `.htaccess` file in `/wp-content/uploads/`.

You must be logged in to reply.

Log In to Reply