How to stop carding attack on Magento 2.x store

What is Carding Attack?

Carding attack is also known as carding fraud or a form of credit card fraud where hackers use stolen credit cards to charge prepaid cards and sell them to other people. In simple terms, it’s like buying from someone’s card without their permission.

How to Stop Carding Attack?

first check your log files on your server try to find from which point or path attacker used to enter,
after finding that path block that path by using Linux facility ‘fail2ban’ that will help to restrict ips which are frequently using particular url in less then 1 mins and you can also check the list of ips and there number of visit on site by running following command on root.

netstat -ntu|awk ‘{print $5}’|cut -d: -f1 -s|sort|uniq -c|sort -nk1 -r

Leave a Comment

Your email address will not be published. Required fields are marked *

*