Search Engine Optimization > Webmaster World > .htaccess 403 problem
.htaccess 403 problem
Posted by snorkerz@gmail.com on March 10th, 2006

Could anyone tell me how to make a 403 page come up if there is no
index.htm etc file in a directory. My directories currently come up
with a list of the files in there. I know I can put IndexIgnore * in
the .htaccess file, but that doesn't generate the 403. Thanks All :-)

Posted by hug on March 10th, 2006

snorkerz@gmail.com wrote:

If I'm remembering correctly a 403 means "Forbidden". Are you sure
you're not thinking of 404 (Not Found)? If that's what you want you
need to look at ErrorDocument.

--
http://www.ren-prod-inc.com/hug_soft...action=contact

Posted by Terry on March 10th, 2006

snorkerz@gmail.com wrote:
please stay out ;-)

It is simple and works - two good things IMHO.

--
TK
http://www.wejuggle2.com/
Still Having a Ball











..

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Posted by snorkerz@gmail.com on March 10th, 2006


Terry wrote:

Can't argue with the logic - and agree it would work - but it's a case
of wanting to know the 'real' way of doing it so that I'll know in the
future :-)


Posted by snorkerz@gmail.com on March 10th, 2006

You're right, 403 is 'Forbidden' but I'm sure that's what most apache
servers normally throw up instead of a list of files.

Posted by Toby Inkster on March 10th, 2006

snorkerz wrote:

Options -Indexes

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact


Posted by hug on March 10th, 2006

snorkerz@gmail.com wrote:

The real way of keeping people out is to make it impossible (or at
least very difficult) for them to get in. That "Apache basic access"
thing is one way to get the job done.

--
http://www.ren-prod-inc.com/hug_soft...action=contact

Posted by JackM on March 11th, 2006

snorkerz@gmail.com wrote:

Toby gave you the right answer but to take it a step further, I prefer
doing it this way:

Options -Indexes FollowSymLinks Includes

But just the Options -Indexes will do what you're asking.

Jack

Posted by Paul Ding on March 11th, 2006

On Fri, 10 Mar 2006 22:47:27 +0000, Toby Inkster
<usenet200603@tobyinkster.co.uk> posted something that included:


Just in case you're confused by all the other responses, Snorkerz,
Toby has it right.


--
AmishHosting.com


Posted by snorkerz@gmail.com on March 11th, 2006

Thanks to everyone for their help - I'm going to sit down right now and
sort it out.

Funbolt.com - Entertainment portal, wallpapers, sexy celebs