I have a web site that is protected by forms authentication and it shows some HTML pages that have some dynamic content being provided by javascript files.
But how do I stop an authenticated user from viewing my javascript files?
So lets say my users are at this url:
http://mywebsite/render/html/mainpage.htm
How do I stop a user entering this url and viewing my javascript:
http://mywebsite/render/jscript/myjsfile.js
So I tried this in my web.config but it just stopped my javascript from working:
<location path="render/jscript">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
I'm assuming this must be possible and something really simple I'm missing...