Hotlinking Kya Hai? Htaccess File Se Image Hotlinking Disable Kaise Kare

2
15

Bahut se bloggers ne hotlinking ka naam shayd hi suna hoga. Agar aap bhi iske bare me jankari nahi hai to aaj ka ye Hindi WordPress tutorial aap ke liye hi hai. Yaha mai aapko hotlinking kya hai aur htaccess method se image hotlinking disable (without plugin) kaise karte hai, ke bare me batane wala hu.

hotlinking

Hotlinking kya hai?

Agar koi blogger kisi dusri site se images link ko copy karke apni site pe lagata hai to usko hotlinking kehte hai.

Example ke lijiye maan lo, koi meri is post ka me add ki hui image ka link copy karke apne blog pe kahi bhi add karta hai, to aisi process ko technical language me image hotlinking karna kehte hai.

Image Hotlinking disable karna kyu jaruri hai?

Actually jab koi aapke blog content (text & images) ko copy karke apni site pe publish karte hai to isse aapko web hosting bandwidth ki problem a sakti hai. Kyuki copy kiye content me jo images use hoti hai wo aapke hosting server par se hi saved hoti hai.

Ab jab koi wo content open karega to wo images aapke server se hi download hongi. Jisse aapke server pe jayada load padhega. Ab sidhi si baat ki server load hone par aapki site loading speed automatically down ho jayegi.

So I highly recommend ki aapko apne blog protection ke liye image hotlinking disable rakhna chahye. So agar aap chaho to aap ise All In One WP Security & Firewall Plugin ya fir .htaccess file me ek code add karke block kar sakte ho.

How to disable image hotlinking using htaccess file method on WordPress?

WordPress me without plugin image protection ke liye aapko htaccess file me ek code add karna hai. Jisse agar aapke blog image link ko koi apne blog me add karta hai to image ki jagah error show hoga. Yani ki wo image uske blog par load hi nahi hogi.

Htaccess file  ka use affiliate & refferal links ko allow, block, disable ya redirect karne ke liye kiya jata hai. Iski adhik jankari ke liye niche wala post padhe.

Htaccess file see aap image hotlinking disable ya protect 2 tarike se kar sakte ho.

1st apne hosting cpanel >> file manager >> public_html >> root directory >>htaccess >> edit & 2nd agar aap yoast SEO plugin use karte ho to WordPress dashboard >> SEO >> Tools >> File editor me ja kar .htaccess file open and modify kar sakte ho.

Yaha aapko niche wala code add karna hai.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourblog.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranotherblog.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranotherblog.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ https://i.imgur.com/removed.png [NC,R,L]

Green color me highlighted text “yourblog.com” par aapko apne main blog ka URL add karna hai aur “youranotherblog.com” ki jagah aap apni koi 2-3 specific website add kar sakte hai.

Yaha aap jin sites ke URL add karoge sirf unhi par image show hogi. Other sabhi sites par aapki image link protected hogi.

Agar aapki bahut si website hai to uska URL add karne ke liye aap RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?youranotherblog.com [NC] line jitni baar chaho likh ke new domains ko add kar sakte ho.

Example ke liye aap meri modified .htaccess file ka screenshot niche dekh sakte ho.

Img 

I hope ab aapko htaccess file method se image hotlinking disable karne me koi dikkat nahi hogi. Is wordpress tutorial ke bare me aapka koi sawal ya suggestion ho to comment section me puche.

HarpreetKumar blog par hum WordPress related jankari Hindi me share karte hai. Humare blog ki latest updates ki janakri direct apne email inbox me pane ke liye aaj hi subscribe kare.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here