HomeWordpress

Hotlinking Kya Hai Aur Disable Kaise Kare?

Like Tweet Pin it Share Share Email

Kya aap jaante hain Hotlinking ke bare me? Agar nahi to main yaha aapko iske bare me batane ja raha hu aur sath me yah bataunga ki kyu aapko apni wordpress site me Hotlinking ko disable karna chahiye.

Sabse pahle hum iske ke bare me jaan lete hain, ki yah hai kya?




hotlink disable

Kya Hai HotLinking

Jab koi website owner aapki site ki images ki link ko copy karke apni website me add karta hai to isko hum hotlink karna kahte hain. Nahi samajhe? ok example deta hu:-

“Meri website askmehindi ki image ki link kisi dusri website ne copy karke apni website me publish ki hai mean usne hotlinking ki hai”

Aapko Holink Disable kyu karna jaruri Hai

Koi aapki site ki images ki link copy karke apni site me add karta hai to iska seedha negative  effect aapki site speed par padta hai. Kaise? batata hu:-

Jab koi aapki images ki link copy karke apni site me publish karta hai, to jab bhi koi uski website me wo image open karega to wo image hamare server se download hogi, mean aapke server ki bandwidth ka use hoga.




Aapke server ki bandwidth use hone se server par load badhega aur aapki site slow work karegi. Ab zara sochiye aisi kayi images jab aapke server se download hogi to aapki site speed par kitna effect padega.

Bus isiliye experts hume apni site speed ko increase karne ke liye Hotlinking ko disable karne ka suggestion dete hain.

Ok to aapke mind me ek hi question hoga ki kaise aap apni wordpress site me Hotlink stop kare, jis se aapki site par koi negative impact na pade.

Hotlink disable karne ki 3 methods hai, jo main aapko bata raha hu, aap kisi bhi  method ka use kar sakte hain. Let’s See:-

Method 1# Use Hosting Cpanel 

Aapke hosting Cpanel par aap easily hotlink ko stop kar sakte hain. Sabhi popular hosting provider yah feature Cpanel me provide karte hain.

  • Apne hosting Cpanel par login kare.
  • Login karne ke baad Security box me HotLink Protection icon par click kare.

Cpanel hotlink protection

Ab aapko settings me below details add karna hai. Kayi hostings sites me yah details already added hoti hai aapko sirf enable karke submit karna hota hai. (see below)




disable hotlink cpanel

  1. Sabse pahle Enable par click kare.
  2. List the URL to which you wish to allow access: Me apni website ka address add kare. Site ka address ‘www’ and without ‘www’ – both add kare. (see above image)
  3. Block direct access for the following extensions: Me aap jin image format ka use karte hain uska extension add kare. Generally yaha aapko sabhi image format extension add karna hai. Comma add jarur kare.
  4. Allow direct request par √ check mark kare.
  5. Now Submit par click karke Settings save kare. Done!

Method 2# Plugin Ka Use kare

WordPress directory me All In One WP Security & Firewall free plugin sabhi security features ke sath-sath aapko images hotlinking protection bhi provide karti hai.

Aap is plugin ko install karke apne wordpress site ko secure to kar sakte hain sath hi images ko bhi protect kar sakte hain.

  • Sabse pahle apne WordPress dashboard par Plugins » Add New par click kare & All In one WP security & Firewall Plugin search karke install and Activate kare.
  • Plugin Install & Activate hone ke baad WP Security option aapke Panel me nazar aayega.
  • WP security me aapko Firewall » Prevent Hotlinking par click karna hai.
  • Ab aapko prevent Hotlinking option par √ check mark karke enable karna hai and setting save karna hai. (see below image) Done!

hotlink prevent plugin

Method 3# Use .htaccess file

Aap .htaccess file me script insert karke bhi hotlink disable kar sakte hain. Agar aap .htaccess ko editing kaise kare iske bare me jaante hain to yah method use kare.

  • Hosting Cpanel me login kare and File Manager icon par click karke open kare.
  • File manager me .htaccess file par right click kare and EDIT select kare.
  • Now editing me sabse top par below code paste kar de. And save kar le.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?my-website.com/.*$ [NC]
RewriteRule \.(jpg|jpeg|gif|png|bmp)$ http://www.my-website.com/restricted.html [R,L]

Note: my-website.com ki jagah apni site ka  name enter kare without www & http. Done!


To aapne dekha ki kaise aap 3 methods ka use karke hotlinking stop kar sakte hain aur apne server par bandwidth ka unwanted use kam kar sakte hain.

Ab jab bhi koi aapki images ki link ko copy karke apni site me add karega to uski site me image show nahi karegi, just 403 error show karegi. Mean aapki site safe hai holinking se.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *