I have an ASP.NET website and I need to block a specific folder named /swf.
This folder have a lot of swf files that cannot be accessed from unauthenticated users.
Ideas?
Consider using the configuration/location
nodes in your web.config. Details on MSDN
<configuration>
<location path="MySubDirectory">
<system.web>
<authorization>
<deny users="*"/> <!-- Denies all users -->
</authorization>
</system.web>
</location>
</configuration>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With