snipt

Ctrl+h for KB shortcuts

Text only

htaccess blokujący ruch botów na stronie

# Zabezpieczenie przed botami zuzywajacymi transfer
SetEnvIfNoCase User-Agent "SemrushBot" bad_bot
SetEnvIfNoCase User-Agent "TwengaBot-2.0" bad_bot
SetEnvIfNoCase User-Agent "MegaIndex.ru" bad_bot
SetEnvIfNoCase User-Agent "Yahoo! Slurp" bad_bot
SetEnvIfNoCase User-Agent "MJ12bot" bad_bot
SetEnvIfNoCase User-Agent "YandexBot" bad_bot
SetEnvIfNoCase User-Agent "Ahrefsbot" bad_bot
SetEnvIfNoCase User-Agent "bingbot" bad_bot
SetEnvIfNoCase User-Agent "SentiBot" bad_bot
SetEnvIfNoCase User-Agent "DotBot" bad_bot
SetEnvIfNoCase Uesr-Agent "seoscanners.net" bad_bot
SetEnvIfNoCase Uesr-Agent "msnbot-media" bad_bot
Order Allow,Deny
Allow from all
Deny from env=bad_bot
# Koniec zabezpieczenia
https://snipt.net/embed/1bc4d5881f5cb5a9978270252d476c0a/
/raw/1bc4d5881f5cb5a9978270252d476c0a/
1bc4d5881f5cb5a9978270252d476c0a
text
Text only
17
2019-06-18T05:20:06
True
False
False
Aug 12, 2016 at 03:17 AM
/api/public/snipt/147549/
htaccess-blokujacy-ruch-botow-na-stronie
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1"> 1</a> <a href="#L-2"> 2</a> <a href="#L-3"> 3</a> <a href="#L-4"> 4</a> <a href="#L-5"> 5</a> <a href="#L-6"> 6</a> <a href="#L-7"> 7</a> <a href="#L-8"> 8</a> <a href="#L-9"> 9</a> <a href="#L-10">10</a> <a href="#L-11">11</a> <a href="#L-12">12</a> <a href="#L-13">13</a> <a href="#L-14">14</a> <a href="#L-15">15</a> <a href="#L-16">16</a> <a href="#L-17">17</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># Zabezpieczenie przed botami zuzywajacymi transfer </span><span id="L-2"><a name="L-2"></a>SetEnvIfNoCase User-Agent &quot;SemrushBot&quot; bad_bot </span><span id="L-3"><a name="L-3"></a>SetEnvIfNoCase User-Agent &quot;TwengaBot-2.0&quot; bad_bot </span><span id="L-4"><a name="L-4"></a>SetEnvIfNoCase User-Agent &quot;MegaIndex.ru&quot; bad_bot </span><span id="L-5"><a name="L-5"></a>SetEnvIfNoCase User-Agent &quot;Yahoo! Slurp&quot; bad_bot </span><span id="L-6"><a name="L-6"></a>SetEnvIfNoCase User-Agent &quot;MJ12bot&quot; bad_bot </span><span id="L-7"><a name="L-7"></a>SetEnvIfNoCase User-Agent &quot;YandexBot&quot; bad_bot </span><span id="L-8"><a name="L-8"></a>SetEnvIfNoCase User-Agent &quot;Ahrefsbot&quot; bad_bot </span><span id="L-9"><a name="L-9"></a>SetEnvIfNoCase User-Agent &quot;bingbot&quot; bad_bot </span><span id="L-10"><a name="L-10"></a>SetEnvIfNoCase User-Agent &quot;SentiBot&quot; bad_bot </span><span id="L-11"><a name="L-11"></a>SetEnvIfNoCase User-Agent &quot;DotBot&quot; bad_bot </span><span id="L-12"><a name="L-12"></a>SetEnvIfNoCase Uesr-Agent &quot;seoscanners.net&quot; bad_bot </span><span id="L-13"><a name="L-13"></a>SetEnvIfNoCase Uesr-Agent &quot;msnbot-media&quot; bad_bot </span><span id="L-14"><a name="L-14"></a>Order Allow,Deny </span><span id="L-15"><a name="L-15"></a>Allow from all </span><span id="L-16"><a name="L-16"></a>Deny from env=bad_bot </span><span id="L-17"><a name="L-17"></a># Koniec zabezpieczenia </span></pre></div> </td></tr></table>
bot, htaccess
--- 
+++ 
@@ -0,0 +1,17 @@
+# Zabezpieczenie przed botami zuzywajacymi transfer
+SetEnvIfNoCase User-Agent "SemrushBot" bad_bot
+SetEnvIfNoCase User-Agent "TwengaBot-2.0" bad_bot
+SetEnvIfNoCase User-Agent "MegaIndex.ru" bad_bot
+SetEnvIfNoCase User-Agent "Yahoo! Slurp" bad_bot
+SetEnvIfNoCase User-Agent "MJ12bot" bad_bot
+SetEnvIfNoCase User-Agent "YandexBot" bad_bot
+SetEnvIfNoCase User-Agent "Ahrefsbot" bad_bot
+SetEnvIfNoCase User-Agent "bingbot" bad_bot
+SetEnvIfNoCase User-Agent "SentiBot" bad_bot
+SetEnvIfNoCase User-Agent "DotBot" bad_bot
+SetEnvIfNoCase Uesr-Agent "seoscanners.net" bad_bot
+SetEnvIfNoCase Uesr-Agent "msnbot-media" bad_bot
+Order Allow,Deny
+Allow from all
+Deny from env=bad_bot
+# Koniec zabezpieczenia
  • kylos
  • 2 years, 10 months ago