------------------------------------------------------------------------------------------------------------------- .htaccess ------------------------------------------------------------------------------------------------------------------- Para personalizar .htaccess debe estar configurado en httpd.conf: AllowOverride All Si: AllowOverride None, .htaccess no funcionará ------------------------------------------------------------------------------------------------------------------- DirectoryIndex filename.html <- Default page DirectoryIndex filename.html index.cgi index.pl default.htm IndexIgnore * <- Do not list files (no indexes) IndexIgnore *.gif *.jpg <- Do not list .gif .jpg files Options +Indexes <- Activate Directory Listing Options -Indexes <- DeActivate Directory Listing AddHandler application/x-httpd-php .php .htm <- Process .htm files as PHP files AddType text/html .php <- Process .php files as text/html [ GOOD!! ] AddHandler text/html .php <- the web browser will prompt to download the .php files AddType application/x-httpd-php .ccm ErrorDocument 404 /404.ccm ErrorDocument 500 /500.ccm AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/blank.html$1" <-- dont show *http:///domain.com/manual* [NO CONFIRMADO] AuthType Basic AuthName "SnortIDS" AuthUserFile /var/www/passwords/passwords <- has user:CipheredPassw Require user base RSRC: http://tips-scripts.com/?tip=upload#tip <- Best TIPS Preventing Images hot linking: http://www.javascriptkit.com/howto/htaccess10.shtml ------------------------------------------------------------------------------------------------------------------- by Hugo Martin, SCNP 2007 (cc) www.hackcraft.com