Actually I want to use hotlink protection in my web without using hotlink protection plugin. So how to do it?
Cloudflare offer the same at the last setting tab i remember.
Dont use it if you use plugin like shortpixel for images as it doesnt work well with those.
For NGINX Web server you can try this way, it would require a sysadmin level experience to implement it. Better consult a expert.
For CloudFlare, use Scrape Shield option.
If you use BunnyCDN, check its security menu.