Share This Post

After upgrading a few plugins and the core WordPress files on a clients website, access to the uploaded images had been removed. Rather than showing uploaded images the screen would have the alt text in its place. When the image in question was displayed by its self in the browser, the message


you don’t have permission to access …(image file)…. on this server

Quickly investigating the file structure showed a htaccess file in the uploads folder. In this htaccess file was

deny from all

Seeing how that is too strict for our purposes, we would like users to be able to view images when coming to the site, I utilized the code shared by Tom Oliver in his protecting uploads with htaccess. By replacing the deny from all code with the code Tom provided in his post, security of the uploads folder was maintained while still providing access to the images.

A simpler and less secure solution would have been to simply rewrite the .htaccess as:

allow from all

More To Explore


“Strip your website down to the basics and do a few things really well.” – B C Designers


“If debugging is the process of removing software bugs, then programming must be the process of putting them in” – Edsger Dijkstra

Understanding how to pick the perfect WordPress theme and then how to customize that theme to your website’s specific needs is a crucial step in


“Design doesn’t mean that every person [is] gonna like, love it, but that’s the creativity of [an] eye which creates something different.” – Bijay Chhetri

Do You Want To Boost Your Business?

An image of three people in a meeting looking at laptops