[wellylug] Use of old links by site visitors
Cliff Pratt
enkidu at cliffp.com
Tue Jan 9 17:34:31 NZDT 2007
John Durham wrote:
>
> After a lot of setting up, and some basic changes, I have been checking
> visitor statistics for my site. Some of them appear to be trying to view
> images that used to be in the /images directory (now in the /imgs
> directory). Without bothering with why they would go for the images
> directly, I'm curious to know if there is a setting for apache that will
> divert such attempts to the correct place so that old links might still
> work? PS: Please don't suggest I create the /images directory again so
> people can swipe pictures!
>
John, what makes you think that people can't swipe your pictures? :
http://modecideas.com/imgs/
You should at least turn directory listings off!
See this:
http://httpd.apache.org/docs/2.0/mod/core.html#directory
You need to turn indexes OFF for the directories that you want to hide.
This will not stop people 'swiping' your pictures by right clicking and
save as on *any* image on your site.
Basically, you set the Directory Options for the whole site by:
<Directory />
AllowOverride None
...other options...
</Directory>
The "/" in the tag says "This applies to the Docroot of the site".
Then follow this with
<Directory /imgs> <- for example
...options for the /imgs directory....
</Directory>
Cheers,
Cliff
More information about the wellylug
mailing list