Welcome to WebmasterWorld Guest from 18.104.22.168
I had to try that myself and it works like a charm on any Apache site.
# We include the /icons/ alias for FancyIndexed directory listings. If you
# do not use FancyIndexing, you may comment this out.
Alias /favicon.ico "/Applications/MAMP/bin/favicon.ico"
Alias /icons/ "/Applications/MAMP/Library/icons/"
Options Indexes MultiViews
Allow from all
If the FancyIndexing option is given with the IndexOptions directive, the column headers are links that control the order of the display.
My host has confirmed that the server config file Alias over-rides attempts by shared sites to block this via a local icons folder or blank index file.
As Lucy stated.
So what can such shared sites do to block this access method?
RewriteRule icons - [F]
if you have your own server
Sorry, no. Your htaccess file only affects requests that physically pass through it. Since the /icons/ directory is in a completely different location, requests for /icons/ will never see your htaccess file.
This thread is about the /icons/ directory that IS in a different location, following Apache defaults. If you have no such directory, and hence no such Alias directives, then this thread is not for you.
Not mine. (You know where I live. Feel free to try.) I get the expected 404. Maybe it depends on physical file structure? My host uses the "userspace" setup, where all domains are parallel, rather than the "primary/addon" structure.