• 27-04-2015, 15:17:05
    #1
    Arkadaşlar bir sitemin analitick verilerinde yönlendirme sitelere baktığımda p...no sitelerden yönlendirme olduğunu gördüm. bunu htacesle engelelmek istiyorum ancak birden fazla site var. htaces yönlendirme engelleme kodu burada verilmiş http://www.celilcan.com/semalt-benze...ri-engellemek/

    verilen kod bir site için sorum şudur. birden fazla site için kodu tekrarlayacakmıyız.
    örnek şu şekildemi olacak

    Alıntı
    # block visitors referred from semalt.com and other referral spammer

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]

    # block visitors referred from semalt.com and other referral spammer

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} semalt\.org [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]

    # block visitors referred from semalt.com and other referral spammer

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} semalt\.net [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
  • 27-04-2015, 17:02:12
    #2
    Evet kardeşim
  • 27-04-2015, 17:04:45
    #3
    celilcan adlı üyeden alıntı: mesajı görüntüle
    Evet kardeşim
    Celil hocam benim sitem tek sayfadan oluştuğu için mevcut bi htaces dosyam yok. bir htaces oluşturup, sadece bu kodları yazıp bırakmam yeterlimidir?
  • 27-04-2015, 17:08:50
    #4
    yeni bir kod ekledim nisan 2015 diye sitemdeki yazıya onu da ekleyebilirsin.
  • 27-04-2015, 17:17:19
    #5
    evet gördüm yeni kodları.
    tam olarak şu şekilde düzenledim. uygundur dersen direk ftp ye atacam

    # block visitors referred from sharebutton.to and other referral spammer
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} sharebutton\.to [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
    
    # block visitors referred from offers.bycontext.com and other referral spammer
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} offers.bycontext\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
    
    # block visitors referred from domination.ml and other referral spammer
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} domination\.nl [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
    
    # block visitors referred from generalporn.org and other referral spammer
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} generalporn\.org [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
    
    # block visitors referred from youporn-forum.ga and other referral spammer
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} youporn-forum\.ga [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com
    RewriteRule .* – [F]
  • 27-04-2015, 17:48:56
    #6
    Aynı sorunu bende tüm sitelerimde yaşıyorum. Bu kodları direk olarak wordpress'in htaces dosyasına eklesek sorun çıkarmaz dimi hocam?
  • 27-04-2015, 18:17:06
    #7
    Options +FollowSymLinks 
    RewriteEngine On 
    RewriteCond %{HTTP_REFERER} sharebutton\.to [NC,OR] 
    RewriteCond %{HTTP_REFERER} offers.bycontext\.com [NC,OR] 
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR] 
    RewriteCond %{HTTP_REFERER} domination\.nl [NC,OR] 
    RewriteCond %{HTTP_REFERER} generalporn\.org [NC,OR] 
    RewriteCond %{HTTP_REFERER} youporn-forum\.ga [NC,OR] 
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com 
    RewriteRule .* – [F]
    böyle olmalı.
  • 27-04-2015, 21:03:31
    #8
    Misafir adlı üyeden alıntı: mesajı görüntüle
    Options +FollowSymLinks 
    RewriteEngine On 
    RewriteCond %{HTTP_REFERER} sharebutton\.to [NC,OR] 
    RewriteCond %{HTTP_REFERER} offers.bycontext\.com [NC,OR] 
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR] 
    RewriteCond %{HTTP_REFERER} domination\.nl [NC,OR] 
    RewriteCond %{HTTP_REFERER} generalporn\.org [NC,OR] 
    RewriteCond %{HTTP_REFERER} youporn-forum\.ga [NC,OR] 
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com 
    RewriteRule .* – [F]
    böyle olmalı.
    # block visitors referred from youporn-forum.ga and other referral spammer
    bunu koymuyormuyuz htaces e hocam. bu arada htaceste sadece bu kodlar olacak
  • 27-04-2015, 21:27:08
    #9
    o sadece açıklama hiç bir etkisi yok htaccess üzerinde, başında # olanlar açıklamadır

    Options +FollowSymLinks
    RewriteEngine On

    bunlar sadece birer adet bulunmalı htaccess içerisinde, buna uygun bir biçimde diğer kodları htaccess in en üstüne, bu 2 kodun altına koymalısınız. htaccess içerisinde başka kodlar mevcut ise silmeyin site yapınız bozulabilir.

    wordpress kullanıyorsanız ve içerisinde bulunan silseniz bile sorun cıkartmaz üstüne otomatik olarak ekler veya o işlemi uygular sorunsuz bir şekilde
    • Halil_69
    Halil_69 bunu beğendi.
    1 kişi bunu beğendi.