


| category | articles | ||||
|
Adsense Adwords Article Blog CMS CSS Style Datacenter Design Graphics Flash Animation Internet Radio Messenger Programming Provider Search Engine Security Security Web SEF SEO Software Software Web |
Prevent htaccess From Hack 1 Make any file be a certain filetype (regardless of name or extension) #Makes image.gif, blah.html, index.cgi all act as php Authentication Magic Require password for 1 file: code: <Files login.php> Protect multiple files: code: <FilesMatch "^(exec|env|doit|phpinfo|w)*$"> Example uses of the Allow Directive: code: # A (partial) domain-name Using visitor dependent environment variables: code: SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in Allow from apache.org but deny from foo.apache.org code: Order Allow,Deny Allow from IP address with no password prompt, and also allow from non-Ip address with password prompt: code: AuthUserFile /home/www/site1-passwd block access to files during certain hours of the day code: # If the hour is 16 (4 PM) Then deny all access Redirect non-https requests to https server fixing double-login problem and ensuring that htpasswd authorization can only be entered using HTTPS code: SSLOptions +StrictRequire SEO Friendly redirects for bad/old links and moved links For single moved file code: Redirect 301 /d/file.html http://www.htaccesselite.com/r/file.html For multiple files like a blog/this.php?gh code: RedirectMatch 301 /blog(.*) http://www.askapache.com/$1 OTHER ARTICLES Safeguard your XML based messages 3 Safeguard your XML based messages 4 |
||||
| © 2001 - 2008 Tatamedia Solusindo | Link Partner: akomodasi.net, indoproduk.com, satria.com, hotelsaufbali.com, gptkk.org, apexpacific.com | |||||