简体   繁体   中英

Folder Permissions IIS 7 server. Denying acces to folder to web browsers

I'm new to servers and i would like to ask a simple question.

I've got a website (aspx) with a folder where i store images.

Mobiles connect through http client (generic handlers) and can download images from the folder, but i want to deny the access to this folder to web browsers so the images can't be seen.

How could i do that?

Thanks in advance

I think you could use something like this

<configuration>
<location path="MySubDirectory">
    <system.web>
        <authorization>
            <deny users="*"/> <!-- Denies all users -->
        </authorization>
    </system.web>
</location>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM