Minimize Text   Default    Enlarge Text

How can I block specific hacker activity?

Print
Save to list
Subscribe
Some common attempts to probe your site for old vulnerabilities can be blocked by adding the following code to your store's /.htaccess file.
(Blocking probes for old fixed vulnerabilities saves server CPU power since the probe is blocked before it has to process the whole page's content.)
NOTE: This is only suitable for Apache webservers. If you're stuck using IIS, contact your hosting company for the appropriate approach.

// redirects any URL that includes: record_company.php/password_forgotten.php
RedirectMatch Permanent ^/(.*[record_company.php]+)/(password_forgotten.php)$ /page_not_found.php

// redirects any URL that includes: /images/wp- with 'wp-' being anything that ends with '.php'
// this allows for images named such as 'wp-header.jpg' to work
RedirectMatch Permanent ^/(.*[images]+)/(wp-.*\.php)$ /page_not_found.php


NOTE: If your store's files are located in another folder, add that folder in the /page_not_found.php (both places)




Additionally, if you're using Zen Cart v1.3.0-thru-v1.3.8a, you might also consider this method of blocking some other script-kiddie attacks that waste server resources: http://tutorials.zen-cart.com/index.php?article=320




Related Articles
How do I put my Documents in their own Menu Sidebox?
Please see this link: Documents in their own sidebox
How do I change the colors and fonts?
Find: /includes/templates/YOUR_TEMPLATE/css/stylesheet.css Start by opening the style sheet in your favorite text editor: All of the pages are broken into smaller...
Can I print a high resolution logo on my invoices and packing slips?
You can. Firstly, if you don't already have it, create your high resolution logo at the size and resolution that you would like to print it. Then upload it to the...

 


Copyright © 2003 - 2009 Zen Ventures, LLC
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads