Setup Hotlink for nginx or Block Referrer sites

Job ID: 31989430

Budget: $10 – $100 USD

I have a websites, and my websites have been grabbed by other websites
I want to use hotlink or block sites use my images and make my images broken in their sites

i have use
location ~ \.(jpe?g|png|gif)$ {
valid_referers none blocked domain.com *.domain.com;
if ($invalid_referer) {
return 403;
}
}

and it didn't work

my budget max 100$
Related categories: PHP JavaScript Linux WordPress Nginx