# --- BEGIN RankYa WordPress Specialist Codes. Strong Security for WordPress Uploads Folder --- # Step 1 Browse in to wp-content > uploads FOLDER. # Step 2 Create a file called .htaccess (if there is already a .htaccess file, simply right click and edit). # Step 3 Copy/Paste below directives and SAVE the .htaccess file # Block all direct access to PHP files (most secure method). The server sends a 403 Forbidden error. Require all denied # Disable the execution of CGI scripts. Options -ExecCGI # Remove handlers for many other potentially executable file types. Is also better for faster and safer uploads RemoveHandler .asc .asp .awk .bash .bin .bsh .c .cgi .csh .env .exe .gawk .h .in .inc .ini .md5 .nawk .out .output .overlay .p12 .p5c .pam .pas .patch .pbxproj .pdb .pem .perl .phar .php .php3 .php4 .php5 .php7 .php8 .php9 .php_cs .phps .phpt .phpize .pl .phtml .py .sha .sha1 .sh .var .x