• 26-11-2023, 17:23:59
    #10
    Üyeliği durduruldu
    oktayc0 adlı üyeden alıntı: mesajı görüntüle
    .Htaccess dosyanı altta verdiğim örnekle değiştirirmisin

    
    RewriteEngine On
    
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
     
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
     
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
     
    <IfModule mod_rewrite.c>
        RewriteEngine On
     
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
     
        #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    
    RewriteCond %{HTTP_USER_AGENT} ^Bytespider
    RewriteRule ^.* - [F,L]
    değiştim hocam sonuc aynı bot yıne sitede.

    https://hayvanlar.com.tr/forum/online/?type=robot
  • 26-11-2023, 17:29:13
    #11
    Garfield adlı üyeden alıntı: mesajı görüntüle
    değiştim hocam sonuc aynı bot yıne sitede.

    https://hayvanlar.com.tr/forum/online/?type=robot
    :d hocam user-agent satır başı Bytespider değil ondan.

    Kodun başından ^ işaretini kaldırın ve alttaki kodla değiştirin.
    # Yeni Kod #
    RewriteCond %{HTTP_USER_AGENT} Bytespider
    
    # Eski Kod #
    RewriteCond %{HTTP_USER_AGENT} ^Bytespider
  • 26-11-2023, 17:31:09
    #12
    Üyeliği durduruldu
    oktayc0 adlı üyeden alıntı: mesajı görüntüle
    :d hocam user-agent satır başı Bytespider değil ondan.

    Kodun başından ^ işaretini kaldırın ve alttaki kodla değiştirin.
    # Yeni Kod #
    RewriteCond %{HTTP_USER_AGENT} Bytespider
    
    # Eski Kod #
    RewriteCond %{HTTP_USER_AGENT} ^Bytespider
    hocam botun adını yanlıs yazıyoruz sanırım.

    https://stackoverflow.com/questions/...r-via-htaccess
  • 26-11-2023, 17:34:22
    #13
    Garfield adlı üyeden alıntı: mesajı görüntüle
    hocam botun adını yanlıs yazıyoruz sanırım.

    https://stackoverflow.com/questions/...r-via-htaccess
    Evet bu botun birden fazla user-agenti mevcutmuş(bytedance vs.), buyrun bu htaccess sorunu çözecektir.

    Yeni .htaccess
    RewriteEngine On
     
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
      
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
      
    <IfModule mod_rewrite.c>
        RewriteEngine On
      
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
      
        #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    
    RewriteCond %{HTTP_USER_AGENT} ^.(Bytedance|Bytespider).$ [NC]
    RewriteRule .* – [F,L]
  • 26-11-2023, 17:39:29
    #14
    Üyeliği durduruldu
    oktayc0 adlı üyeden alıntı: mesajı görüntüle
    Evet bu botun birden fazla user-agenti mevcutmuş(bytedance vs.), buyrun bu htaccess sorunu çözecektir.

    Yeni .htaccess
    RewriteEngine On
     
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
      
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
      
    <IfModule mod_rewrite.c>
        RewriteEngine On
      
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
      
        #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    
    RewriteCond %{HTTP_USER_AGENT} ^.(Bytedance|Bytespider).$ [NC]
    RewriteRule .* – [F,L]
    yine forumda.

    Şu anki ziyaretçiler | Evcil Hayvan Forumu | Hayvanlar Forum
  • 26-11-2023, 18:03:21
    #15
    Bende sorunsuz çalışıyor..


    Özelden bi tw gönder hocam, öyle bi deneme yapalım.
  • 26-11-2023, 18:15:07
    #16
    Üyeliği durduruldu
    cf uzerınden cozdum hocam. cok tsk ederım.