Guest PIZZY2 Posted August 3, 2005 Posted August 3, 2005 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] Quote
Guest Zaja Posted August 3, 2005 Posted August 3, 2005 Example of .htaccess file for CubeCart 3.0.1 is below: php_value arg_separator.output & # 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.