Awnist

Restrict access to Magento admin based on IP

Add this to .htaccess after “RewriteBase /”: # Restrict admin access RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 RewriteCond %{REQUEST_URI} admin [NC] RewriteRule ^(.*)$ / [F,L]

Get a list of the most active IPs based on specific urls in Apache logs

grep KEYWORD access.log | grep KEYWORD2 | awk ‘{print $1}’ | sort -n | uniq -c | sort -rn