Forum Moderators: phranque
IndexOptions IgnoreClient IgnoreCase FancyIndexing NameWidth=* DescriptionWidth=* SuppressHTMLPreamble AddIcon /usr/local/apache/icons/sound1.gif .mp3
AddIcon /usr/local/apache/icons/sound1.gif .mp3
Icon is either a (%-escaped) relative URL to the icon, a fully qualified remote URL, or of the format (alttext,url) where alttext is the text tag given for an icon for non-graphical browsers.
AddIcon /icons/sound1.gif .mp3 in my .htaccess, my mp3 file lists in the directory with "[ ]" in front of it. When I comment out that statement, I get nothing in front of it. No icons to be seen. Do you mean I need to have a local "icons" directory with sound1.gif in it?When you say “local” do you mean that literally, as in, this is all happening on a pseudo-server working with your local files? Quick detour to MAMP turns up not one but two /icons/ directories; the config file has a couple of lines involving the Alias* directive, as in
I have to assume that someone, somewhere, has to tell the system that "icons" points to usr/local/apache/icons.
Do you mean I need to have a local "icons" directory with sound1.gif in it? Seems like it would be easier just to point to wherever that file is sitting.
how often have you personally witnessed a robot visiting directories it isn't supposed to know about?Quite often actually... however you are using human logic, which doesn't apply to machines. Code just does what you tell it.
[edited by: phranque at 9:36 am (utc) on Nov 20, 2017]
[edit reason] exemplified domain [/edit]
The bot doesn't "guess" the name of files... it doesn't need the names of files. The agent can be written to merely open the directory and get all files.
most of these directives will display in the GET string, but others won't display at all... just the file request.
just the file request.
I remain unconvinced that this is a serious problem that the average website has to spend extra time addressing.No not a "serious problem" at all. My comments weren't concerning "hidden directories" either. I only said that a bot doesn't need to know the name of a file it requests. It can just GetFiles() which will return a file list from the current directory. Then it knows :)
Well, as I said, I don't know of any bots that know how to "scrape someone's site", because I've never had it happen to me.
Unless you have some type of blocking method stopping me, I can get every file that's accessible on your server or your account.So if your "secure" files block access, then no, I would assume bots cannot get to them.