G
GD
I'd like to prevent users from downloading my CSS file. I thought about
putting a web.config file inside my CSS directory as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
However, if I browse directly to http://mysite/css/style.css, I can
still download the file.
Am I setting up the web.config correctly? When set up correctly, will
this prevent my aspx pages from accessing my style sheet?
Thanks!
putting a web.config file inside my CSS directory as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
However, if I browse directly to http://mysite/css/style.css, I can
still download the file.
Am I setting up the web.config correctly? When set up correctly, will
this prevent my aspx pages from accessing my style sheet?
Thanks!