|
Great Tutorial on .htaccess
|
|
Jul 23, 2009, 01:08 AM
(This post was last modified: Jul 23, 2009 01:09 AM by Starnova.)
Post: #1
|
|||
|
|||
|
Great Tutorial on .htaccess
This works very well for us.. so I thought I would share it..It's easy and effective.
<Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> RewriteEngine On RewriteCond %{REQUEST_METHOD} HEAD RewriteRule .* - [F] # ServerSignature Off # ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 120 minutes" ExpiresByType image/jpeg "access plus 120 minutes" ExpiresByType image/png "access plus 120 minutes" ExpiresByType text/css "access plus 60 minutes" ExpiresByType text/javascript "access plus 60 minutes" ExpiresByType application/x-javascript "access plus 60 minutes" ExpiresByType text/xml "access plus 1 seconds" What this does... It does a few things: 1. the beginning denies all malicious access to .htaccess and htpasswd files 2. the second part denies all HEAD requests to domain ( lame kind of DDOS) 3. the 3d part doesn't allow pinging of your domain for server info, what type, cpu, mods installed etc. 4. the last part is about caching your forum. And it will become faster, especially if you use a lot of images etc. All html is on 1 second and thus new topics you will see instant, the CSS file is cached for 60 minutes as well as javascripts of mods and mybb board. All images are cached for 120 minutes. This reduces the reload of images css etc etc by members browsers which results in lesser bandwidth and faster loading. I have tested this on my forum with success hope you enjoy friends. |
|||
This ad removed for subscribers.
|
Sep 30, 2009, 01:58 PM
Post: #2
|
|||
|
|||
|
RE: Great Tutorial on .htaccess
wow great ^^ in sure omni would like to consider this...
![]() |
|||
|
Sep 30, 2009, 02:50 PM
Post: #3
|
|||
|
|||
|
RE: Great Tutorial on .htaccess
Testing it.
Thanks Looks good
-Rafael Im a Big MyBB Fan!!! ![]() My Forum My Blog |
|||
|
Oct 05, 2009, 01:12 PM
Post: #4
|
|||
|
|||
|
RE: Great Tutorial on .htaccess
thank you
![]() Click Here! Click Here To Get Paid For Registering At Sites Or, Pay For Real Members! |
|||
|
Oct 10, 2009, 04:50 PM
Post: #5
|
|||
|
|||
|
RE: Great Tutorial on .htaccess
cool, done!
|
|||
|
« Next Oldest | Next Newest »
|

Upgrade
Contact
Testimonials
Invite
Documents
Search
Member List
Tagpad



![[Image: 33fcljd.png]](http://i38.tinypic.com/33fcljd.png)




![[Image: logo.gif]](http://img.cyberhackers.org/images/mynovablack/logo.gif)