Your question is a bit vague. Are you asking if it is possible to secure a specific file using
config.web
?
If so, then yes. It would look like this:
<configuration>
<location path="MyFile.ext">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>
The
<authorization>
element allows or denies access, exactly as if you were securing a folder. Note that each file requires its own
<location>
element, so this method is not very useful for securing a large number of files.