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
Something like this: (Thanks to Justin)
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.
> 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 (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