Jump to content

.htaccess files - Mod ???


Recommended Posts

Guest PIZZY2
Posted

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]

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...