• 02-12-2012, 16:08:58
    #1
    arkadaşlar merhaba r10' üzerinden bir arkadaş mail scripti yazdırdım fakat sürekli siteye girişim engelleniyor. Proxy kullanarak girebiliyorum sisteme. Sorun .htacces dosyasın'da olduğunu söyledi arkadaş. Bana bu konuda yardımcı olabilirmisiniz ?


    .htaccess aşagıdaki gibidir.

    Options +FollowSymLinks -Indexes
    
    DirectoryIndex index.php index.html
    AddDefaultCharset UTF-8
    ServerSignature Off
    SetEnv SERVER_ADMIN mail@mail.com
    
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    
    <Files  "cron.php">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from localhost
    </Files>
    
    AddHandler cgi-script .pl .py .jsp .asp .sh .cgi 
    Options -ExecCGI
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST|PROPFIND|OPTIONS|PUT)$ [NC]
    RewriteRule .* - [F,NS,L]
    
    RewriteCond %{THE_REQUEST} !^[A-Z]{3,9}\ .+\ HTTP/(0\.9|1\.0|1\.1) [NC]
    RewriteRule .* - [F,NS,L]
    
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    RewriteRule ^(.*)$ index.php [F,L]
    
    RewriteBase /
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /index.php [L]
  • 02-12-2012, 17:24:48
    #2
    <Files "cron.php">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from localhost
    </Files>

    bundan dolayı olabilir.
    127.0.0.1 ve localhost hariç tüm istemcilerin cron.php'ye istek yapmasını engelle anlamına geliyor.
  • 02-12-2012, 23:59:17
    #3
    Bahsetmiş olduğunuz satırı komple kaldırdım ama olmadı...