Question: I want to deny direct access from browser to images folder.

I tried to include 

```
Deny from  all 

```

and 

```
Options -Indexes 

```

And it works good but the problem is the html file cannot see these folder as well. As a result, there is no images on the website. 

How to provide access to this folder for html document

Answer: 
It's not possible. Images referenced from an HTML document get requested by browsers the same way as if you'd put in the image URI into the address bar of the browser.

It's the same HTTP request (`GET /path/to/image HTTP/1.1`)
Just remove "Deny from all " option from .htaccess

You only need "Options -Indexes " to disable indexes