+ الرد على الموضوع
صفحة 2 من 2 الأولىالأولى 1 2
النتائج 6 إلى 7 من 7
  1. #6
    سعيد كمال is on a distinguished road
    تاريخ التسجيل
    20 / 03 / 2011
    الدولة
    مجهولة
    العمر
    46
    المشاركات
    3
    معدل تقييم المستوى
    164

    افتراضي رد: تسريع المنتدى + تقليل الباندوث + حماية المنتدى = htaccess

    فايروس لعين

    يرجى حذف الموضوع

    أو عمل سكان للمرفق

    الموجود بداخل ملف HTACCESS هو هذا الكود:

    كود PHP:
    RewriteEngine On  
    <IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_keep_workfiles No
    mod_gzip_can_negotiate Yes
    mod_gzip_add_header_count Yes
    mod_gzip_send_vary Yes
    mod_gzip_command_version 
    '/mod_gzip_status'
    mod_gzip_min_http 1000
    mod_gzip_minimum_file_size 300
    mod_gzip_maximum_file_size 512000
    mod_gzip_maximum_inmem_size 60000
    mod_gzip_handle_methods GET POST
    mod_gzip_temp_dir 
    /tmp
    mod_gzip_item_include file 
    .html$
    mod_gzip_item_include file .php$
    mod_gzip_item_include file .pl$
    mod_gzip_item_include file .rb$
    mod_gzip_item_include file .py$
    mod_gzip_item_include file .cgi$
    mod_gzip_item_include file .css$
    mod_gzip_item_include file .js$
    mod_gzip_item_include mime ^application/javascript$
    mod_gzip_item_include mime ^application/x-javascript$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^httpd/unix-directory$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include handler ^server-status$
    mod_gzip_item_include handler ^server-info$
    mod_gzip_item_include handler ^application/x-httpd-php
    mod_gzip_item_exclude mime 
    ^image/.*
    </
    IfModule>

    # compress all text and html:
    AddOutputFilterByType DEFLATE text/html text/plain text/xml  












    # Gzip – To compress much of what leaves the server
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/x-javascript text/php

    # compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text
    /html
    AddOutputFilterByType DEFLATE text
    /xml
    AddOutputFilterByType DEFLATE text
    /css
    AddOutputFilterByType DEFLATE application
    /xml
    AddOutputFilterByType DEFLATE application
    /xhtml+xml
    AddOutputFilterByType DEFLATE application
    /rss+xml
    AddOutputFilterByType DEFLATE application
    /javascript
    AddOutputFilterByType DEFLATE application
    /x-javascript





    # Start site protection
    # proc/self/environ? no way!
    RewriteCond %{QUERY_STRINGproc/self/environ [OR]
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRINGmosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRINGbase64_encode.*(.*) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRINGGLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING_REQUEST(=|[|%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    # End site protection  






    # www.n17n.com to enable compression and save bandwidth :: BEGIN
    <ifModule mod_php5.c>
    php_value zlib.output_compression 16386
    </ifModule>
    # www.n17n.com to enable compression and save bandwidth :: END 


    الموضوع الأصلي هنا:

    [BBcode] : تسريع المنتدى + تقليل الباندوث + حماية المنتدى = htaccess

     
  2. #7
    كاظم المسعودي is on a distinguished road
    تاريخ التسجيل
    18 / 07 / 2013
    الدولة
    العراق
    العمر
    56
    المشاركات
    29
    معدل تقييم المستوى
    161

    افتراضي رد: تسريع المنتدى + تقليل الباندوث + حماية المنتدى = htaccess

    نعم فيه فايروس وتم التعامل معه
    اعمل له سكان قبل الفتح
    شكرا جزيلا لك

     

 
+ الرد على الموضوع
صفحة 2 من 2 الأولىالأولى 1 2

معلومات الموضوع

الأعضاء الذين يشاهدون هذا الموضوع

الذين يشاهدون الموضوع الآن: 1 (0 من الأعضاء و 1 زائر)

     

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك