This method is not recommended and should only be used as a last resort. In my case, my website was being attacked by random IPs from outside Indonesia at a rate of more than 100 attacks per second, and I needed to log it to track the number of visitors to my website. This is one way to check, but again, it is not recommended.
