What is hotlinking? Hot linking kya hai is bare me shayad bahut kam blogger jante hai. Jab koi user aapki post ke content ya only images ko copy kar ke apne blog par paste karta hai to usme image aapki site ke url se hi open hoti hai or aapke server se hi load hoti hai. Ise technical language me hotlinking kahte hai. Isse aapko na sirf copy pasting ki problem hoti hai balki isse aapko web hosting bandwidth ki pareshani bhi hoti hai.
Actually bahut se log humare article ko direct fully (all content with images) copy kar lete hai. Jisme use hone wali sabhi image humare hosting server ke dwara hi load hoti hai. Is wajah se bekar me aapki web hosting ka bandwidth kharch hota hai.
Table of Contents
What is hotlinking Kya Hai?
For newbie people, Jab koi aapki site ki image ko chura par apni site par use karta hai or jab koi uski site ko open karta hai to wo image aapke hi hosting server par load hoti hai. Ise hi technically bhasha me hotlinking kahte hai.
Simple words me kisi ke dwara aapki image ko copy kar apni site par add karne or aapke web hosting bandwidth ko use karne ki process ko image hotlinking kaha jata hai.
Jitni bar user unki site ko open karenge utni bar hi image aapke server se load hongi Ise hi image hotlinkg kahte hai. Is se aapko koi fayda nahi hai sirf nuksan hi hai. Ek to log aapki site ki image chori kare or upar se aapke hi server ka fayda bhi uthaye. So agar aap chaho to hotlink ko .htaccess file ki help se block kar sakte ho.
How to Prevent Image hotlinking using .htaccess on WordPress
Aap WordPress blog me .htaccess file ki help se image hotlink ko protect kar sakte ho. Iske liye aapko .htaccess file me code add karna hoga uske bad koi aapki site ki image ko apni site par use karega to image ki jagah error show hoga.
WordPress par aap .htaccess use kar ke site ko allow, block, referral link ko redirect and site ko protect kar sakte ho. Iske liye bas aapko apne hosting cPanel par ek .htaccess ke name se file create karni hoti hai. WordPress site par ye already bani hoti hai.
Iske liye aap apne hosting cpanel >> file manager >> public_html option me jaye ya fir aap yoast SEO plugin use karte ho to WordPress dashboard >> SEO >> Tools >> File editer me ja kar .htaccess file open kar sakte ho.
Ab aapko .htaccess file me ye code add karna hai.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yoursite.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranothersite.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranothersite.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ https://i.imgur.com/removed.png [NC,R,L]
Isme aapko 2-3 specific website add karni hai. I mean aap yaha jin sites ke URL add karoge sirf unhi par image show hogi. baki sabhi sites par aapki iamge show nahi hogi. Yaha aapko apni site or other kuch sites ke URL add akrne hai jin par aap is site ki image use karte ho.
Hotlink Ko Protect Karne Ke Liye .htaccess File Me Code Kaise Use Kare?
Agar aapko upar diya code kis tarah .htaccess file me use karna hai samajha nahi aa raha hai to chaliye main iske bare mbhi aapko detail se bta deta hu. Upar btaye code me total 6 line hai.
1. RewriteEngine on
Ye code .htaccess ko active and order dene ke liye hota hai. Agar aapke blog par already .htaccess file hai to ye line pahle se file me add hogi or aapko fir se ye line add karne ki jarurat nahi hai or agar aap first time .htaccess edit kar rahe hai to aapko ye line add karni hogi.
2. RewriteCond %{HTTP_REFERER} !^$
Ye line bank referer ko allow karti hai. Jisse aap yaha jo site link add karoge only unhi par image show hogi.
3. RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yoursite.com [NC] 4. RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranothersite.com [NC] 5. RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youranothersite.com [NC]
Three, four and five line me aapko un sites ko add karna hai jin par aap image dikhana chahate ho. First aapko apni site ka link add karna hai. Inke alawa baki kisi bhi site par apaki image ka link dalne par photo show nahi honge. So aap yaha apni kuch or sites bhi add akr sakte ho.
6. RewriteRule \.(jpg|jpeg|png|gif)$ https://i.imgur.com/removed.png [NC,R,L]
Sixth line me aapko error image add ka link add karna hai. I mean jab koi aapki site ki image ka link use karega to waha aap koi bhi image show kar sakte ho. Iske liye aap apni site ki umage use mat karna balki koi error page ka link add kar dena.
Finally, ab aapko sabkuch samajh aa gaya hoga. Example ke liye aap mere WordPress blog ka hotlinking protection code dekh sakte ho.
Isi tarah aap is link me se domain change kar ke hotlinking ko bloack kar sakte hai or apni site ko protect kar sakte hai. .htaccess file me code add karne ke bad check kar le ki aapki site sahi se work kar rahi hai ya nahi.
Please share this post.
Rushikesh Sonawane
Bro do sawal…
1. Kya aapne hotlinking ko enable kiya hai?
2. I know isse page speed increase hoti hai. Lekin isse koi SEO efeect to nahi hai nah.
Jumedeen khan
1. Nahi
2. Yea, agar aap chahate ho ki kuch blogs aapki image use kare to iska use mat karo.
Rishikesh Mishra
Hello bhai meri site merihindijankari.in hai mai WordPress pr site banana hu to sir mujhe koun sa hosting le jo sabse better ho aur aap kaun sa use karte ho plz bataye sir
Jumedeen khan
Abhi aapki staritng hai to aap shared hosting use karo. Iske liye aap hostgator india ya bluehost india se hosting le sakte ho. Dono hi shared hosting ki better service hai or agar aapke pas credit card hai to aap hostgator.com se hosting buy kar sakte ho.
prince
meri website ki image crash ho ja rahi thi isi liyee main WordPress ko uninstall kar ke fir se server pe instal kya. ab naye post ko webmaster me submit kr raha hu. or sitemap me jakar xml submit karne ke baad error aa rha . to mujhe kya krna padega. Ak baar kr diya submit to ho gaya ya fir again krna padega. q ki submit, indesx ki details mere google consol me show nahi kara raha
Jumedeen khan
Aap first yoast SEO plugin use karke first sitemap create karo. uske bad submit karo.
Prakash Raj
Bahut hi umda jankari pesh ki hai aapne. Is behatrin post ke liye aapka bahut bahut dhnybad.
Himanshu Grewal
Hotlinks plugin is very dangrous
mene apni 1 site pr use kri thi nd than meri site penalize ho gyi 🙂
Jumedeen khan
apne galat code use kiya hoga.
Himanshu Grewal
sir isme code kaise
Hotlink plugine active krdo and kaam khatam
mere pass webmaster mai mail aya tha penalize wala usdin se plugine use krna bnd
bahut nuksan kar diya google ne event blog mai use karta tha sab bnd
Jumedeen khan
Himanshu plugin use karna danger ho sakta hai. Aapko koi bhi pro blogger jyada plugin use karne ki advice nahi deta hai. Ho sakta hai aapne galat plugin use kiya ho. Secong hotlinking bhi SEO ke liye danger ho sakti hai.
Kuldeep Vishnoi
cpc ke liye low cpc site ko block kar de to koi problem tp nhi hogi…
Jumedeen khan
Nahi nahi hogi.
Sanjay Singh Rawat
Bro! Aap koi backup plugin use karte ho SMI ke liye. Best plugin name please ?
Jumedeen khan
Nahi mai direct cpanel se backup leta hu.
Babita Singh
Thanks Jumedeen ji, for updating about hotlinking. I will surely try to use it in protecting my site.
khayalrakhe.com
Jumedeen khan
Welcome babita, also share it.
Yasir khan
Hame blog ki fast indexing ke liye kitne ping url use karne chahiye?
4-6
50-60?
Jumedeen khan
Kam se kam 4-5 bhi maximum hai.
Naresh saharan
Bahut achhi jankari di apne. Kya image churane se wo copyright nahi jo jati h kya .
Jumedeen khan
Yes copyright hoti hai.
Nekraj
Kaafi acchi post ,will change these file .[though I am not a tech guys but still try to
Askar
blog main login. singup. regstr . a sab kese lagati hain …
plz batangy kia
Jumedeen khan
Ye post padho Blog Me Email Subscribe Widget Kaise Add Kare
Deepak
Hlw sir aap pls mujhe ye btaye ki aapki post ke side me jo yeh social share widget hai. bo aapne kaise lagaye hai? or kha se lgaye hai?
Jumedeen khan
Coding se bana kar.
Anup Sahu
ek or problem bhai new template use krne ke bad only old post search me show kar rhe hai template ko upload kiye bhut din ho gya hai kya problem ho skta hai
Jumedeen khan
Template me aap meta code sahi se add karo. sabhi post search me aa jayegi.
Sahil Kumar
बहुत समय बाद नई जानकारी पता चली, जुमेदीन भाई आप से अनुरोध के कि आप ज्यादा से ज्यादा वर्डप्रैस पर लिखें।
भाई एक बात पूछनी थी, कि जब हर 2 तारीख को हमारी एडसेंस की कमाई फाइनल होती है तो क्या आपके भी Invalid Traffic के डॉलर कटते है?
अगर कटते है तो लगभग कितने?
Jumedeen khan
Ha bilkul hoti hai. $5 to $10.
Jahid Anowar
Vai mene ek khud cms create kiya or agar me hotlinks protect karna chata hu to kya apke above code ko use karo?
Jumedeen khan
yes kar sakte ho.
Ravi Kumar
Bro plz bataye ki 500-700 wali post mein kitne ads use karu, Mujhe Aapne pehle post padhne ko kaha tha lekin mujhe usey padhne ke baad answer nahi mila aap khud bata do kitne use karu acche cpc ke liye
Jumedeen khan
Uffs!!!!! 1000 words se kam words ki post me only 1-2 ads hi use karo.
rishi
Sir g kya aap is samay online ho?
Jumedeen khan
Aap mujhse sham 8 baje facebook par live chat kar sakte ho.