How can I protect a folder with some files from being accessed by htaccess? I'm newbie so take it with grain of salt.
Stefano Mtangoo 455
Senior Poster
Recommended Answers
Jump to PostHey.
If you want to completely deny access to all files in a directory, you can create a .htaccess file containing only
Deny from all
That will block all access to it.
If you just want to block access to some files, you can use …
Jump to PostYes, this only limits access through the HTTP server, so access by server-side scripts will not be affected.
You can also be more specific in who you block.
For instance, this would block access to all PHP files, except for computers on a typical LAN and the localhost:
All 8 Replies
Atli 182
Posting Pro
Stefano Mtangoo 455
Senior Poster
Atli 182
Posting Pro
Stefano Mtangoo 455
Senior Poster
Stefano Mtangoo 455
Senior Poster
Atli 182
Posting Pro
Stefano Mtangoo 455
Senior Poster
Atli 182
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.