Home Mājas » » Blog Tips Blog Tips

How to stop bandwidth stealing with htaccess file Kā aiztures joslas platumu, zādzībās ar htaccess fails

Bandwidth Stealing is a scenario when somebody uses a file from your site directly to his. Joslas platums zādzībās ir scenārijs, kad kāds izmanto failu no sava portāla tieši viņa. This results in consumption of your bandwidth. Tā rezultātā patēriņš jūsu joslas platuma. Many people does not realize but this is a common problem and as there is no direct way to know about it, we never get to know about it. Daudzi cilvēki nav saprast, bet tas ir kopīga problēma un tā kā nav tiešā veidā uzzināt par to, mēs nekad uzzināt par to. This scenario can not only lead to your hosting banning your site as its out of bandwidth but your content is getting stolen too. Šis scenārijs var ne tikai izraisīt jūsu hosting aizliedz jūsu portālā, jo tā no joslas platumu, bet jūsu saturs kļūst nozagts too. If you want  you can read about Ja vēlaties, jūs varat lasīt par Top Five Ways to stop content stealing Top Pieci veidi, kā pieturas saturs zādzībās

What is hot linking? Kas ir karsti savieno?

Hot linking is a scenario where some other site uses files hosted on your site. Karstā saistot ir scenārijs, kur daži citi lapa izmanto failus mitināti jūsu vietnē. This results in bandwidth stealing as every time the hot linked page is viewed, images or files are requested from your server hence your bandwidth is use. Tā rezultātā joslas platums zādzībās, kā katru reizi, karstās saistīta lapa tiek skatīta, attēlus vai faili tiek pieprasīts no jūsu servera tātad jūsu joslas platums ir izmantošanu.

How to find if my files are hotlinked ? Kā atrast ja mans faili ir hotlinked?

There is no direct way, But when I asked my hosting about it, they said we can check our web stats and find out how much bandwidth is being used by which page or other things. Nav tieša veidā, bet, kad es lūdzu manu hosting par to, viņi teica, mēs varam pārbaudīt mūsu web stats un uzzinātu, cik daudz joslas platums tiek izmantots, ar kuru lapu vai citas lietas. If you something very high try to find out where it is linked. Ja jūs kaut ko ļoti lielu, mēģiniet uzzināt, kur tas ir saistīts.

How to stop hotlinking using .htaccess file ? Kā pārtraukt hotlinking izmantojat. Htaccess failu?

This can be helpful for PHP based site and wordpress based sites. To var palīdzēt PHP balstīts vietā un WordPress balstās vietās.

Before you write your own rules, enable the hot linking protection enabled and then write into .htaccess file. Pirms rakstīt savu noteikumiem, ļaus karstā savieno aizsardzības iespējotai un pēc tam uzrakstiet into. Htaccess failu. I did it reverse and my site gave Error 500. Man tas atpakaļgaitu un manu portālu sniedza Error 500. Be Careful. Uzmanīties. In case if something goes wrong just remove the .htaccess file and replace with original one ( Did I forgot to say backup your .htaccess file first ? Please do it ) and be sure Gadījumā, ja kaut nedaudz likvidētu. Htaccess failu un aizvietot ar oriģinālo vienu (Vai Es aizmirsu pateikt, backup jūsu. Htaccess failu vispirms? Lūdzu, IT) un būt pārliecināti, mod_rewrite mod_rewrite is enabled. tiek iespējots. Ask your hosting about it. Uzdod savu hostingu par to.

There are three ways of doing it. Ir trīs veidi, kā darīt to.

  1. Ban all hotlinkers Ban visu hotlinkers
  2. Ban one particular hotlinker Ban vienu konkrētu hotlinker
  3. Show a different image to one particular hotlinker Parādīt citu attēlu uz vienu konkrētu hotlinker

I followed the second step as I came to know who was stealing my content. I sekoja otrais solis kā es nāca zināt, kas bija zādzībās mana saturu. Here is the code I used Šeit ir kods es


# BEGIN WordPress

RewriteEngine On RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://xxx.com/.* [NC] RewriteCond% (HTTP_REFERER) ^ http://xxx.com/ .* [NC]
RewriteRule \.(gif|jpg|js|css|JPG)$ - [F] RewriteRule \. (Gif | jpg | js | CSS | JPG) $ - [F]

# END WordPress # END WordPress

You can replace xxx with the site who is stealing your bandwidth and in second line you can restirct files by extension or types. Jūs varat nomainīt xxx ar teritoriju, kas ir zādzībās jūsu joslas platumu, un otrajā rindā varat restirct failus, pagarināšanu vai tipiem. Remember This is to just avoid one hot linker. Atcerieties, tas ir, lai tikai izvairītos no viena karstā linker. Here is the link to complete guide of all the three scenarios. Te ir saiti, lai pabeigtu rokasgrāmatu visos trīs scenārijos. Stop Image Hotlinking using .htaccess Pietura Image Hotlinking izmantojat. Htaccess and this article un šo rakstu How Do I Stop Hotlinking and Bandwidth Theft? Kā pārtraukt Hotlinking, joslas platums Theft? can explain you meaning of each line and terms being used. var izskaidrot jums nozīmē katru pozīciju un noteikumi tiek izmantoti. I would recommend using the first link for implementing the code and second to understand it better. Es ieteiktu, izmantojot "pirmais posms izpildes kodu un otrajā to izprast labāk. ( I got some problem while using the code from second article) (I got dažas problēmas, izmantojot kodu no otrais pants)

I don't have PHP based Site or Wordpress What should I do? Man nav PHP, pamatojoties Vietnes vai WordPress Kas man ir jādara?

Not sticking to just wordpress but every hosting has Hot Link Protection feature. Ne uzlīmēšanu, lai tikai WordPress bet ik hosting ir Hot Link aizsardzības funkciju. You can query your hosting about it and ask how to enable it. Varat vaicājumam jūsu hosting par to, un lūdz kā panākt to. Just remember, you should allow your site url to access it. Tikai atceraties, jums ļauj jūsu portālu URL, lai tai piekļūt.

Since I faced this problem, I wanted to share it with you all. Tā kā es saskaras ar šo problēmu, es vēlējās tajā dalīties ar jums visiem. I hope this helps many others. Ceru, ka tas palīdz daudzi citi.

Tagged with: Tagged with:

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/Hindi
Tradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakVertaal aan het Nederlands/Dutchترجمة الى العربية/ArabicTraduzca al Español/SpanishTraduisez au Français/French
Traduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese TraditionalПереклад на українську/Ukrainian

SMS abonētPrint This Post

Posted on 9th May 2007 by Posted par 9 maijs 2007 Ashish Mohta Ashish Mohta , A tech blogger who writes about solving day to day problems of people who use computer. , A tech blogger, kas raksta par risināšana ikdienas problēmas, kas saistītas ar cilvēkiem, kuri lieto datoru. He also writes on How to use the applications like Office, PC tips, Online tools,Browsers and more. All posts by Viņš arī raksta par to, kā izmantot lietojumiem, piemēram, Office, PC padomus, Online instrumentus, pārlūkprogrammas un vairāk. Visi amatu ar Ashish Mohta Ashish Mohta | Connect with me @ | Savienoties ar mani @ Twitter Čivināt | | Linkedin Linkedin | | Facebook Facebook | | Stumble Paklupt | Need more help? | Vajadzīga palīdzība? Ask your Questions at our Jautājiet pēc mūsu Support Center Support Center

Leave your response! Atstājiet savu reakciju!

Be nice. Be nice. Keep it clean. Paturiet to tīram. Stay on topic. Palieciet uz tēmu. No spam. Nr surogātpastu.

You can use these tags: Jūs varat izmantot šos tagus:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>