Forum Moderators: open

Message Too Old, No Replies

Disallow Directories

         

cmatcme

7:47 pm on Mar 17, 2005 (gmt 0)

10+ Year Member



Hi/

How do you disallow directories in asp?

I would prefer not to use .htaccess but an asp method which will spring up an error message like this.
[webmasterworld.com]
Any ideas?

dotme

9:43 pm on Mar 17, 2005 (gmt 0)

10+ Year Member



Normally this is done through NTFS on the server (Assuming the volume is NTFS)

Find the folder on the server, right-click, properties... Security tab. Remove "Everyone" and, if present, IUSR_MachineName

That disallows based on authenticated user. You can also disallow based on source IP - that is done through IIS management console. Hope this helps.

cmatcme

1:22 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



Thanks dotme.