.htaccess | Allow Only Selected Files from wp-content

# Disable access to all file types except the following Order deny,allow Deny from all <Files ~ ".(xml|css|js|jpe?g|png|gif|pdf|docx|rtf|odf|zip|rar|eot|woff|ttf|svg)$"> Allow from all </Files>
must create a new .htaccess file with the code and paste it in the wp-content folder.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.