<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IIS Hacks &#124; Server and System Administration &#187; Internet Information Server</title>
	<atom:link href="http://www.iishacks.com/index.php/category/internet-information-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iishacks.com</link>
	<description>System and Network Administration, IIS, Exchange Server, Windows Tips, Opinions</description>
	<lastBuildDate>Thu, 01 Dec 2011 05:33:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Install PHP 5.3 FastCGI on Windows 2008 IIS 7</title>
		<link>http://www.iishacks.com/2011/02/14/how-to-install-php-5-3-fastcgi-on-windows-2008-iis-7/</link>
		<comments>http://www.iishacks.com/2011/02/14/how-to-install-php-5-3-fastcgi-on-windows-2008-iis-7/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 20:35:08 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Internet Information Server]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=766</guid>
		<description><![CDATA[PHP on Windows has come along way in the past few years. It used to be a chore to get PHP to work properly on IIS. Not so, anymore. In the past I&#8217;ve recommended PHP ISAPI for IIS when using threaded applications and accelerators like eAccelerator, xCache and APC. APC now includes support for FastCGI [...]


Related posts:<ol><li><a href='http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64/' rel='bookmark' title='How to install PHP ISAPI on Windows 2008 IIS7 x64'>How to install PHP ISAPI on Windows 2008 IIS7 x64</a></li>
<li><a href='http://www.iishacks.com/2009/01/11/install-and-boot-windows-7-beta-or-windows-server-2008-r2-beta-on-vhd/' rel='bookmark' title='Install and Boot Windows 7 Beta or Windows Server 2008 R2 Beta on VHD'>Install and Boot Windows 7 Beta or Windows Server 2008 R2 Beta on VHD</a></li>
<li><a href='http://www.iishacks.com/2007/07/15/enabling-internet-on-fresh-windows-server-2008-install/' rel='bookmark' title='Enabling Internet on fresh Windows Server 2008 install'>Enabling Internet on fresh Windows Server 2008 install</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>PHP on Windows has come along way in the past few years. It used to be a chore to get PHP to work properly on IIS. Not so, anymore.</p>
<p>In the past I&#8217;ve recommended PHP ISAPI for IIS when using threaded applications and accelerators like eAccelerator, xCache and APC. APC now includes support for FastCGI (Non-Thread Safe). To install PHP 4 &#8211; 5.2.x ISAPI, see my previous post: <a href="http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64/">How to install PHP ISAPI on Windows 2008 IIS7 x64</a>.</p>
<p>With PHP 5.3.x, the ISAPI dll has been removed for Windows. In order to use it, you&#8217;ll need to compile it yourself. There is a big push to use FastCGI on IIS, and with good reason &#8211; the performance has increased dramatically. Since most web applications (blogs, forums, CMS) do not require a Thread Safe install of PHP, FastCGI is the fastest and most stable option around.</p>
<p>PHP 5.3 for Windows is now compiled with either VC6 or VC9. VC9 should be used with IIS and VC6 should be used with Apache 1 or 2. For the VC9 versions you will need the Microsoft 2008 C++ Runtime (<a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&amp;displaylang=en">VC x86</a>, <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=bd2a6171-e2d6-4230-b809-9a8d7548c1b6&amp;displaylang=en">VC x64</a>, even though you are installing 32-bit PHP, install the correct version of VC++ for the version of Windows that you have).</p>
<p>When installing multiple versions of PHP with PHP Manager, each install can have a different PHP.ini and set of extensions installed and enabled. Within IIS, you can have a different version of PHP enabled for each site.</p>
<p>1. <strong>Download and Install PHP Manager for IIS 7/7.5.</strong> (<a href="http://phpmanager.codeplex.com/releases/view/59970">http://phpmanager.codeplex.com/releases/view/59970</a>) Even though PHP is 32-bit, install the version of PHP Manager that matches your install of Windows (x86 or x64).</p>
<p><img class="alignnone size-full wp-image-767" title="PHP Manager for IIS" src="http://www.iishacks.com/wp-content/uploads/2011/02/0-phpman1.jpg" alt="" width="554" height="516" /></p>
<p>2. <strong>Download and Install PHP 5.3.x for Windows VC9 (Non-Thread Safe).</strong> (<a href="http://windows.php.net/download/">http://windows.php.net/download/</a>) You can use the installer or zip package. I&#8217;d recommend using the installer package if this is your first install, as it will set the PATH for your PHP install in Windows. If you are adding a second version or upgrading PHP, download the zip package and simply unzip it. If you plan to use multiple versions of PHP at the same time, I&#8217;d recommend naming your directories with the PHP version, ie: C:\php_5.3.5\.</p>
<p>3. In PHP Manager (<strong>IIS Manager</strong> -&gt; <strong>Server Name</strong> -&gt; <strong>PHP Manager</strong>), click on &#8220;<strong>Register New PHP Version</strong>&#8221; and browse to where you unzipped the PHP files. Select the <strong>php-cgi.exe</strong> file and click OK. Once you have registered the PHP module, you&#8217;ll need to configure the PHP.ini. This can be done in Notepad or within PHP Manager (Manage All Settings). For most basic installs, the default PHP.ini will suffice. If you are using a MySQL database, you&#8217;ll have to enable the MySQL or MySQLi extension. Go to <strong>IIS Manager</strong> -&gt; <strong>PHP Manager</strong> -&gt; <strong>PHP Extensions</strong> -&gt; <strong>Enable</strong> <strong>or disable an extension</strong>. Click on <strong>php_mysql.dll </strong>and/or <strong>php_mysqli.dll </strong>and under Actions on the right side bar, click <strong>Enable</strong>.</p>
<p><img class="alignnone size-full wp-image-768" title="Register PHP in IIS" src="http://www.iishacks.com/wp-content/uploads/2011/02/1-phpman-register.jpg" alt="" width="446" height="300" /></p>
<p>4. If you are using Windows x64, you&#8217;ll need to set your application pool settings to allow 32-bit PHP to function. If you are using 32-bit Windows, skip this step. In <strong>IIS Manager</strong> -&gt; <strong>Application Pools</strong> -&gt; Right-Click on the website&#8217;s application pool (or Default if you haven&#8217;t set one up yet) and select <strong>Advanced Settings</strong>. Set &#8220;<strong>Enable 32-bit applications</strong>&#8221; to <strong>TRUE</strong>. Click OK. This spawns the App Pool in 32-bit mode, so if you have other modules that need to be run in 64-bit mode, best to separate the website into two App Pools: one 32-bit and one 64-bit.</p>
<p><img class="alignnone size-full wp-image-769" title="Application Pool settings for PHP on IIS x64" src="http://www.iishacks.com/wp-content/uploads/2011/02/2-phpman5-apppool.jpg" alt="" width="477" height="131" /></p>
<p>5. If you want to install multiple versions of PHP, all you need to do is register each version using PHP Manager. You can click on each individual website and select a specific version of PHP to run. Remember to modify the PHP.ini of each version you register. If you get CGI errors when trying to view a webpage, make sure cgi.force_redirect = 0, or it is commented out in the PHP.ini.</p>
<p><img class="alignnone size-full wp-image-770" title="Switch versions of PHP on IIS" src="http://www.iishacks.com/wp-content/uploads/2011/02/3-phpman3-switch.jpg" alt="" width="426" height="303" /></p>


<p>Related posts:<ol><li><a href='http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64/' rel='bookmark' title='How to install PHP ISAPI on Windows 2008 IIS7 x64'>How to install PHP ISAPI on Windows 2008 IIS7 x64</a></li>
<li><a href='http://www.iishacks.com/2009/01/11/install-and-boot-windows-7-beta-or-windows-server-2008-r2-beta-on-vhd/' rel='bookmark' title='Install and Boot Windows 7 Beta or Windows Server 2008 R2 Beta on VHD'>Install and Boot Windows 7 Beta or Windows Server 2008 R2 Beta on VHD</a></li>
<li><a href='http://www.iishacks.com/2007/07/15/enabling-internet-on-fresh-windows-server-2008-install/' rel='bookmark' title='Enabling Internet on fresh Windows Server 2008 install'>Enabling Internet on fresh Windows Server 2008 install</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2011/02/14/how-to-install-php-5-3-fastcgi-on-windows-2008-iis-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using IIS Media Services Web Playlists with JW Player</title>
		<link>http://www.iishacks.com/2010/08/03/using-iis-media-services-web-playlists-with-jw-player/</link>
		<comments>http://www.iishacks.com/2010/08/03/using-iis-media-services-web-playlists-with-jw-player/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 03:40:53 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Internet Information Server]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=684</guid>
		<description><![CDATA[So you&#8217;ve decided you want to use JW Player for Silverlight and IIS Media Services Web Playlists together. One of the reasons to use Web Playlists is to hide the true path of your video. This makes it difficult for users to download a full copy of your video, perfect for streaming copyrighted or pay-per-view content. [...]


Related posts:<ol><li><a href='http://www.iishacks.com/2007/05/18/setting-processor-affinity-permanently/' rel='bookmark' title='Setting Processor Affinity Permanently'>Setting Processor Affinity Permanently</a></li>
<li><a href='http://www.iishacks.com/2008/10/07/migrating-websites-from-iis6-to-iis7/' rel='bookmark' title='Migrating websites from IIS6 to IIS7'>Migrating websites from IIS6 to IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/microsoft-windows-server-2003-iis-log-file-format-comparison/' rel='bookmark' title='Microsoft Windows Server 2003 IIS Log File Format Comparison'>Microsoft Windows Server 2003 IIS Log File Format Comparison</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve decided you want to use JW Player for Silverlight and IIS Media Services Web Playlists together.</p>
<p>One of the reasons to use Web Playlists is to hide the true path of your video. This makes it difficult for users to download a full copy of your video, perfect for streaming copyrighted or pay-per-view content. Although users can still use screen capture software (such as Camtasia) to record your video, the process is more involved and less likely.</p>
<p>JW for flash and most other players require the media file (.mpeg, .mp4, etc) to be in a folder below the root path accessible by visitors. Web Playlists for IIS allows you to add videos from any folder on your server, and does not directly access the video when a viewing is requested. It uses a one-time security token to obfuscate the path.</p>
<p><strong>Step 1 – Add a New Playlist in IIS</strong></p>
<p>Here you’ll add a new playlist by opening up the <strong>IIS Manager</strong>, selecting your website and double-clicking on &#8220;<strong>Web Playlists</strong>.&#8221; Once it is open, on the right-hand side click on &#8220;<strong>Add Playlist</strong>.&#8221;</p>
<p><img class="alignnone size-full wp-image-685" title="add_playlist_iis_media_services_0" src="http://www.iishacks.com/wp-content/uploads/2010/08/add_playlist_iis_media_services_0.JPG" alt="add_playlist_iis_media_services_0" width="328" height="118" /><img class="alignnone size-full wp-image-686" title="add_playlist_iis_media_services_1" src="http://www.iishacks.com/wp-content/uploads/2010/08/add_playlist_iis_media_services_1.JPG" alt="add_playlist_iis_media_services_1" width="206" height="106" /></p>
<p>Once you type in a name for your playlist it will generate a URL that needs to be used by your web-based player. As you can see here, we are looking at iishacks.com/VMWareCertificate.isx.</p>
<p>You’ll need to add the specific video file by going to &#8220;<strong>Media entries</strong>&#8221; and clicking &#8220;<strong>Add</strong>.&#8221; You can select a Physical Path (excellent for hiding a file above the root folder), a Relative URI (if the file is in the root folder or below), or a Remote URL (if it is on another server or domain). I’ve chosen Physical Path and selected a folder that is not accessible via IIS.</p>
<p>You’ll notice you have options to disable skip back/forward or seek. If you choose to attach multiple videos together, or have required advertisements before, between or after videos, these options are for you. Networks such as Global TV utilize these options to ensure visitors are viewing the advertisements before a video starts.</p>
<p><img class="alignnone size-full wp-image-687" title="add_playlist_iis_media_services_3" src="http://www.iishacks.com/wp-content/uploads/2010/08/add_playlist_iis_media_services_3.JPG" alt="add_playlist_iis_media_services_3" width="564" height="369" /></p>
<p><strong>Step 2 – Add the Playlist to JW Player</strong></p>
<p>Once you’ve added your video file(s) you can now add the playlist to a web-based video player such as JW Player. JW Player for Silverlight is the only free player that supports the ISX playlist format and doesn&#8217;t require ASP. IIS Web Playlists supports .asf, .avi, .flv, .m4v, .mov, .mp3, .mp4, .rm, .rmvb, .wma and .wmv.</p>
<p>You can download JW Player for free here: <a href="http://www.longtailvideo.com/players/jw-wmv-player/">http://www.longtailvideo.com/players/jw-wmv-player/</a></p>
<p>Here is the code I used for my VMware video. This can be embedded into WordPress or any PHP/HTML file.</p>
<pre>
<div class="codesnip-container" >&lt;center&gt;&lt;div name="mediaspace" id="mediaspace"&gt;&lt;/div&gt;
&lt;p&gt; &lt;script type='text/javascript' src="/silverlight.js"&gt;&lt;/script&gt;&lt;br /&gt;
 &lt;script type='text/javascript' src="/wmvplayer.js"&gt;&lt;/script&gt;&lt;br /&gt;
 &lt;script type="text/javascript"&gt;
  var cnt = document.getElementById("mediaspace");
  var src = '/wmvplayer.xaml';
  var cfg = {
   file:'http://iishacks.com:80/VMWareCertificate.isx',
   height:'470',
   width:'600'
  };
  var ply = new jeroenwijering.Player(cnt,src,cfg);
 &lt;/script&gt;&lt;/center&gt;</div>
</pre>
<p>As you can see the ISX/ASX playlist is located at <a href="http://iishacks.com:80/VMWareCertificate.isx">http://iishacks.com:80/VMWareCertificate.isx</a> . If you try and open the file it will direct you to either a broken link or a text file with the following:</p>
<p><img class="alignnone size-full wp-image-695" title="add_playlist_iis_media_services_4" src="http://www.iishacks.com/wp-content/uploads/2010/08/add_playlist_iis_media_services_4.JPG" alt="add_playlist_iis_media_services_4" width="690" height="118" /></p>
<p>Notice how the ISX playlist has a tokenized session id appended to the URL? Try and open that. It&#8217;s a dead end. You&#8217;ll never be able to simply download the file. <a href="http://www.iis.net/download/WebPlaylists">Here is a full set of features with Web Playlists.</a></p>
<p><img class="alignnone size-full wp-image-696" title="add_playlist_iis_media_services_5" src="http://www.iishacks.com/wp-content/uploads/2010/08/add_playlist_iis_media_services_5.JPG" alt="add_playlist_iis_media_services_5" width="690" height="308" /></p>


<p>Related posts:<ol><li><a href='http://www.iishacks.com/2007/05/18/setting-processor-affinity-permanently/' rel='bookmark' title='Setting Processor Affinity Permanently'>Setting Processor Affinity Permanently</a></li>
<li><a href='http://www.iishacks.com/2008/10/07/migrating-websites-from-iis6-to-iis7/' rel='bookmark' title='Migrating websites from IIS6 to IIS7'>Migrating websites from IIS6 to IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/microsoft-windows-server-2003-iis-log-file-format-comparison/' rel='bookmark' title='Microsoft Windows Server 2003 IIS Log File Format Comparison'>Microsoft Windows Server 2003 IIS Log File Format Comparison</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2010/08/03/using-iis-media-services-web-playlists-with-jw-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://iishacks.com:80/VMWareCertificate.isx" length="262" type="video/x-ms-asf" />
		</item>
		<item>
		<title>Unexpected Error 0x8ffe2740 when starting FTP or IIS</title>
		<link>http://www.iishacks.com/2010/04/21/unexpected-error-0x8ffe2740-when-starting-ftp-or-iis/</link>
		<comments>http://www.iishacks.com/2010/04/21/unexpected-error-0x8ffe2740-when-starting-ftp-or-iis/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 22:12:05 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Internet Information Server]]></category>
		<category><![CDATA[Security, Viruses, Trojans]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=653</guid>
		<description><![CDATA[Another one of Microsoft’s descriptive errors is 0x8ffe2740 when trying to start an FTP or Web Server from the IIS Administration module. The error itself means that there is a port conflict with another service. This is a relatively easy diagnosis, as you should already know what ports your ftp or web servers use. Use the [...]


Related posts:<ol><li><a href='http://www.iishacks.com/2008/10/07/migrating-websites-from-iis6-to-iis7/' rel='bookmark' title='Migrating websites from IIS6 to IIS7'>Migrating websites from IIS6 to IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/05/18/file_get_contents-on-iis-6/' rel='bookmark' title='file_get_contents on IIS 6'>file_get_contents on IIS 6</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/microsoft-windows-server-2003-iis-log-file-format-comparison/' rel='bookmark' title='Microsoft Windows Server 2003 IIS Log File Format Comparison'>Microsoft Windows Server 2003 IIS Log File Format Comparison</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Another one of Microsoft’s descriptive errors is 0x8ffe2740 when trying to start an FTP or Web Server from the IIS Administration module. The error itself means that there is a port conflict with another service. This is a relatively easy diagnosis, as you should already know what ports your ftp or web servers use.</p>
<p><img class="alignnone size-full wp-image-654" title="Error 0x8ffe2740 when starting ftp or iis" src="http://www.iishacks.com/wp-content/uploads/2010/04/serversnip3.JPG" alt="Error 0x8ffe2740 when starting ftp or iis" width="269" height="119" /></p>
<p>Use the netstat command in the command console to find out what program is using a particular TCP port. Replace the ## with the port you wish to test. This works on Windows Server 2003 and 2008.</p>
<div class="codesnip-container" >netstat -anop TCP|find &#8220;:##&#8221;</div>
<p>The above command will return a PID (process ID). You will need to match that to a running program or service. Type the following command:</p>
<div class="codesnip-container" >tasklist /SVC /FI &#8220;PID eq ####&#8221;</div>
<p>Here is an example using port 21. In this example you can see the &#8220;ftpsvc&#8221; service is using port 21 through svchost.exe &#8211; which is normal. In a client&#8217;s machine, it was MSUpdate2.exe that was using port 21 &#8211; a piece of malware using an FTP server to serve pirated movies!</p>
<p><img class="alignnone size-full wp-image-655" title="Unexpected Error 0x8ffe2740" src="http://www.iishacks.com/wp-content/uploads/2010/04/serversnip3-1.jpg" alt="Unexpected Error 0x8ffe2740" width="610" height="110" /></p>


<p>Related posts:<ol><li><a href='http://www.iishacks.com/2008/10/07/migrating-websites-from-iis6-to-iis7/' rel='bookmark' title='Migrating websites from IIS6 to IIS7'>Migrating websites from IIS6 to IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/05/18/file_get_contents-on-iis-6/' rel='bookmark' title='file_get_contents on IIS 6'>file_get_contents on IIS 6</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/microsoft-windows-server-2003-iis-log-file-format-comparison/' rel='bookmark' title='Microsoft Windows Server 2003 IIS Log File Format Comparison'>Microsoft Windows Server 2003 IIS Log File Format Comparison</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2010/04/21/unexpected-error-0x8ffe2740-when-starting-ftp-or-iis/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove X-Powered-By: ASP.NET HTTP Response Header</title>
		<link>http://www.iishacks.com/2009/11/11/remove-x-powered-by-aspnet-http-response-header/</link>
		<comments>http://www.iishacks.com/2009/11/11/remove-x-powered-by-aspnet-http-response-header/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 12:37:58 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Internet Information Server]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=419</guid>
		<description><![CDATA[Quite a few people have asked how to remove the default HTTP Response Headers of IIS6 and IIS7. It&#8217;s very easy, actually. You can have some fun with it too (bottom). Remove, Edit or Add HTTP Response Headers in Windows 2003 IIS6 Open the IIS Management Console. Right-click on &#8220;Websites&#8221; and select &#8220;Properties.&#8221; Click on the &#8220;HTTP Headers&#8221; [...]


Related posts:<ol><li><a href='http://www.iishacks.com/2008/10/25/host-headers-vs-spam-and-how-to-setup-on-iis6-and-iis7/' rel='bookmark' title='Host Headers vs. Spam and How-to Setup on IIS6 and IIS7'>Host Headers vs. Spam and How-to Setup on IIS6 and IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/11/18/how-to-view-email-headers-in-common-email-programs/' rel='bookmark' title='How to View Email Headers in Common Email Programs'>How to View Email Headers in Common Email Programs</a></li>
<li><a href='http://www.iishacks.com/2007/09/22/performance-tips-disable-logging-on-windows-server-iis/' rel='bookmark' title='Performance Tips: Disable Logging on Windows Server / IIS'>Performance Tips: Disable Logging on Windows Server / IIS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Quite a few people have asked how to remove the default HTTP Response Headers of IIS6 and IIS7. It&#8217;s very easy, actually. You can have some fun with it too (bottom).</p>
<p><strong>Remove, Edit or Add HTTP Response Headers in Windows 2003 IIS6</strong></p>
<ol>
<li>Open the IIS Management Console.</li>
<li>Right-click on &#8220;Websites&#8221; and select &#8220;Properties.&#8221;</li>
<li>Click on the &#8220;HTTP Headers&#8221; tab.</li>
<li>Highlight the &#8220;X-Powered-By: ASP.NET&#8221; entry and select &#8220;Remove.&#8221;</li>
<li>Also note that you can do this for all websites as above, or for an individual website by selecting it&#8217;s properties. Useful if you have sites powered by ASP and PHP on the same server.</li>
</ol>
<p><img class="alignnone size-full wp-image-423" title="http-response-headers-server-2003" src="http://www.iishacks.com/wp-content/uploads/2009/11/http-response-headers-server-2003.jpg" alt="http-response-headers-server-2003" width="471" height="458" /></p>
<p> </p>
<p><strong>Remove, Edit or Add HTTP Response Headers in Windows 2008 IIS7</strong></p>
<ol>
<li>Open the IIS Management Console.</li>
<li>Click on the Server Name in the left-hand pane.</li>
<li>Under the &#8220;IIS&#8221; heading in the right-hand pane, double-click on &#8220;HTTP Response Headers.&#8221;</li>
<li>Right-click on &#8220;X-Powered-By&#8221; and select Edit or Remove.</li>
<li>Also note that you can do this for all websites as above, or for an individual website by selecting it&#8217;s properties. Useful if you have sites powered by ASP and PHP on the same server.</li>
</ol>
<p><img class="alignnone size-full wp-image-424" title="http-response-headers-server-2008" src="http://www.iishacks.com/wp-content/uploads/2009/11/http-response-headers-server-2008.jpg" alt="http-response-headers-server-2008" width="419" height="292" /></p>
<p><img class="alignnone size-full wp-image-420" title="http-response-headers-2" src="http://www.iishacks.com/wp-content/uploads/2009/11/http-response-headers-2.jpg" alt="http-response-headers-2" width="419" height="253" /></p>
<p> </p>
<p><strong>Power your IIS6 or IIS7 Website with Pure Evil</strong></p>
<p>You can also have some fun with the &#8220;X-Powered By&#8221; response header as its purpose is informational. You can also add your own custom header.</p>
<p><img class="alignnone size-full wp-image-421" title="http-response-headers-3-pure-evil" src="http://www.iishacks.com/wp-content/uploads/2009/11/http-response-headers-3-pure-evil.jpg" alt="http-response-headers-3-pure-evil" width="419" height="253" /></p>
<p><img class="alignnone size-full wp-image-422" title="http-response-headers-4-pure-evil" src="http://www.iishacks.com/wp-content/uploads/2009/11/http-response-headers-4-pure-evil.jpg" alt="http-response-headers-4-pure-evil" width="371" height="129" /></p>


<p>Related posts:<ol><li><a href='http://www.iishacks.com/2008/10/25/host-headers-vs-spam-and-how-to-setup-on-iis6-and-iis7/' rel='bookmark' title='Host Headers vs. Spam and How-to Setup on IIS6 and IIS7'>Host Headers vs. Spam and How-to Setup on IIS6 and IIS7</a></li>
<li><a href='http://www.iishacks.com/2007/11/18/how-to-view-email-headers-in-common-email-programs/' rel='bookmark' title='How to View Email Headers in Common Email Programs'>How to View Email Headers in Common Email Programs</a></li>
<li><a href='http://www.iishacks.com/2007/09/22/performance-tips-disable-logging-on-windows-server-iis/' rel='bookmark' title='Performance Tips: Disable Logging on Windows Server / IIS'>Performance Tips: Disable Logging on Windows Server / IIS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2009/11/11/remove-x-powered-by-aspnet-http-response-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why are so many Windows Servers compromised?</title>
		<link>http://www.iishacks.com/2009/11/07/why-are-so-many-windows-servers-compromised/</link>
		<comments>http://www.iishacks.com/2009/11/07/why-are-so-many-windows-servers-compromised/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:31:47 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Internet Information Server]]></category>
		<category><![CDATA[Security, Viruses, Trojans]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=387</guid>
		<description><![CDATA[This past week I&#8217;ve been busy battling 29 different IP addresses that have been attacking a server that I maintain. In my effort to rid the world of this behaviour, I recorded the IP addresses, found out as much information as possible, and then blocked them. Locations of the IP addresses: 12 &#8211; China 9 - United [...]


Related posts:<ol><li><a href='http://www.iishacks.com/2007/06/07/spf-records-for-windows-email-servers/' rel='bookmark' title='SPF Records for Windows Email Servers'>SPF Records for Windows Email Servers</a></li>
<li><a href='http://www.iishacks.com/2009/11/10/block-ip-addresses-using-ip-security-policy-in-windows-server-2003/' rel='bookmark' title='Block IP Addresses using IP Security Policy in Windows Server 2003'>Block IP Addresses using IP Security Policy in Windows Server 2003</a></li>
<li><a href='http://www.iishacks.com/2008/11/30/free-way-to-block-facebook-or-other-websites/' rel='bookmark' title='Free way to block Facebook or other Websites?'>Free way to block Facebook or other Websites?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This past week I&#8217;ve been busy battling 29 different IP addresses that have been attacking a server that I maintain.</p>
<p>In my effort to rid the world of this behaviour, I recorded the IP addresses, found out as much information as possible, and then blocked them.</p>
<p>Locations of the IP addresses:</p>
<ul>
<li>12 &#8211; China</li>
<li>9 - United States</li>
<li>5 &#8211; Canada</li>
<li>1 &#8211; Netherlands</li>
<li>1 &#8211; Vietnam</li>
<li>1 &#8211; Japan</li>
</ul>
<p>Compromised Operating System:</p>
<ul>
<li>29 &#8211; Windows 2003</li>
</ul>
<p>Compromised Web Server:</p>
<ul>
<li>29 &#8211; IIS 6</li>
</ul>
<p>Percentage without a Firewall:</p>
<ul>
<li>100%</li>
</ul>
<p>Twelve of the IP addresses were associated with specific companies running their own dedicated server for email, ftp or a website. I decided to call or email each company to let them know their server was compromised. Most were grateful that someone took the time to notify them. By the end of the week, 8 of these servers were considerably more secure! One of the companies I called was a Canadian computer store. The person I talked to had mentioned their server was slow and bandwidth usage was high for about a week.</p>
<p>These servers were compromised through poor security practices. Many did not have a firewall due to co-location requirements, and others did not have a firewall due to email and ftp not working properly when it was enabled. Clearly they did not know how to properly configure a firewall to let DNS, SMTP, POP3 and Passive FTP in/out.</p>
<p>I find one of the biggest problems with Windows is that it is too easy to set up and administer at a basic level. Because of its ease of use, the technical knowledge of the person setting it up doesn&#8217;t need to exceed that of a typical desktop user. They fail to take into consideration items such as security, assuming the operating system takes care of it.</p>


<p>Related posts:<ol><li><a href='http://www.iishacks.com/2007/06/07/spf-records-for-windows-email-servers/' rel='bookmark' title='SPF Records for Windows Email Servers'>SPF Records for Windows Email Servers</a></li>
<li><a href='http://www.iishacks.com/2009/11/10/block-ip-addresses-using-ip-security-policy-in-windows-server-2003/' rel='bookmark' title='Block IP Addresses using IP Security Policy in Windows Server 2003'>Block IP Addresses using IP Security Policy in Windows Server 2003</a></li>
<li><a href='http://www.iishacks.com/2008/11/30/free-way-to-block-facebook-or-other-websites/' rel='bookmark' title='Free way to block Facebook or other Websites?'>Free way to block Facebook or other Websites?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2009/11/07/why-are-so-many-windows-servers-compromised/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

