Download Iremove .ds Store Files 1.5 For Mac
DSStore Terminator 1.0 - Removes.DSStore files in a directory. Download the latest versions of the best Mac apps at safe and trusted MacUpdate.
Click here to return to the 'Prevent Apache from serving .DS_Store files' hint |
Perhaps one should also add .DS_Store to the IndexIgnore line. I would use something like this:
IndexIgnore *~ *# HEADER* README* RCS CVS *,v *,t .DS_Store
This would prevent .DS_Store from showing up in the index.
---
'Perhaps nothing is true, and not even that!'
Multatuli, Ideen 1
Even better. Disallow anything starting with a dot.
# Disallow viewing of .DS_Store, .FBCIndex etc.
# These files are internal to MacOSX but are a potential security risk
# so basically we don't allow access to ANYTHING that starts with a dot
<FilesMatch '^.'>
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
---
--
NIL ANXIETAS
http://www.haroldbakker.com/
Would any of these suggestions prevent Apache from displaying a directory listing if someone were to try to access http://myipnumber/ or http://myipnumber/~myuserid/ without specifying a file (e.g. index.html) in the url? Or is there a way that I can force a url to the directory to access a specific file or alternates?
Thanks,
Lou
Add '-Indexes' to the document root Directory container. Ricoh driver for mac os 10.11.
Paragon ntfs kickass. Microsoft NTFS for Mac by Paragon Software supports ALL the versions of NTFS (from Windows NT 3.1 to Windows 10). Microsoft NTFS for Mac by Paragon Software is able to get access to compressed files and folders, it has no problems with sparse files and enables all the needed operations with files and folders with security permissions.
Yes, Lou, there is a way!
Apache allows you to tell it what it can or cannot show when it is asked to serve a directory without any index page in it. The details for what else you can ask Apache to do in such a case can be found in the Apache manual. The URL on your computer will be:
http://127.0.0.1/manual/
The keyword will be 'Indexing.'
To stop index listings being created, here is the shortcut if you want it right away. First edit the Apache Configuration file, httpd.conf with:
sudo pico /etc/httpd/httpd.conf
And add this block of text to the end of the file:
# Don't allow any files in an index listing of the directory
<Directory /Library/WebServer/Documents/*>
IndexIgnore *
</Directory>
# end of index limiting
I think this will solve your problem in the shortrun. For more complex matters, you can use the indexing commands in Apache to actually point to a generic index.html should a directory not contain one.
Just needed to give myself a minute to come up with something better than my last solution! First I told you to use IndexIgnore * so that Apache's indexing engine would not list any files in the index.
Starting with my previous example, replace IndexIgnore * with this line:
DirectoryIndex index.html /oops.txt
You must also create a text file name oops.txt that contains a message like, 'no files here for you to see!' and store it in /Library/WebServer/Documents/. Now when anyone surfing to a directory on your machine that contains no index.html will get the message in opps.txt. This will be global for your machine, and I think this is a better solution than what I suggested earlier. Amazing what I can come up with when I RTF. :)
I'm running Apache on Linux box but work remotely from a Mac, so the same situation applies to me, too.
I've noticed that I also have files that start with a colon, too. Maybe it's a by-product of netatalk AppleShare file server.
Anyway, I appended this to the IndexIgnore line:
.* :*
It seems to take care of both cases. BTW, I MUCH prefer not showing the visitor something that they shouldn't have access to rather than let them see it but forbid them to access it.
Much more tidy.
Great suggestion.
--Richard
those filenames which begin with a colon are netatalk's way of displaying non-ASCII characters such as a bullet (•), which Mac users often use to force custom sorting. I don't know how to translate the numbers, but netatalk has always done a good job of preserving these 'think different' filenames for me. In the OS X Terminal, non-ASCII characters are displayed with a '?'.
By the way, the httpd.conf file for my Panther installation has: The '.??*' at the beginning will let you ignore any dot files without ignoring . (i.e. the parent directory). Louie---
G4 cube, 1152M RAM, OS X Server 10.2.8
17' Powerbook G4, 1G RAM, OS X 10.2.8
Does anyone know how to prevent the serving of invisible (example: Icon) files with the Mac OS X FTP server?