Disable image hotlinking (Wordpress installed)

Hi. I need to disable hotlinking on my entire domain. I usually use the code from this page and it works, but it does not seem to work when I have WordPress installed.

I have WP installed in a folder on my domain. My .htaccess file is in the root of the domain, and that’s the file I insert the code into. I’ve tried using all the code variations on the HTML Basix website but none of them seem to work. I’ve had the code at the beginning of the file, at the end of the file, it doesn’t change anything.

Please help me disable image hotlinking on my website with WP installed! Thanks.

There’s an option in the panel to prevent this. Here’s the wiki article with the info, plus other methods: