Monday, 21 May 2012
 Home arrow Blog arrow Apache-Website Security
   
Main Menu
Home
News
Blog
Links
Search
FAQs
Spider
Articles
@intrenet
Free Softwares
Break for fun
Friends VIdeos
Techno videos
Contact Us
Disclaimer
Guest Book
Speed test
V.E.C. Calculator
IPv4 Subnet Calc
IPv6 Subnet Calc
Byte Converter
Converter
GMT/UTC Time
Bandwidth Calc
Allinone Calc
IANA Port Numbers
Country Call Codes
Pk Postal Codes
Surf Anonumously
Visitors Counter
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday114
mod_vvisit_counterYesterday203
mod_vvisit_counterThis week114
mod_vvisit_counterThis month4663
mod_vvisit_counterAll125339
 
 
 
 


Apache-Website Security PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Amanatullah khalil   
Sunday, 24 May 2009

Apache-Website Security

 

Simple clear Security for Websites running on Apache. This can be on any flavor of Unix


In the httpd.conf file edit this line:
Directory /
Options FollowSymLinks
AllowOverride None
/Directory

To read:
Directory /
Options FollowSymLinks
AllowOverride AuthConfig
/Directory

**note** -the above lines have <> on each side of the Directory statement. This form would not accept the brackets. **end Note**

go to serverroot/bin and run the command:
htpasswd -c /password example test
-this creates the password file. It will prompt for new password expample. testpassword

*****Remember****** must make password file executable. You can find it in / .

then create a file named .htaccess that reads:
AuthType Basic
AuthName “Restricted Files”
AuthUserFile /password
Require user test

Now when you hit the website or the files in the directory you want to secure it will prompt you for the test username and the password that you created. This is clear text so be careful. More than one name can be used by using the htpasswd command without the -c option. It will just add more named below it. I usually use this on webservers that are internal that I want to restrict certain users to. More info at apache.org documentation

courtesy http://www.tech-recipes.com/rx/416/apache-website-security/

 
< Prev   Next >
 
 
 
csatpk Newsflash
Statistics
OS: Linux h
PHP: 5.2.17
MySQL: 5.1.63-community-log
Time: 20:46
Caching: Disabled
GZIP: Disabled
Members: 3
News: 368
Web Links: 5
Visitors: 265570
Popular