Posts tagged with ‘htaccess deny all file except one’

How to block all file access except one using .htaccess

advertisement

htaccessIf you use .htaccess to control the file access, i guess u might came to a situation where you want to block all the files but except one. For an example, you might want to block all the php file access in WordPress wp-content folder using .htaccess. however some of the plugins need to have direct file access (and this is php file too). To solve this problem, you can use htaccess to allow the access for only one file.

To block all access except one file using .htaccess, follow the steps below:-

Continue reading How to block all file access except one using .htaccess »