Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header تحسين الامن اباتشي خادم الويب : استخدام servertokens وتعطيل رأس serversignature

When Apache HTTPD web server generates any web pages or error pages, some important information about the version and other details implemented on the system are displayed in th web site server header. عندما اباتشي ملقم الويب httpd يولد أي صفحات ويب أو صفحات الخطأ ، وبعض المعلومات المهمة عن النص وغير ذلك من تفاصيل تنفيذها على نظام ال معروضه في موقع رأس خادم. For example, the information text may be like this: فعلى سبيل المثال ، فإن المعلومات التي يمكن ان نص مثل هذا :

Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b الخادم : apache/1.3.37 (يونيكس) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 frontpage/5.0.2.2635.sr1.2 mod_ssl/2.8.28 openssl/0.9.7a php-cgi/0.1b

Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Server at xx.xx.xx.xx Port 80 الخادم : apache/2.0.53 (اوبونتو) php/4.3.10-10ubuntu4 خادم xx.xx.xx.xx في الميناء 80


The line in the server header expose important version and variant information about the Linux operating system and Apache software used on the machine, indirectly expose the possible security holes that are existed to the hackers, or at least make malicious attackers easier to identify your system for available attack points. الخط في رأس خادم تعرض نسخة مهمة البديل ومعلومات عن نظام التشغيل لينوكس واباتشي والبرامج التي تم استخدامها على الجهاز ، وغير مباشر من الممكن ان يعرض الامن الثقوب التي هي موجودة على القراصنه ، او على الاقل ان المهاجمين الخبيثه من الاسهل تحديد النظام الخاص بك لل النقاط المتاحة الهجوم.

To ensure that the Apache HTTP web server does not broadcast this message to the whole world publicly and fix possible security issue, modify these two directives ServerTokes and ServerSignature in httpd.conf configuration file. لضمان ان خادم الويب اباتشي بروتوكول انتقال النص المتشعب لا تبث هذه الرسالة الى العالم كله علنا واصلاح ممكن في قضية الأمن ، تعديل هذين توجيهات servertokes وserversignature في ملف التهيءه httpd.conf.

  1. Login as root user or perform a sudo to the web server. تسجيل الدخول للمستخدم او الجذر كما تؤدي sudo الى خادم الويب.
  2. Open and edit httpd.conf or apache2.conf (in Apache 2) with vi or other text editor. فتح وتحرير httpd.conf او apache2.conf (اباتشي 2) مع السادس او محرر نصوص اخرى. The Apache configuration normally located in /etc/httpd/conf/ or /etc/apache2/ or /etc/apache/ (for Apache1.3) depending on which Unix you’re using. وقد اباتشي عادة في التشكيل / الخ / httpd / م / او / etc/apache2 / او / الخ / اباتشى / (لapache1.3) اعتمادا على يونيكس الذي كنت تستخدم.
  3. Locate the line with ServerTokens . تحديد مكان وتمشيا مع servertokens. You can perform a search by typing “/ServerTokes” and hit Enter. يمكنك اجراء بحث من قبل الطباعه "/ servertokes" وتصل الى تدخل.
  4. In Apache 1.3, you will likely to see a line starts with #ServerTokes Full In this case, remove or delete the # character (by pressing d key). في 1،3 اباتشي ، انت من المحتمل ان نرى الخط يبدأ # servertokes الكامل في هذه القضية ، وازالة او حذف الطابع # (بالضغط على مفتاح د). Also modify the Full to become Prod (press r key to replace one character, or R to replace multiple characters), so that the line becomes ServerTokens Prod . كما ان تعدل لتصبح كاملة النخزه (ص الرئيسية للصحافه ليحل محل واحد الطابع ، او لتحل محل المتعددة ص حرفا) ، بحيث يصبح الخط servertokens دفعا. In Apache 2.0 or 2.2, the line normally does not exist. في 2،0 او 2،2 اباتشي ، الخط عادة غير موجود. So the search will fail. ذلك البحث وسوف تفشل. In this case, go to the bottom of config file, and add the new line with the following text. وفي هذه الحاله ، اذهب الى اسفل ملف ، واضافة الخط الجديد مع النص التالي. You can add new line by pressing o key. يمكنك اضافة خط جديد عبر الضغط على مفتاح س.

    ServerTokens Prod Servertokens النخزه

  5. Next, search for ServerSignature. المقبل ، للبحث عن serversignature. In Apache13, the line should just above the line of ServerTokens. في apache13 ، الخط ينبغي ان تتجاوز خط servertokens. Edit the line so that it looks like this, and in Apache2 which doesn’t already have this line, add in at new one. تعديل الخط بحيث يبدو ان هذا ، وفي apache2 التي لا تملك هذا الخط ، اضافة جديدة واحدة في في.

    ServerSignature Off من serversignature

  6. By now the Apache configuration file should have this two directives set as below: الآن واباتشي ملفات ينبغي ان يكون هذا اثنين من التوجيهات المحددة على النحو التالي :

    ServerSignature Off من serversignature
    ServerTokens Prod Servertokens النخزه

    The first line “ServerSignature Off” instructs Apache not to display a trailing footer line under server-generated documents (error messages, mod_proxy ftp directory listings, mod_info output, and etc) which displays server version number, ServerName of the serving virtual host, email setting, and creates a “mailto:” reference to the ServerAdmin of the referenced document. الخط الاول "من serversignature" اباتشي لم يوعز لعرض السحب تحت خط الذيل خادم المولده وثائق (رسائل خطأ ، وبروتوكول نقل الملفات mod_proxy دليل القوائم ، mod_info الانتاج ، وغيرها) والذي يعرض رقم الاصدار الخادم ، والخادم الافتراضي للخدمة استضافة البريد الالكتروني تحديد ، ويخلق "mailto :" بالاشاره الى serveradmin من الوثيقة المشار اليها.

    The second line “ServerTokens Prod” configures Apache to return only Apache as product in the server response header on very page request, suppressing OS, major and minor version info. السطر الثاني "servertokens دفعا" للعودة configures اباتشي اباتشي المنتجات فقط في خدمة رأس استجابة للغاية على طلب صفحة ، وقمع نظام التشغيل ، الرئيسية والثانويه على معلومات اصدار.

  7. Save and close the config file by pressing Shift-Colon, and then type wq keys, and hit Enter. حفظ واغلاق ملف بالضغط على التحول - والقولون ، ثم اكتب wq المفاتيح ، وتصل إلى تدخل.
  8. Restart Apache. استئناف اباتشي. Typical command is service httpd restart or /etc/init.d/apache2 restart . النمطيه هي قيادة الخدمة أو إعادة تشغيل httpd / etc/init.d/apache2 عند بدء التشغيل.
  9. Now, you will get only the Apache in the server response header: الآن ، سوف تحصل فقط في الخادم اباتشي رأس استجابة :

    Server: Apache الخادم : أباتشي

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذا هو الاله الذي ترجم صفحة مقدمة "كما هى" دون ضمان. Machine translation may be difficult to understand. الترجمة الاليه قد يكون من الصعب ان نفهم. Please refer to يرجى الرجوع الى original English article المادة الاصليه English whenever possible. كلما كان ذلك ممكنا.

Share and contribute or get technical support and help at والمساهمة في حصة او الحصول على الدعم التقني والمساعدة فى My Digital Life Forums بلدي الرقميه الحياة المنتديات .



Leave a Reply ترك الرد

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><دل datetime = ""> <em><i><qCite=""> <strike><strong>

Subscribe without commenting اشترك بدون تعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article الوافدة من حيث البحث عن المادة

servertokens servertokens - -- apache ServerTokens اباتشي servertokens - -- servertokens prod servertokens النخزه - -- servertokens apache servertokens اباتشي - -- apache ServerSignature اباتشي serversignature - -- apache remove server header ازالة رأس خادم اباتشي - -- apache servertoken اباتشي servertoken - -- apache2 ServerToken apache2 servertoken - -- apache server signature خادم اباتشي التوقيع - -- ServerTokens Servertokens - -- serversignature serversignature - -- apache server tokens رموز الخادم اباتشي - -- apache2 ServerTokens apache2 servertokens - -- Apache turn off server signature ايقاف تشغيل خادم اباتشي التوقيع - -- ServerSignature ServerTokens Serversignature servertokens - -- custom serversignature apache العرف serversignature اباتشي - -- ServerTokens prod apache2 Servertokens دفعا apache2 - -- disable server header رأس خادم تعطيل - -- remove apache header ازالة رأس اباتشي - -- apache disable headers تعطيل رؤوس اباتشي - -- cpanel servertokens cpanel servertokens - -- turn off ServerTokens ايقاف تشغيل servertokens - -- turn off server signature ايقاف تشغيل خادم التوقيع - -- PROD Apache2 النخزه apache2 - -- servertokens httpd.conf servertokens httpd.conf - -- apache2 disable server info apache2 تعطيل خدمة المعلومات - -- apache modify server header تعديل رأس خادم اباتشي - -- apache serversignature custom اباتشي serversignature العرف - -- apache disable server info تعطيل الخادم اباتشي معلومات - -- httpd.conf ServerTokens Prod httpd.conf servertokens النخزه - -- httpd.conf ServerTokens httpd.conf servertokens - -- ServerTokens custom Servertokens العرف - -- apache ServerTokens ServerSignature اباتشي servertokens serversignature - -- apache2 serversignature apache2 serversignature - -- cpanel ServerSignature lost فقدت cpanel serversignature - -- security ServerSignature الامن serversignature - -- apache 2.0 disable server header تعطيل الخادم اباتشي 2،0 راسيه - -- apache ServerTokens Off اباتشي من servertokens - -- remove apache server header ازالة رأس خادم اباتشي - -- apache 2.2 serversignature اباتشي 2،2 serversignature - -- apache server header رأس خادم اباتشي - -- remove Server header رأس خادم ازالة - -- apache remove header ازالة رأس اباتشي - -- all الكل - -- apache change server signature تغيير الخادم اباتشي التوقيع - -- improve apache 1.3 response تحسين استجابة اباتشي 1،3 - -- apache disable server header رأس خادم اباتشي تعطيل - -- ServerTokens still displays full header Servertokens لا يزال يعرض كامل راس - -- Apache ServerTokens remove server header اباتشي servertokens ازالة رأس خادم - -- server header removal apache رأس خادم ازالة اباتشي - --