Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest PIZZY2

.htaccess files - Mod ???

Recommended Posts

Guest PIZZY2

Hello,

I am setting up the htaccess file to block the junk site spammers.

Now i am not sure if i have to include the origional info in the file

above or below my new permissions info ?

Will anybody be kind enough to help ?

Below is the Cube cart origional info in the htaccess file,

php_value arg_separator.output &

then do i place my new info between above/below/between the tags

<Files .htaccess>

order allow,deny

deny from all

</Files>

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]

RewriteRule ^.* - [F,L]

Share this post


Link to post
Share on other sites

Guest Zaja

Example of .htaccess file for CubeCart 3.0.1 is below:

php_value arg_separator.output &amp;



# block all files with uppercase names (i.e. VERSION) 

RedirectMatch gone ^/[A-Z].+$ 



# block all templates (no reason to have these exposed) 

RedirectMatch gone ^/.*\.tpl$ 



# block access to /classes 

Redirect gone /classes 



# block access to /includes

Redirect gone /includes 



# block access to /modules 

Redirect gone /modules 



# prevent directory listing

IndexIgnore *



# block a specific IP address

deny from 65.19.174.35

deny from 80.94.224

deny from 62.162.16.45

deny from 67.19.96.34

deny from 200.45.222.167



# block a specific host-server name 

deny from server.veryverybad.com



# block a specific domain name:

deny from .veryverybad.com

Share this post


Link to post
Share on other sites

×
×
  • Create New...