Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header सुधार Apache वेब सर्वर सुरक्षा: प्रयोग 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. जब Apache 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 (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

Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Server at xx.xx.xx.xx Port 80 सर्वर: Apache/2.0.53 (Ubuntu) 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. कि Apache HTTP वेब सर्वर पूरी दुनिया के लिए सार्वजनिक रूप से इस संदेश को प्रसारित नहीं करता है और संभव सुरक्षा के मुद्दे को ठीक कर, इन दो निर्देशों को संशोधित 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 () vi या अन्य पाठ संपादक के साथ में. 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. इस Apache विन्यास सामान्यतः / etc / httpd / conf / या / etc/apache2 / या में स्थित / etc / अपेक / 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). Apache 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 . इसके अलावा प्रॉड (प्रेस r एक चरित्र, या कई वर्णों को बदलने के लिए अनुसंधान को बदलने के लिए कुंजी) बनने के लिए है, इसलिए पूर्ण संशोधित कि लाइन ServerTokens प्रॉड हो जाता है. In Apache 2.0 or 2.2, the line normally does not exist. Apache 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. इस मामले में, फ़ाइल config के नीचे करने के लिए, जाओ और निम्नलिखित पाठ के साथ नई लाइन जोड़ें. 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: अब तक इस Apache विन्यास फाइल इस दो निर्देशों से नीचे के रूप में स्थापित होना चाहिए:

    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 बाहर" Apache सर्वर के तहत एक अनुगामी पाद लेख पंक्ति प्रदर्शित करने के लिए नहीं उत्पन्न दस्तावेजों (त्रुटि संदेश, mod_proxy FTP निर्देशिका लिस्टिंग, mod_info उत्पादन है, और इत्यादि) जो सर्वर संस्करण नंबर, सेवारत आभासी मेजबान, ईमेल के ServerName दिखाता निर्देश , सेटिंग और एक "mailto बनाता है:" ServerAdmin ने referenced दस्तावेज़ का संदर्भ.

    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. सहेजें और Shift दबाने-Colon द्वारा config फाइल बंद, और तब प्रकार wq चाबियाँ, और दर्ज करें मारा.
  8. Restart Apache. अपाचे Restart. Typical command is service httpd restart or /etc/init.d/apache2 restart . ठेठ कमांड है सेवा या पुनरारम्भ / etc/init.d/apache2 restart httpd.
  9. Now, you will get only the Apache in the server response header: अब, तुम सर्वर प्रतिक्रिया हेडर में ही अपाचे मिलेगा:

    Server: Apache सर्वर: Apache

IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: इस पृष्ठ है मशीन अनुवाद प्रदान की और "" के रूप में वारंटी के बिना है. Machine translation may be difficult to understand. मशीन अनुवाद को समझने में मुश्किल हो सकती है. Please refer to कृपया देखें original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव हो सकता है.


2 Responses to “Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header” 2 जवाब "सुधारें Apache वेब सर्वर सुरक्षा: प्रयोग ServerTokens और ServerSignature अक्षम हैडर करने के लिए" करने के लिए

  1. Leonid Leonid
    November 17th, 2008 14:58 नवंबर, 17 2008 14:58
    2 2

    Many thanks, i have been using the ServerSignature Off for long time now, but the second one is quite new. बहुत धन्यवाद, मैं लंबे समय से है, लेकिन दूसरी एक बिल्कुल नया है ServerSignature के बाहर का उपयोग किया गया है.

    Do you know how you can actually edit the serversignature so you will decide which information to send in case of an error? तुम तो तुम एक त्रुटि के मामले में भेजने के लिए जो जानकारी तय करेगा कि कैसे आप वास्तव में serversignature संपादित कर सकते हैं पता है?

  2. Nilesh नीलेश
    October 24th, 2008 17:00 अक्टूबर, 24. 2008 17:00
    1 1

    It's really useful article to secure your dedicated web servers. यह वास्तव में उपयोगी है लेख अपने समर्पित वेब सर्वर को सुरक्षित करने के लिए. The information provided is easy to make changes on the server. यह जानकारी प्रदान की सर्वर पर परिवर्तन करना आसान है.

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> आप इन टैग्स: <a href="" का उपयोग कर सकते हैं title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <डेल datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. सुविधा को निष्क्रिय कर दिया गया है टिप्पणी करने के लिए सदस्यता लें. To receive notification of latest comments posted, subscribe to , पोस्ट नवीनतम टिप्पणी की सूचना प्राप्त करने के लिए की सदस्यता My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
Custom Search

New Articles नई लेख

Incoming Search Terms for the Article के लिए खोज नियम आने के अनुच्छेद

apache ServerTokens अपेक ServerTokens - -- servertokens apache servertokens Apache - -- apache2 servertoken apache2 servertoken - -- apache disable server header अपेक अक्षम सर्वर शीर्षक - -- apache2 server header apache2 सर्वर शीर्षक - -- Apache server tokens Apache सर्वर टोकन - -- turn off server header apache सर्वर शीर्ष Apache बंद - -- servertokens footer servertokens पाद लेख - -- apache disable header 404 अपेक अक्षम शीर्ष 404 - -- disable serverinfo in apache अपेक में अक्षम serverinfo - -- disable ServerSignature apache निष्क्रिय ServerSignature Apache - -- disable ServerTokens निष्क्रिय ServerTokens - -- http header remove Server HTTP शीर्षक सर्वर हटा - -- apache2 servertokens apache2 servertokens - -- apache2 servertokens prod apache2 servertokens ठेस - -- apache turn off signature अपेक बारी हस्ताक्षर से - -- http header server: Apache HTTP शीर्षक सर्वर: Apache - -- Remove Server: Apache from headers निकालें सर्वर: अपाचे हेडर से - -- ServerTokens Product Only ServerTokens उत्पाद केवल - -- absence ServerTokens apache2.conf अनुपस्थिति ServerTokens apache2.conf - -- apache servertokens off अपेक servertokens बंद - -- disable put apache निष्क्रिय रखा Apache - -- header server modify शीर्षक सर्वर संशोधित - -- how to disable apache headers कैसे को निष्क्रिय करने के लिए Apache हेडर - -- +apache +ServerToken + Apache + ServerToken - -- apache custom server signature अपेक कस्टम सर्वर हस्ताक्षर - -- apache2 disable server header apache2 अक्षम सर्वर शीर्षक - -- apache conf ServerToken अपेक conf ServerToken - -- apache ServerTokens httpd.conf अपेक ServerTokens httpd.conf - -- appache ServerSignature mail appache ServerSignature मेल - -- appache ServerTokens appache ServerTokens - -- disable server signature निष्क्रिय सर्वर हस्ताक्षर - -- how to eliminate apache version on error page कैसे पृष्ठ त्रुटि पर Apache संस्करण को समाप्त करने के लिए - -- how to disable apache version info कैसे निष्क्रिय Apache संस्करण जानकारी के लिए - -- php server signature PHP सर्वर हस्ताक्षर - -- server signature off in apache Apache सर्वर में हस्ताक्षर बंद - -- servertokens prod servertokens ठेस - -- ServerTokens httpd.conf ServerTokens httpd.conf - -- ServerSignature httpd.conf ServerSignature httpd.conf - -- ServerTokens custom ServerTokens कस्टम - -- apache footer security अपेक पाद लेख सुरक्षा - -- hide ServerTokens apache ServerTokens Apache छिपाना - -- how to modify apache ServerTokens in ubuntu कैसे ubuntu में अपेक ServerTokens को संशोधित करने के लिए - -- servertokens apache2 servertokens apache2 - --