This is one of those seemingly simple topics that has most linux geeks a bit stumped until they do some indepth reading on it.. but it's a pretty important procedure - especially for game modders, since we often want to do limited releases of betas etc.
As such, recently I was discussing how I have been locking down folders, and thought everyone could benefit from what I posted.. assuming they have admin access to a linux web server.
[DRuG]NikT wrote: Hey..
the .htaccess is only part of it, if you google the same howto I did (dont have link any more), it detailed the changes you needed to make to the httpd.conf as well... here's a brief one I made..
For each directory you want to secure, you need to adjust /etc/apache2/apache2.conf
Add the following, z being the directory you want to secure.
<Directory /var/www/z> AllowOverride All </Directory>
Create a file in the dir you want to protect called .htaccess - the .htpasswd file can be made later in any folder you like, but it must be specified here.
In total there are 4 users online :: 3 registered, 0 hidden and 1 guest (based on users active over the past 60 minutes) Most users ever online was 1855 on Sat Mar 19, 2016 11:34 am
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]
Total posts 10061
Total topics 1321
Total Announcements: 3
Total Stickies: 10
Total Attachments: 411
Page Loads: 60241255
Topics per day: 0
Posts per day: 1
Users per day: 0
Topics per user: 3
Posts per user: 23
Posts per topic: 8
Total members: 429
Latest: |CrF|Alan
Google [Bot] Sat May 02, 2026 11:45 amBaidu [Spider] Sat May 02, 2026 11:45 amBing [Bot] Sat May 02, 2026 11:14 amMajestic-12 [Bot] Sat May 02, 2026 5:49 amGoogle Adsense [Bot] Fri May 01, 2026 12:45 pmMSN [Bot] Sun Apr 12, 2026 10:51 pmMSNbot Media Sun Apr 12, 2026 12:16 pmW3C [Validator] Thu Dec 18, 2025 1:28 amYahoo [Bot] Wed Dec 17, 2025 6:18 pmAsk Jeeves [Bot] Wed Dec 17, 2025 2:28 am