[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] All folders visable on whole server



> Forgot to add to my last message:
>
> <Files ~ "^adminpro\.(cgi|pl)$">
>     Order allow,deny
>     Deny from all
> </Files>
>
> Test: http://www.ctusa.net/cgi-bin/adminpro.cgi


If you wanted to be a bit more silent about it, you can do the following:

<Files ~ "^adminpro\.(cgi|pl)$">
    Order allow,deny
    Deny from all
    ErrorDocument 403 http://yourdomain.com/empty.txt
</Files>

Which would simply produce a blank page instead of the nasty "Forbidden"
message.  If you wanted to get real fancy, you could redirect the requests
to a script which logs the attempted access and emails you with the details.

The possibilities are as endless as your imagination.

--
Brian Curtis