[CentOS] .htaccess file

TE Dukes

tdukes at palmettoshopper.com
Sun Aug 28 14:36:25 UTC 2016


Hello,

 

My home system on a DSL line is getting worn out by bad behavior robots. 

 

Awhile back, I created a .htaccess file that block countries by IP blocks.
Its 2MB in size.

 

I have been running Linux since Slackware 1.0 and moved to Redhat around
2.0. I started after running a BBS using a doorway for newsgroups. Been
hooked ever since.

 

So, today, I tried following the directions for apache.org website,
https://httpd.apache.org/docs/current/howto/htaccess.html to move the
.htaccess
<https://httpd.apache.org/docs/current/howto/htaccess.html%20to%20move%20the
%20.htaccess>  file to a file located in a directory /var/www/htdocs.

 

I'm just not following or understanding. The .htaccess file works but on a
slow DSL, I don't want the hits.

 

I added the following to my httpd.conf:

 

<Directory "/var/www/htdocs">

    AddType text/htdocs ".txt"

</Directory>

 

And copied my .htaccess to /var/www/htdocs as htaccess.txt

 

In the example from the apache website, I don't get the: AddType
text/example ".exm" Where did they come up .exm? 
 
TIA

 




More information about the CentOS mailing list