preventing indexing on files without extensions

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

preventing indexing on files without extensions

Post by Thunderstone »




Is there any way to prevent indexing on files that have NO file extension?
For example, for some unknown reason, some gif and jpeg files uploaded
without file extensions and are referred to within the html text without
the extension.

Thanks,
----As I can---
from:
Tony Wright
College of Agriculture and Home Economics
PO Box 646230
Washington State University, Pullman WA 99164-6230



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

preventing indexing on files without extensions

Post by Thunderstone »



There's no provision for skipping files with no extension. Skipping
files with no extension would tend to miss directories. Also gw will
reject anything not of the "text/*" mime type (by default, see -T -S).

The webserver may not be setting the mime type correctly though (it may
be similarly confused). In that case I would imagine that web browsers
wouldn't display the images properly. The site should be fixed (if you
have any influence over it) either by setting the mime type correctly
or by using extensions.

You could use -x or -x/ (see http://www.thunderstone.com/gw25man/node57.html
and http://www.thunderstone.com/gw25man/node58.html) if there's any
common pattern to the file locations or names that wouldn't also match
desired files.




Post Reply