More specifically, I have an htaccess file that restricts anyone from seeing the directory contents. Such that, nobody can see my 1000s of images in www.example.com/images by us
in that folder which you want to show access forbidden create a file with name index.php and paste this code
403 Forbidden Forbidden You don't have permission to access This Folder on this server.
You don't have permission to access This Folder on this server.