Top Nav

Magento – List Applied Patches

You can view a list of patches that have been applied to a Magento site with:

You’ll get something like this:



How To Clear btmp File

Running low on storage. Check the /etc/btmp file where failed login attempts are logged. This file may be very large:

The file can be cleared like this:

Credit for this goes to Tournas Dimitrios who has a great article on btmp:


Howto Determine Magento Version

Previously we posted an article on how to determine Magento version by checking the app/Mage.php file:

Determine Magento Commerce Version

Here’s another technique that I like using PHP command line:

Credit for this goes to




Block XSS on Apache or Nginx

Here are some handy Apache rewrite rules for blocking cross site scripting (XSS) attacks:

And here are similar rules for Nginx:

We gathered these rules from several sources around the net so they are not original but it’s handy to have them all in one place with both the Apache and Nginx versions.