The application relates to a method and a device for preventing 
address resolution protocol (ARP) attacks, as well as 
computer equipment and a storage medium, wherein the method comprises the following steps of: acquiring the 
IP address allocation requests transmitted by each of the terminals of a 
local area network, and 
parsing the allocation requests to obtain MAC addresses corresponding to eachof the terminals of the 
local area network; transmitting the IP addresses to each of the terminals according to the allocation requests, and recording the MAC addresses of each of the terminals and the correspondingly assigned IP addresses to obtain a correspondence relationship table; receiving an ARP query request message carrying the 
IP address of a target terminal and transmitted by the firstterminal of the 
local area network, and transmitting the ARP query request message to the local 
area network broadcast; acquiring an ARP reply message transmitted by a second terminal, and 
parsing the ARP reply message to obtain the current 
IP address and current 
MAC address of the second terminal; matching the current IP address and current 
MAC address with the IP addresses and corresponding MACaddresses of each of the terminals in the correspondence relationship table, forwarding the ARP reply message to the first terminal if the match is successful, otherwise discarding the ARP reply message. By using the method, ARP attacks can be effectively prevented.