Yes, you can use .htacess for that purpose though you don't need to password
protect the folder. I'm sure if you check the archives you'll find a way to
do it.

Something like this: (Thanks to Justin)

- E

On Tuesday, October 8, 2002 1:40 AM
Bryan Koschmann - GKT wrote:
> Yes that is the proper usage.
> Maybe you could check the referrer and only display if from the webserver?
> I can't remember if a .htaccess would work with that sort of thing, as
> password protecting would of course require a password :) Unless this
> isn't a public site and you want a password.
> Bryan
>  On Mon, 7 Oct 2002, Rick Beckman wrote:
> |I'm wanting to use PHP to make updating an entire site easier by using
> |include() [I think that's the function] to include navigation bars,
> |etc. on multiple pages. What's the best way to do that, and is it
> |to keep the included files from being indexed/viewed on their own
> |by password protecting [htaccess] the directory they are in)? Thanks in
> |advance for any help.
> |
> |
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to