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)

http://marc.theaimsgroup.com/?l=php-general&m=103266066416399&w=2

- 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,
notices,
> |etc. on multiple pages. What's the best way to do that, and is it
possible
> |to keep the included files from being indexed/viewed on their own
(possibly
> |by password protecting [htaccess] the directory they are in)? Thanks in
> |advance for any help.
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to