Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Internet > Web Hosting     

RemoveType in .htaccess


If you have multiple users' pages sitting under one directory you can make it more secure with
RemoveType directive, just place .htaccess in the top level directory. For example:

/www is the web server root
/www/users is the directory where user directories are
/www/users/dummy is the directory where user named dummy keeps his/her webpages

Create .htaccess in /www/users and put the following lines in it. I'm assuming you will not
allow users create files starting with . (dot)

RemoveType .cgi
RemoveType .php

Add / remove other types depending on what you are runnig on your server.


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

  Details
Tip reference : #144
views : 367
Added on : 11/16/06
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (161)
 
 
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com