Perfect .htaccess file for highspeed and security - update

vanzina

Active member
Nov 13, 2018
121
152
43
Hi,
I share this .htaccess file that I discovered recently and I'm using for my blog. Security starts from this small file. I hope it can be useful.

In addition, for further information I recommend the site below.
https://www.drweb.de/htaccess/ Andreas Hecht

Forked from indysigner with new 7g Firewall last update 2/2020
 
Last edited:

Lucifr07

Active member
Trusted Uploader
Mar 25, 2019
106
64
28
Hi,
I share this .htaccess file that I discovered recently and I'm using for my blog. Security starts from this small file. I hope it can be useful.

last update 7/2019
link - Author : Andreas Hecht

In addition, for further information I recommend the site below.
Author : askapache

I hope that I have not violated any forum rule.
It's a 2-year-old post, WordPress has been evolved in the last two years.
Anyone using this file, make sure to backup your current file. otherwise, it can break your site.
 

sabs_rocks

Active member
Oct 6, 2019
224
101
43
techarea.in
Good share..but there are some issues as mentioned in that site itself..but if any wordpress guru could help to fine tune it for current setup.mit would be great
 

far_47

Active member
Jun 12, 2019
145
40
28
I've tried it with different Websites. On one it worked very well and I immediately noticed the speed, but unfortunately on others (with WPML) it did not work. It crashed the site.
It would be nice if some expert would make corrections and share it with others here in this forum.
 

vanzina

Active member
Nov 13, 2018
121
152
43
It's a 2-year-old post, WordPress has been evolved in the last two years.
Anyone using this file, make sure to backup your current file. otherwise, it can break your site.

Tha Author write UPDATE 2019/07 - some part for example 6G FIREWALL/BLACKLIST @Update 2019 / 2 . For me work fine
 

vanzina

Active member
Nov 13, 2018
121
152
43
I've tried it with different Websites. On one it worked very well and I immediately noticed the speed, but unfortunately on others (with WPML) it did not work. It crashed the site.
It would be nice if some expert would make corrections and share it with others here in this forum.

write a msg to Andreas Hetch.
 

darkmesaia

Member
Nov 13, 2019
50
17
8
Everywhere!
You are looking for the best solution for a satisfactory htaccess for performance and security. However it would be very subjective to mention some general rules about htaccess when you do not know your hosting infrastructure, what cms using and cache plugins.

In most cases when using cache pugins from cms like as wordpress, joomla etc, htaccess is modified by each cache plugin.

To get the best possible htaccess information harvest, give any information that may seem useful. Hosting features, cms, cache plugins etc. I hope you can understand my reasoning. :)
 
  • Like
Reactions: DJJigsaw

ckeeper

Well-known member
Nov 8, 2019
623
376
63
You may have issues with this file if you are already using some sort of caching extension since those extensions also adds similar values under .htaccess files. If you are using nginx this will not work just a word of caution. They do however nginx version of 7g Firewall as well, that can be used instead.
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu