Hmm I just thought of something. Maybe you are not exactly sure what “hotlinking” means. A direct link to your website is not a hotlink. A hotlink to an image is when someone is loading your image file on their website by using code like this below, which as you can see is blocked below since your Hotlink Protection code is working.
[hotlink example – removed/deleted]
Or another very common thing that happens all the time is this scenario: Your image was not originally hotlink protected and another website hotlinked to that image file. That other site is using an external service like cloudflare or a CDN and cloudflare or the CDN is displaying the image and not that actual website that originally hotlinked your image. External services like cloudflare and CDN’s literally copy data and images and store and display them from their servers. Basically this means that your image file has been copied and if that is the case then you cannot do anything about that. The image is no longer being retrieved from your website, it is being retrieved from cloudflare or a CDN that copied your image.