John Campbell wrote:
I have a site that has a bunch of stuff that shouldn't be within the
document root (cron scripts, class files, etc.). I could move the
files, but fixing all of the include statements is more trouble than
it's worth.
What is the best way to tell Apache ignore a folder that resides in
the document root?
I could just rewrite/redirect requests into oblivion, but that seems
like a kludge. I feel like there should be a one line apache command
to do this, but I can't find it in the docs.
Try this in a .htaccess:
Order Allow,Deny
Deny from all
Dan
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php