•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,493 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,677 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 5085 | Replies: 12
![]() |
•
•
Join Date: Jul 2004
Posts: 226
Reputation:
Rep Power: 5
Solved Threads: 6
Use .htaccess and .htpasswd to protect folders
Read more.
http://www.clockwatchers.com/htaccess_tool.html
http://web-bureau.com/modules/bsecure.php
Hope it helps.
Read more.
http://www.clockwatchers.com/htaccess_tool.html
http://web-bureau.com/modules/bsecure.php
Hope it helps.
•
•
Join Date: Aug 2004
Posts: 14
Reputation:
Rep Power: 5
Solved Threads: 0
Thanks a lot. I am working on it.
phpnovice
phpnovice
•
•
•
•
Originally Posted by PoA
Use .htaccess and .htpasswd to protect folders
Read more.
http://www.clockwatchers.com/htaccess_tool.html
http://web-bureau.com/modules/bsecure.php
Hope it helps.
•
•
Join Date: Nov 2003
Location: Toronto, Canada
Posts: 354
Reputation:
Rep Power: 6
Solved Threads: 5
Also I find this handy if I want to completely block users from viewing the contents of a folder; just put deny from all in a .htaccess file to block all users!
This is great for a folder that contains include files that are included by other scripts but are never seen directly
This is great for a folder that contains include files that are included by other scripts but are never seen directly
•
•
Join Date: Aug 2004
Posts: 14
Reputation:
Rep Power: 5
Solved Threads: 0
•
•
•
•
Originally Posted by Gary
Also I find this handy if I want to completely block users from viewing the contents of a folder; just put deny from all in a .htaccess file to block all users!This is great for a folder that contains include files that are included by other scripts but are never seen directly
Hi Gary,
Thanks for your help. I tried .htaccess, but it did not work. Once I set it up, I could not access mysql. Any attempt was refused by mysql. I tried different php code, and none of them worked. Then I switched my apache server to abyss server. Now I can easily access mysql. The problem is that abyss appears not support .htaccess. It will be greatly appreciated if you would help me set this protection up.
Thank you very much.
phpnovice
•
•
Join Date: Nov 2003
Location: Toronto, Canada
Posts: 354
Reputation:
Rep Power: 6
Solved Threads: 5
Yep, .htaccess is only for Apache; and that's the only webserver I know, sorry
With .htaccess a little trick learned is to use:
IndexIgnore *.php
You can use things other than php but basically this hides all files from being seen in a directory if they have a .php extension. You can still open them however, so this should only really be used to hide rather than to block.
IndexIgnore *.php
You can use things other than php but basically this hides all files from being seen in a directory if they have a .php extension. You can still open them however, so this should only really be used to hide rather than to block.
Class Info:
Warrior Priest | Bright Wizard |Witch Hunter | Rune Priest |Engineer | Hammerer |Ironbreaker | Black Orc |Orc Choppa | Goblin Shaman |Squig Herder | Chosen |Magus | Zealot | Marauder
Warrior Priest | Bright Wizard |Witch Hunter | Rune Priest |Engineer | Hammerer |Ironbreaker | Black Orc |Orc Choppa | Goblin Shaman |Squig Herder | Chosen |Magus | Zealot | Marauder
•
•
Join Date: Nov 2003
Location: Toronto, Canada
Posts: 354
Reputation:
Rep Power: 6
Solved Threads: 5
Interesting, thanks YoungCoder
If I had the time, I would look through the whole Apache doc to learn more things - but sadly, I don't :p
If I had the time, I would look through the whole Apache doc to learn more things - but sadly, I don't :p •
•
•
•
Originally Posted by Gary
Interesting, thanks YoungCoderIf I had the time, I would look through the whole Apache doc to learn more things - but sadly, I don't :p
That would acctually make quite a nice bedtime read! So when you goto bed after a hard day coding, and are ready to unwind, you can have a nice thorough read! I have done similar before and have acctually dreamt about programming!
Class Info:
Warrior Priest | Bright Wizard |Witch Hunter | Rune Priest |Engineer | Hammerer |Ironbreaker | Black Orc |Orc Choppa | Goblin Shaman |Squig Herder | Chosen |Magus | Zealot | Marauder
Warrior Priest | Bright Wizard |Witch Hunter | Rune Priest |Engineer | Hammerer |Ironbreaker | Black Orc |Orc Choppa | Goblin Shaman |Squig Herder | Chosen |Magus | Zealot | Marauder
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: can we download files from other websites using php
- Next Thread: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource


Linear Mode