View Single Post
  #14 (permalink)  
Old 06-18-2008, 05:16 PM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,629
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: "SearchEditors.com" would appreciate review (by Webnauts)

Looks pretty good. Only suggestions I would have are:

If possible in your server configuration (or .htaccess if this is a shared server) set the ServerToken to Product Only. This will prevent the forbidden message and the server headers from displaying the version of Apache you are running.

I see you blocked the /templates/ directory as suggested by amxfan. However, it may still be possible to guess file names and use other (possibly yet undetected) vulnerabilities to execute files in that area. May I suggest, remove the /templates/ and other sensitive directories from your robots.txt file, and replace the 403 Forbidden response with a 404 Not Found? This can be done by removing the allow/deny rules you added to .htaccess, and replacing them with:

RedirectMatch 404 /templates/.*

This will cause your server to display your customized 404 error page instead of the current static 403 forbidden message. It should be friendlier if a user does get to that folder by mistake, and should also help with security by hiding the folder.
__________________
The best way to learn anything, is to question everything.