{"id":1090,"date":"2013-02-19T18:00:58","date_gmt":"2013-02-20T02:00:58","guid":{"rendered":"http:\/\/www.virendrachandak.com\/techtalk\/\/?p=1090"},"modified":"2014-10-09T11:01:19","modified_gmt":"2014-10-09T18:01:19","slug":"how-to-hide-apache-information-with-servertokens-and-serversignature-directives","status":"publish","type":"post","link":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/","title":{"rendered":"How to hide apache information with ServerTokens and ServerSignature directives"},"content":{"rendered":"<p>In default Apache configuration, the server sends HTTP Header with the information of Apache version, modules, Operating System, etc of the Server. The HTTP response header \u201cServer\u201d displays all these details of the server. This information can be used by hackers to try to exploit any vulnerabilities in the Apache, OS or other modules you are running, specially if you are running an older version with known vulnerabilities.<\/p>\n<p>Sample HTTP Response Header:<\/p>\n<pre class=\"brush: plain; highlight: [3]; title: ; notranslate\" title=\"\">\r\nHTTP\/1.1 200 OK\r\nDate: Sun, 10 Feb 2012 07:24:47 GMT\r\nServer: Apache\/2.2.17 (Win32) PHP\/5.2.17\r\nVary: Accept-Encoding,Cookie\r\n<\/pre>\n<p><!--more--><\/p>\n<div><strong>Note<\/strong>: This is just one way to identify the details. Also, even if this information is not available hackers might still try to hack it using other ways.<\/div>\n<p>There is an easy way to hide the apache version and other server information from the HTTP headers. By setting the &#8220;<strong>ServerTokens<\/strong>&#8221; and &#8220;<strong>ServerSignature<\/strong>&#8221; variables in your httpd.conf file the server information would not longer be added to the HTTP headers. Use the following lines in you httpd.conf file. Make sure to back up you file before editing so that in case something goes wrong you can easily revert. After making the changes restart your apache (<strong>Note<\/strong>: Doing so will take your site down, if it runs only on 1 server).<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nServerTokens ProductOnly\r\nServerSignature Off\r\n<\/pre>\n<div>After using the above directives the HTTP headers will look similar to this:<\/div>\n<pre class=\"brush: plain; highlight: [3]; title: ; notranslate\" title=\"\">\r\nHTTP\/1.1 200 OK\r\nDate: Sun, 10 Feb 2012 07:24:47 GMT\r\nServer: Apache\r\nVary: Accept-Encoding,Cookie\r\n<\/pre>\n<div>\nThe ServerTokens Directive controls the response which server sends to include the server details, OS and other complied modules. ServerTokens can have various values. Here are the outputs of each different values<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<th>ServerTokens Value<\/th>\n<th>Server Sends<\/th>\n<\/tr>\n<tr>\n<td>Full (or not specificed)<\/td>\n<td>Server: Apache\/2.2.17 (Win32) PHP\/5.2.17<\/td>\n<\/tr>\n<tr>\n<td>Prod (or&nbsp;ProductOnly)<\/td>\n<td>Server: Apache<\/td>\n<\/tr>\n<tr>\n<td>Major<\/td>\n<td>Server: Apache\/2<\/td>\n<\/tr>\n<tr>\n<td>Minor<\/td>\n<td>Server: Apache\/2.2<\/td>\n<\/tr>\n<tr>\n<td>Min (or Minimal)<\/td>\n<td>Server: Apache\/2.2.17<\/td>\n<\/tr>\n<tr>\n<td>OS<\/td>\n<td>Server: Apache\/2.2.17 (Win32)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\nThe ServerSignature Directive can be used to configure a trailing footer line under the server-generated documents (e.g. error pages, directory listing etc). The default setting for this directive is Off, which does not displays the footer line. If this is set to On, the server will add a line with the server version number and ServerName of the virutal host. If we set this value to Email, it will add a &#8220;mailto:&#8221; link to the ServerAdmin defined in the server configuration. After Apache 2.0.44 the value of Server version number is controlled by the ServerTokens Directive.\n<\/div>\n<div>\n<span style=\"text-decoration: underline;\"><strong>Note<\/strong><\/span>: Make these changes in your server only if you are sure you know you can do them. If you make a mistake in the httpd.conf file, your site won&#8217;t work. So be very careful when making these changes. Also, it is always good to take a backup of the existing file before making any changes, in case you want to revert.\n<\/div>\n<div>\n<strong>Related Links<\/strong>:<\/p>\n<ul>\n<li><a title=\"Apache Core Features - ServerTokens Directive\" href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/core.html#servertokens\" rel=\"external nofollow\" target=\"_blank\">Apache Core Features &#8211; ServerTokens Directive<\/a><\/li>\n<li><a title=\"Apache Core Features - ServerSignature Directive\" href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/core.html#serversignature\" rel=\"external nofollow\" target=\"_blank\">Apache Core Features &#8211; ServerSignature Directive<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In default Apache configuration, the server sends HTTP Header with the information of Apache version, modules, Operating System, etc of the Server. The HTTP response header \u201cServer\u201d displays all these details of the server. This information can be used by hackers to try to exploit any vulnerabilities in the Apache, OS or other modules you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6],"tags":[20,114,117,116],"class_list":["post-1090","post","type-post","status-publish","format-standard","hentry","category-server-configuration","tag-apache","tag-http-header","tag-serversignature","tag-servertokens"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to hide apache information with ServerSignature and ServerTokens directives - Virendra&#039;s TechTalk<\/title>\n<meta name=\"description\" content=\"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to hide apache information with ServerSignature and ServerTokens directives - Virendra&#039;s TechTalk\" \/>\n<meta property=\"og:description\" content=\"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/\" \/>\n<meta property=\"og:site_name\" content=\"Virendra&#039;s TechTalk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-20T02:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-09T18:01:19+00:00\" \/>\n<meta name=\"author\" content=\"Virendra Chandak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:site\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virendra Chandak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/\"},\"author\":{\"name\":\"Virendra Chandak\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"headline\":\"How to hide apache information with ServerTokens and ServerSignature directives\",\"datePublished\":\"2013-02-20T02:00:58+00:00\",\"dateModified\":\"2014-10-09T18:01:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/\"},\"wordCount\":492,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"keywords\":[\"Apache\",\"HTTP Header\",\"ServerSignature\",\"ServerTokens\"],\"articleSection\":[\"Server Configuration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/\",\"name\":\"How to hide apache information with ServerSignature and ServerTokens directives - Virendra's TechTalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\"},\"datePublished\":\"2013-02-20T02:00:58+00:00\",\"dateModified\":\"2014-10-09T18:01:19+00:00\",\"description\":\"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TechTalk\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Server Configuration\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/category\\\/server-configuration\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to hide apache information with ServerTokens and ServerSignature directives\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\",\"name\":\"Virendra's TechTalk\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\",\"name\":\"Virendra Chandak\",\"logo\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.virendrachandak.com\",\"https:\\\/\\\/www.facebook.com\\\/virendrachandak\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/virendrachandak\\\/\",\"https:\\\/\\\/x.com\\\/virendrachandak\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to hide apache information with ServerSignature and ServerTokens directives - Virendra's TechTalk","description":"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/","og_locale":"en_US","og_type":"article","og_title":"How to hide apache information with ServerSignature and ServerTokens directives - Virendra's TechTalk","og_description":"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.","og_url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/","og_site_name":"Virendra&#039;s TechTalk","article_publisher":"https:\/\/www.facebook.com\/virendrachandak","article_author":"https:\/\/www.facebook.com\/virendrachandak","article_published_time":"2013-02-20T02:00:58+00:00","article_modified_time":"2014-10-09T18:01:19+00:00","author":"Virendra Chandak","twitter_card":"summary_large_image","twitter_creator":"@virendrachandak","twitter_site":"@virendrachandak","twitter_misc":{"Written by":"Virendra Chandak","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/#article","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/"},"author":{"name":"Virendra Chandak","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"headline":"How to hide apache information with ServerTokens and ServerSignature directives","datePublished":"2013-02-20T02:00:58+00:00","dateModified":"2014-10-09T18:01:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/"},"wordCount":492,"commentCount":3,"publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"keywords":["Apache","HTTP Header","ServerSignature","ServerTokens"],"articleSection":["Server Configuration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/","url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/","name":"How to hide apache information with ServerSignature and ServerTokens directives - Virendra's TechTalk","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website"},"datePublished":"2013-02-20T02:00:58+00:00","dateModified":"2014-10-09T18:01:19+00:00","description":"Apache server by default sends its version number and other details in HTTP headers. Here are steps to hide Apache information from headers and error pages.","breadcrumb":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-apache-information-with-servertokens-and-serversignature-directives\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"TechTalk","item":"https:\/\/www.virendrachandak.com\/techtalk\/"},{"@type":"ListItem","position":2,"name":"Server Configuration","item":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},{"@type":"ListItem","position":3,"name":"How to hide apache information with ServerTokens and ServerSignature directives"}]},{"@type":"WebSite","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website","url":"https:\/\/www.virendrachandak.com\/techtalk\/","name":"Virendra's TechTalk","description":"","publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.virendrachandak.com\/techtalk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17","name":"Virendra Chandak","logo":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.virendrachandak.com","https:\/\/www.facebook.com\/virendrachandak","https:\/\/www.linkedin.com\/in\/virendrachandak\/","https:\/\/x.com\/virendrachandak"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2vTtQ-hA","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1088,"url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-php-version-in-the-http-headers\/","url_meta":{"origin":1090,"position":0},"title":"How to hide PHP version in the HTTP Headers","author":"Virendra Chandak","date":"November 4, 2012","format":false,"excerpt":"In default Apache\/PHP configuration, the server sends HTTP Header with the information of which PHP version is running on the server. The HTTP response header \"X-Powered-By\" displays the version of PHP that is running on the server. This information can be used by hackers to try to exploit any vulnerabilities\u2026","rel":"","context":"In &quot;Server Configuration&quot;","block_context":{"text":"Server Configuration","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1574,"url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-hide-nginx-version-number-in-headers-and-errors-pages\/","url_meta":{"origin":1090,"position":1},"title":"How to hide Nginx version number in headers and errors pages","author":"Virendra Chandak","date":"August 4, 2013","format":false,"excerpt":"In default Nginx configuration, the server sends HTTP Header with the information of Nginx version number of the Server. The HTTP response header \u201cServer\u201d displays the version number of the server. This information can be used by hackers to try to exploit any vulnerabilities in the Nginx, specially if you\u2026","rel":"","context":"In &quot;Server Configuration&quot;","block_context":{"text":"Server Configuration","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":224,"url":"https:\/\/www.virendrachandak.com\/techtalk\/htaccess-tips\/","url_meta":{"origin":1090,"position":2},"title":".htaccess tips","author":"Virendra Chandak","date":"October 2, 2011","format":false,"excerpt":"Topics Covered: What is .htaccess file? When to use .htaccess file? Disadvantage of using .htaccess file Authentication using .htaccess file Custom Error Document Allow\/Disallow Directory Listings What is .htaccess file? .htaccess file is used on Apache Web Server to make configuration changes on per-directory basis. This file contains the configuration\u2026","rel":"","context":"In &quot;Server Configuration&quot;","block_context":{"text":"Server Configuration","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2196,"url":"https:\/\/www.virendrachandak.com\/techtalk\/using-php-bcrypt-algorithm-for-htpasswd-generation\/","url_meta":{"origin":1090,"position":3},"title":"Generating bcrypt .htpasswd passwords using PHP","author":"Virendra Chandak","date":"September 23, 2019","format":false,"excerpt":"In my previous post we saw how to generate .htpasswd file using crypt and apr1-md5 algorithm in PHP. However, now there is a more secure BCRYPT algorithm that can be used since apache 2.4 for passwords in .htpasswd. In this post we will generate .htpasswd file using the BCRYPT algorithm\u2026","rel":"","context":"In &quot;Security&quot;","block_context":{"text":"Security","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/security\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":163,"url":"https:\/\/www.virendrachandak.com\/techtalk\/creating-multiple-virtual-websites-in-wampserver\/","url_meta":{"origin":1090,"position":4},"title":"Creating multiple virtual hosts\/websites in Wampserver","author":"Virendra Chandak","date":"June 25, 2011","format":false,"excerpt":"To create multiple websites, it would be helpful to have each website setup on the local computer. With Wampserver (or just Apache) we can easily configure multiple websites. Following are the steps to create multiple websites using Apache's configuration. This uses Apache's \"Named Virtual Hosts\" configuration. I have tested these\u2026","rel":"","context":"In &quot;Server Configuration&quot;","block_context":{"text":"Server Configuration","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":450,"url":"https:\/\/www.virendrachandak.com\/techtalk\/getting-real-client-ip-address-in-php-2\/","url_meta":{"origin":1090,"position":5},"title":"Getting real client IP address in PHP","author":"Virendra Chandak","date":"October 23, 2011","format":false,"excerpt":"Many times we need the visitor's ipaddress for validation, security, spam prevention, etc. Getting the Visitor's ipaddress is very easy in PHP. The simplest way to get the visitor's\/client's ipaddress is using the $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST'] variables. The variable in the $_SERVER array are created by the web server (like\u2026","rel":"","context":"In &quot;Functionality&quot;","block_context":{"text":"Functionality","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/functionality\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/comments?post=1090"}],"version-history":[{"count":0,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1090\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/media?parent=1090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/categories?post=1090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/tags?post=1090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}