<?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>ASP.NET MSSQL Webhosting Blog &#187; Hosting Security</title>
	<atom:link href="http://www.mywebhostingblog.net/category/hosting-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Thu, 16 Sep 2010 19:53:40 +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>MSSQL WebAdmin ASP.NET ENT Manager in Plesk show Virus</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/#comments</comments>
		<pubDate>Sat, 23 May 2009 18:20:55 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virus]]></category>
		<category><![CDATA[Webadmin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=521</guid>
		<description><![CDATA[We have recently had this complain from our various Shared hosting as well as Dedicated Server hosting clients that MSSQL Webadmin ASP .NET Enterprise Manager is having a virus / trojan on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be MSSQL [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently had this complain from our various <strong>Shared hosting</strong> as well as <strong>Dedicated Server hosting</strong> clients that <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> is having a <strong>virus / trojan</strong> on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> has got an injection in it. But after receiving too many complains from most of our <strong>dedicated server</strong> clients we started investigating the problem and now we knew that this is something that has happen globally. After viewing <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> on <strong>Plesk server</strong> it looked as the picture below:</p>
<p><span id="more-521"></span></p>
<p><img class="aligncenter size-medium wp-image-522" title="mssql-webadmin-showing-trojen-virus" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/05/mssql-webadmin-showing-trojen-virus-300x219.jpg" alt="mssql-webadmin-showing-trojen-virus" width="300" height="219" /></p>
<p>We understood that the problem was not with the <em><strong>mssql.domain_name</strong></em> link but the virus alert only happened after click on <strong><em>ASP .NET Enterprise Manager, Recomended this site</em></strong>. And the link was:</p>
<p><code>www.referralplanet.com/referral/windows/referralWindow.asp?id=17</code></p>
<p>Since the site was not hosted with us we had a sigh of relief that the problem is not with the server however we thought we still have a security problem if the link has been injected into <strong>ASP .NET Manager</strong> site in IIS, may be due to a security issue with <strong>Plesk control panel</strong>. And after checking several servers we came to know that the problem has happened to the site that is recommended on <strong>MSSQL Webadmin site </strong>and not the server.</p>
<p>If you want to remove this link from your server as well as from the <strong>MSSQL WebAdmin</strong> site then follow the steps below:</p>
<p>1. Login into the server through RDP with Administrator user.<br />
2. Go to <em><strong>D:\inetpub\vhosts\sqladmin\mssql\app</strong></em><br />
3. Open the <em><strong>navbar.aspx</strong></em> page in notepad<br />
4. Go to <em><strong>line number 119</strong></em> and remove the code below:</p>
<p><code>&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;<br />
&lt;a onclick="refWindow=window.open('http:// www.referralplanet.com/referral/windows/referralwindow.asp?id=18','referralWindow' ,'width=350,height=520,scrollbars=yes,menubar=no,resizable=yes'); refWindow.focus(); return false;" target=_blank href="http:// www.referralplanet.com/referral/windows/referralWindow.asp?id=17"&gt;<br />
&lt;IMG alt="Click Here To Tell A Friend" src="images/tellafriend.gif" border=0&gt;&lt;/A&gt;<br />
&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;</code></p>
<p>5. Save the file and exit.</p>
<p>This problem must have infected millions of computer in the world. Let see when chinese hacker stop putting their shit on other&#8217;s website and get mature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring IIS Web Server with Logparser and the RRDtool</title>
		<link>http://www.mywebhostingblog.net/hosting-security/monitoring-iis-web-server-with-logparser-and-the-rrdtool/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/monitoring-iis-web-server-with-logparser-and-the-rrdtool/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 15:03:04 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[IIS Web Server]]></category>
		<category><![CDATA[logparser]]></category>
		<category><![CDATA[MRTG]]></category>
		<category><![CDATA[MRTGbundle]]></category>
		<category><![CDATA[RRDTool]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=67</guid>
		<description><![CDATA[Introduction We read allot of articles on how one can use MRTG as an Intrusion detection tool or to creating traffic graph for a particular network subnet or a single IP address on Linux platform with Apache web server. But we find very few that allow us to have graphs on Windows Dedicated server with [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>We read allot of articles on how one can use <strong>MRTG</strong> as an Intrusion detection <strong>tool </strong>or to creating<strong> traffic graph </strong>for a particular network subnet or a single IP address on<strong> Linux platform</strong> with <strong>Apache web server</strong>. But we find very few that allow us to have graphs on<strong> Windows</strong> <strong>Dedicated server </strong>with <strong>IIS Web Server</strong>.</p>
<p>Here are some steps that can be used to create graphs on <strong>Windows Dedicated server</strong> with <strong>IIS </strong>as the <strong>web servers</strong>. And there is no need to take all the efforts to configure <strong>MRTG </strong>as we can simply have graphs with the use of <strong>logparser </strong>and the <strong>RRDtool </strong>from Tobias Oetiker and you can use the <strong>RRDtool </strong>perfectly without the rest of <strong>MRTG</strong>.</p>
<p><span id="more-67"></span></p>
<p><strong>Logparser</strong></p>
<p><strong>Logparser </strong>is a great free tool from <strong>Microsoft</strong>. It is written by Gabriele Giuseppini a Software Design Engineer from the test department. The first version of <strong>logparser </strong>was an internal testing tool inside <strong>Microsoft</strong>. Version 2 was made publicly available at the website, version 2.1 was a part of the <strong>IIS resource tools kit </strong>and version 2.2 was made available in January 2005.</p>
<p><strong>Here is a brief introduction how logparser works:</strong></p>
<p>Logparser need three things, an input format, an output format and a sort of <strong>SQL query</strong>. The <strong>SQL query</strong> is a dialect of <strong>SQL</strong>.</p>
<p>There are few very interesting articles on Microsoft’s website, one written by the Author himself:<br />
<a title="Details on how to use LogParser" href="http://www.microsoft.com/technet/community/columns/profwin/pw0505.mspx"><strong>How to use Logparser</strong></a><br />
<a title="Another link on &quot;How to use Logparser&quot;" href="http://www.microsoft.com/technet/community/columns/scripts/sg0105.mspx"><strong>Another one from Scripting Guys:</strong></a></p>
<p>The article from the scripting guys shows you how to use the logparser directly in a script with a com object.</p>
<p>You can download Logparser from the link below:<br />
<a title="Download LogParser" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&amp;displaylang=en"><strong>DOWNLOAD LOAGPARSER</strong></a></p>
<p>The above download has portable help file in the application directory. This help file give you the parameters of all the properties of the <strong>logparser</strong>.<br />
There is also an unofficial website specially for logparser:<br />
www.logparser.com</p>
<p><strong>About RRDtool.</strong></p>
<p><strong>What is the RRDtool:</strong></p>
<p>The <strong>RRDtool </strong>or <strong>Round Robin Database tool</strong> is a tool that can store date in a <strong>database </strong>and create graphs with it. The really great thing about <strong>RDDTool </strong>is that the database does not growing. It will stay almost the same size as when it was created.</p>
<p>On the RRD website<br />
<a title="RRDTool Official Website" href="http://www.people.ee.ethz.ch/~oetiker/webtools/rrdtool/index.en.html"><strong>RRDTool Website</strong></a><br />
there are some really good <strong>tutorials</strong>, and it is recommended to read them before you use the <strong>RRDtool</strong>.<br />
From this website you can also download the <strong>RRDtool</strong>, the only problem is that you need to compile it but if you download it with the <strong>MRTGbundle </strong>from the link below, it has a completed version of the <strong>RRDtool </strong>in the packet. If you unpack the MRTGbundle, you can copy the RRDtool directory to your scripting directory or your application directory and start using it.<br />
<a title="Compiled version of RRDTool" href="http://www.openinnovations.com/mrtgbundle.html"><strong>DOWNLOAD RDDTool Compiled Version</strong></a></p>
<p><strong>Create Database.</strong></p>
<p>Before you can use the <strong>RRDtool </strong>you need to create the database.<br />
The link below has all the information on how and why to create a database along with the parameters.<br />
<a title="How and why to create a database" href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tut/rrdtutorial.en.html"><strong>How to create a database</strong></a><br />
<strong><a title="This link defines its parameters." href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdcreate.en.html">Parameters</a></strong></p>
<p>You can also use a script to do that.</p>
<p><code><br />
‘#start script.<br />
Set WshShell = WScript.CreateObject("WScript.Shell")<br />
strCMD = ".binrrdtool.exe create Eservicing.rrd"<br />
strCMD = strCMD &amp; " --start N "<br />
strCMD = strCMD &amp; " -s 300"<br />
strCMD = strCMD &amp; " DS:Hits:GAUGE:600:0:2000000"<br />
strCMD = strCMD &amp; " DS:Error400:GAUGE:600:0:2000000"<br />
strCMD = strCMD &amp; " DS:Error500:GAUGE:600:0:2000000"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:1:288"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:2:2016"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:4:2232"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:12:8760"</code></p>
<p>WshShell.Run strCMD<br />
‘#end script.</p>
<p>Here is an explanation of every command in the script:</p>
<p><code>Set WshShell = WScript.CreateObject("WScript.Shell")</code><br />
This line create a shell object you need to run the RRDtool .<br />
In the next 10 lines I create the command line that I run in the last line.</p>
<p><code>strCMD = ".binrrdtool.exe create Eservicing.rrd"</code><br />
this starts the RRDtool with the create function and give the name of the database.</p>
<p><code>strCMD = strCMD &amp; " --start N "</code><br />
&#8211;start set the start time of the database and N is the current time. The RRDtool works with Unixtime, this are the seconds from 1 January 1970.</p>
<p><code>strCMD = strCMD &amp; " -s 300"</code><br />
-s is the seconds between a database update.</p>
<p><code>strCMD = strCMD &amp; " DS:Hits:GAUGE:600:0:2000000"<br />
strCMD = strCMD &amp; " DS:Error400:GAUGE:600:0:2000000"<br />
strCMD = strCMD &amp; " DS:Error500:GAUGE:600:0:2000000"</code><br />
with this three lines I create three data sources. DS stands for data source, Hits is the name of the data source GAUGE is one of the four type’s of data sources, 600 are the seconds between the records if there is no input after 600 the value is NULL, 0 is the minimum value of the record and 200000 is the maximum value.</p>
<p><code>strCMD = strCMD &amp; " RRA:AVERAGE:0.5:1:288"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:2:2016"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:4:2232"<br />
strCMD = strCMD &amp; " RRA:AVERAGE:0.5:12:8760"</code><br />
this four lines create four Round Robin Archives. RRA stands for Round Robin Archive, AVERAGE is one of the four consolidation functions, 0.5 is the consolidation interval, 1 is the number of data sources that are consolidate in one record in the Round Robin Archive. If every 600 seconds a DS is created and the value is 4 instead of 1 every 2400 seconds there will be a record add to the archive, the last value is the number of records the archive contains.<br />
The first line create a Round Robin Archive with a consolidation interval of 0.5. every data source gets a record in the archive and the archive is 288 records long.</p>
<p><code>WshShell.Run strCMD</code><br />
And with this line the command is executed.</p>
<p><strong>Update database.</strong></p>
<p>With the next script we use logparser to evaluate the logfile from a IIS server. We can run this script every 5 minutes. To write the results in RRD database.</p>
<p><code>‘#start script<br />
Const ForReading = 1, ForWriting = 2, ForAppending = 8<br />
'-------------------------------------------------------------------------<br />
LogDir = "serverd$logsyswwwsiteW3SVC1"<br />
Set WSHShell = CreateObject("Wscript.Shell")<br />
Set fso = CreateObject("Scripting.FileSystemObject")<br />
Set objLogParser = CreateObject("MSUtil.LogQuery")<br />
Set objDictIISlogslist = CreateObject("Scripting.Dictionary")</code></p>
<p>Dim strDate<br />
Dim count<br />
Error400 = 0<br />
Error500 = 0<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Main<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub Main<br />
Call MakeStrDate<br />
Call GetUniqueHits<br />
Call GetStatus<br />
Call UpdateRRD<br />
End Sub<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub MakeStrDate<br />
strMonth = Month(Now)<br />
If Len(strMonth) = 1 Then<br />
strMonth = &#8220;0&#8243; &amp; CStr(strMonth)<br />
End If<br />
strDay = Day(Now)<br />
If Len(strDay) = 1 Then<br />
strDay = &#8220;0&#8243; &amp; CStr(strDay)<br />
End If<br />
strYear =Right(Year(Now),2)<br />
strDate = strYear &amp; strMonth &amp; strDay<br />
End Sub<br />
&#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub GetUniqueHits<br />
Set objInputFormat = CreateObject(&#8220;MSUtil.LogQuery.IISW3CInputFormat&#8221;)<br />
objInputFormat.recurse = -1<br />
objInputFormat.iCheckPoint = strDate &amp; &#8220;.lpc&#8221;<br />
strQuery = &#8220;SELECT count(*) as UniqueHits FROM &#8216;&#8221; &amp; _<br />
LogDir &amp; &#8220;ex&#8221; &amp; strDate &amp; &#8220;.log&#8217;&#8221;<br />
Set objRecordSet = objLogParser.Execute(strQuery, objInputFormat)<br />
Do While Not objRecordSet.AtEnd<br />
Set objRecord = objRecordSet.GetRecord<br />
count = objRecord.GetValue(&#8220;UniqueHits&#8221;)<br />
objRecordSet.MoveNext<br />
Loop<br />
End Sub<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub GetStatus<br />
Set objInputFormat = CreateObject(&#8220;MSUtil.LogQuery.IISW3CInputFormat&#8221;)<br />
objInputFormat.recurse = -1<br />
objInputFormat.iCheckPoint = strDate &amp; &#8220;Error.lpc&#8221;<br />
strQuery = &#8220;SELECT sc-status , COUNT(*) as Hits FROM &#8216;&#8221; &amp; LogDir &amp; &#8220;ex&#8221; &amp; strDate &amp; &#8220;.log&#8217; WHERE sc-status &gt; 399 GROUP BY sc-status ORDER BY Hits DESC&#8221;<br />
Set objRecordSet = objLogParser.Execute(strQuery, objInputFormat)<br />
Do While Not objRecordSet.AtEnd<br />
Set objRecord = objRecordSet.GetRecord<br />
If  objRecord.GetValue(&#8220;sc-status&#8221;) &gt; 399 And objRecord.GetValue(&#8220;sc-status&#8221;) &lt; 500  Then<br />
Error400 = Error400 + objRecord.GetValue(&#8220;Hits&#8221;)<br />
End If<br />
If  objRecord.GetValue(&#8220;sc-status&#8221;) &gt; 499 And objRecord.GetValue(&#8220;sc-status&#8221;) &lt; 600  Then<br />
Error500 = Error500 + objRecord.GetValue(&#8220;Hits&#8221;)<br />
End If<br />
objRecordSet.MoveNext<br />
Loop</p>
<p>End Sub<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub UpdateRRD<br />
strRun = &#8220;.binrrdtool update Eservicing.rrd N:&#8221; &amp; count &amp; &#8220;:&#8221; &amp; Error400 &amp; &#8220;:&#8221; &amp; Error500<br />
X = WshShell.Run(strRun,0,True)<br />
End Sub<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
‘#end script</p>
<p>We will not explain this script line by line as it is a pretty simple script.</p>
<p><strong>Creating a Graphic with the RRDtool.</strong></p>
<p>With the next script I create a graphic with the RRDtool.</p>
<p><code>Set WshShell = WScript.CreateObject("WScript.Shell")</code></p>
<p>strCMD = &#8220;.binrrdtool graph .graphintranetNLweek.gif&#8221;<br />
strCMD = strCMD &amp; &#8221; &#8211;start N-1w &#8211;end N&#8221;<br />
strCMD = strCMD &amp; &#8221; &#8211;vertical-label &#8221; &amp; Chr(34) &amp; &#8220;Hits &#8221; &amp; Chr(34)<br />
strCMD = strCMD &amp; &#8221; &#8211;title INTRANET&#8221;<br />
strCMD = strCMD &amp; &#8221; DEF:Xhits=.databaseintranetNL.rrd:Hits:AVERAGE&#8221;<br />
strCMD = strCMD &amp; &#8221; DEF:Xerror400=.databaseintranetNL.rrd:Error400:AVERAGE&#8221;<br />
strCMD = strCMD &amp; &#8221; DEF:Xerror500=.databaseintranetNL.rrd:Error500:AVERAGE&#8221;<br />
strCMD = strCMD &amp; &#8221; LINE2:Xhits#FF0000:&#8221; &amp; Chr(34) &amp; &#8220;Hits&#8221; &amp; Chr(34)<br />
strCMD = strCMD &amp; &#8221; LINE2:Xerror400#00FF00:&#8221; &amp; Chr(34) &amp; &#8220;400 Errors&#8221; &amp; Chr(34)<br />
strCMD = strCMD &amp; &#8221; LINE2:Xerror500#0000FF:&#8221; &amp; Chr(34) &amp; &#8220;500 Errors&#8221; &amp; Chr(34)</p>
<p>WshShell.Run strCMD</p>
<p>You will make a note of 2 important thing in this script:<br />
1.    The DEF line: this line defines the Data Sources you use.<br />
2.    The LINE2: This defines the line in the graphic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/monitoring-iis-web-server-with-logparser-and-the-rrdtool/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Checklists for Windows Cluster:</title>
		<link>http://www.mywebhostingblog.net/hosting-security/checklists-for-windows-cluster/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/checklists-for-windows-cluster/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 23:38:27 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Exchange Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[cluster node configuration]]></category>
		<category><![CDATA[Cluster Prerequisite]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=333</guid>
		<description><![CDATA[This checklist helps you prepare for installation. It is very important to go through all of them else it make it very difficult to restart if either one of them is missed or not configured: Software Requirements •    Microsoft Windows Server 2003 Enterprise Edition or Windows Server 2003 Datacenter Edition installed on all dedicated servers [...]]]></description>
			<content:encoded><![CDATA[<p>This checklist helps you prepare for installation. It is very important to go through all of them else it make it very difficult to restart if either one of them is missed or not configured:</p>
<p><strong>Software Requirements</strong></p>
<p>•    Microsoft <strong>Windows Server 2003</strong> Enterprise Edition or <strong>Windows Server 2003</strong> Datacenter Edition installed on all <strong>dedicated servers</strong> in the cluster.<br />
•    A name resolution method such as Domain Name System (<strong>DNS</strong>), <strong>DNS </strong>dynamic update protocol, Windows Internet Name Service (WINS), HOSTS, and so on.</p>
<p><span id="more-333"></span>•    An existing domain model.<br />
•    All nodes must be members of the same domain.<br />
•    A domain-level account that is a member of the local administrators group on each node. A dedicated account is recommended.</p>
<p><strong>Hardware Requirements</strong></p>
<p>•    Clustering hardware must be on the cluster service<strong> Hardware Compatibility List</strong> (HCL). To find the latest version of the cluster service HCL, go to the Windows Hardware Compatibility List at<strong> http://www.microsoft.com/hcl/</strong>, and then search for cluster. The entire solution must be certified on the HCL, not just the individual components.</p>
<p>•    Two mass storage device controllers—Small Computer System Interface (<strong>SCSI</strong>) or Fibre Channel. A local system disk for the operating system (<strong>OS</strong>) to be installed on one controller. A separate peripheral component interconnect (PCI) storage controller for the shared disks.<br />
•    Two <strong>PCI </strong>network adapters on each node in the cluster.<br />
•    Storage cables to attach the shared storage device to all computers. Refer to the manufacturers instructions for configuring storage devices..<br />
•    All hardware should be identical, slot for slot, card for card, <strong>BIOS</strong>, firmware revisions, and so on, for all nodes. This makes configuration easier and eliminates compatibility problems.</p>
<p><strong>Network Requirements</strong></p>
<p>•    A unique <strong>NetBIOS </strong>name.<br />
•    Static IP addresses for all network interfaces on each node.<br />
•    Access to a domain controller. If the cluster service is unable to authenticate the user account used to start the service, it could cause the cluster to fail. It is recommended that you have a<strong> domain controller</strong> on the same local area network (<strong>LAN</strong>) as the cluster is on to ensure availability.<br />
•    Each node must have at least two network adapters—one for connection to the client public network and the other for the node-to-node private cluster network. A dedicated private network adapter is required for <strong>HCL </strong>certification.<br />
•    All nodes must have two physically independent LANs or virtual <strong>LANs </strong>for public and private communication.<br />
•    If you are using fault-tolerant network cards or network adapter teaming, verify that you are using the most recent firmware and drivers. Check with your network adapter manufacturer for cluster compatibility.</p>
<p><strong>Shared Disk Requirements:</strong></p>
<p>•    An <strong>HCL-approved</strong> external disk storage unit connected to all computers. This will be used as the clustered shared disk. Some type of a hardware redundant array of independent disks (<strong>RAID</strong>) is recommended.<br />
•    All shared disks, including the quorum disk, must be physically attached to a shared bus.<br />
•    Shared disks must be on a different controller then the one used by the system drive.<br />
•    Creating multiple logical drives at the hardware level in the <strong>RAID </strong>configuration is recommended rather than using a single logical disk that is then divided into multiple partitions at the operating system level. This is different from the configuration commonly used for stand-alone servers. However, it enables you to have multiple disk resources and to do Active/Active configurations and manual load balancing across the nodes in the cluster.<br />
•    A dedicated disk with a minimum size of 50 megabytes (MB) to use as the quorum device. A partition of at least 500 MB is recommended for optimal <strong>NTFS </strong>file system performance.<br />
•    Verify that disks attached to the shared bus can be seen from all nodes. This can be checked at the host adapter setup level. Refer to the manufacturer’s documentation for adapter-specific instructions.<br />
•    SCSI devices must be assigned unique <strong>SCSI </strong>identification numbers and properly terminated according to the manufacturer’s instructions.<br />
•    All shared disks must be configured as basic disks.<br />
•    Software fault tolerance is not natively supported on cluster shared disks.<br />
•    All shared disks must be configured as master boot record (<strong>MBR</strong>) disks on systems running the 64-bit versions of <strong>Windows Server 2003</strong>.<br />
•    All partitions on the clustered disks must be formatted as <strong>NTFS</strong>.<br />
•    Hardware fault-tolerant <strong>RAID </strong>configurations are recommended for all disks.<br />
•    A minimum of two logical shared drives is recommended.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/checklists-for-windows-cluster/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Check list for Remote Desktop not Working</title>
		<link>http://www.mywebhostingblog.net/hosting-security/check-list-for-remote-desktop-not-working/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/check-list-for-remote-desktop-not-working/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:32:24 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Windows firewall]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=371</guid>
		<description><![CDATA[Remote Desktop [RDP] not Working..? This applies to all versions of Windows 2003 and Windows 2008 and also to Vista and XP Professional. This problem normally occurs to our client with Dedicated Server hosting. So I thought I will create a check list to make their hosting service a bit easy. Yes, you will need [...]]]></description>
			<content:encoded><![CDATA[<p>Remote Desktop [<strong>RDP</strong>] not Working..?</p>
<p>This applies to all versions <strong>of Windows 2003</strong> and <strong>Windows 2008</strong> and also to <strong>Vista </strong>and <strong>XP Professional</strong>. This problem normally occurs to our client with <strong>Dedicated Server hosting</strong>. So I thought I will create a check list to make their hosting service a bit easy.<br />
Yes, you will need physical access to the machine to check this, it is obvious that you will not be able to check this problem unless you have remote access to the server. These steps can only be performed if you have physical access to the dedicated server or through a Keyboard-Video-Mouse [<strong>KVM</strong>]. So there we go:</p>
<p>* First thing that you need to check is whether the <strong>Remote Desktop Console</strong> [RDC] is enabled on your server.<br />
Go to Desktop &gt;&gt; My Computer &gt;&gt; Properties &gt;&gt; Remote Tab<br />
Check the box for &#8220;<strong>Enable Remote Desktop on this computer</strong>&#8221; and click OK.</p>
<p><img class="aligncenter size-medium wp-image-372" title="windows-dedicated-hosting-enable-remote-desktop-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/windows-dedicated-hosting-enable-remote-desktop-1-262x300.png" alt="windows-dedicated-hosting-enable-remote-desktop-1" width="262" height="300" /></p>
<p><span id="more-371"></span></p>
<p>* If the above option is enabled then make sure that the user which you are using to connect the server remotely is added in the &#8220;<strong>Remote Desktop users&#8221;</strong> group. Administrators are normally added in the group. This can be confirmed from with the steps below:<br />
Go to Desktop &gt;&gt; My Computer &gt;&gt; Mange<br />
Expand Local Users and Group &gt;&gt; Select Group.<br />
Double click on &#8220;<strong>Remote Desktop Users</strong>&#8221; Group and make sure that the user is added in here.</p>
<p><img class="aligncenter size-medium wp-image-373" title="windows-dedicated-hosting-rdp-group" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/windows-dedicated-hosting-rdp-group-270x300.png" alt="windows-dedicated-hosting-rdp-group" width="270" height="300" /></p>
<p>* If both the above settings are correct then you need to make sure that TCP port 3389, which is the default port for RDC is enabled in the firewall of the machine that is used to RDP the server. Vise a verse make sure that the server firewall also has this port added in the exception. The best way to check this is:</p>
<p>First make sure that the server listens to telnet, try telnet of any other port which you are sure is working on the server like port 80 or 25. The command would be:</p>
<p><code>TELNET ip_address 25</code></p>
<p>If this works then try telnet on port 3389.</p>
<p><code>TELNET ip_address 3389</code></p>
<p>* If the telnet is not working then there are several possibilities, it can be the firewall on your machine or the firewall on the server tha is blocking the port. It can also be the case that <strong>Terminal Server Service</strong> did not start for some reasons. Or in a very rare situation it could be that the RDP port has been changed by some one. We will rectify all the possibilities one by one:</p>
<p>* Check the firewall on your machine or just shut the firewall down and then try the telnet again.</p>
<p>* If you have <strong>Windows Firewall</strong> then make sure that <strong>Remote Desktop</strong> is added in Exception.<br />
Goto Start &gt;&gt; All Programs &gt;&gt; Control Panel &gt;&gt; Windows Firewall<br />
If you have a third party firewall your dedicated server then just disable it and try the telnel option.</p>
<p><img class="aligncenter size-medium wp-image-374" title="windows-dedicated-hosting-firewall" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/windows-dedicated-hosting-firewall-256x300.png" alt="windows-dedicated-hosting-firewall" width="256" height="300" /></p>
<p>* If that is not the firewall issue make sure that <strong>Terminal Server Service</strong> is set to Automatic and is running. This server depends on <strong>Remote Procedure Call</strong> Service and you get errors while starting the server and you will need to trouble shoot the problem. If the server is terminating unexpectedly then make sure that the Hardware profile of the server is set to &#8220;Enable&#8221;:</p>
<p><img class="aligncenter size-medium wp-image-375" title="windows-dedicated-hosting-terminal-service" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/windows-dedicated-hosting-terminal-service-266x300.png" alt="windows-dedicated-hosting-terminal-service" width="266" height="300" /></p>
<p>* Sometimes client with <strong>Windows Dedicated Hosting</strong> package change the RDP port of their server and forget it, the steps below can be used for checking the RDP port as well as changing it as well, these steps will require to make changes in Registry hence it is recommended to backup the registry before following these steps:</p>
<p>Goto Start &gt;&gt; Run<br />
Type: regedit to open the registry editor MMC<br />
Expand to the Key:<br />
<code>[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp]</code><br />
Modify the value for Key &#8220;PortNumber&#8221;<br />
Change Base to Decimal</p>
<p><img class="aligncenter size-medium wp-image-376" title="windows-dedicated-hosting-rdp-port" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/windows-dedicated-hosting-rdp-port-300x177.png" alt="windows-dedicated-hosting-rdp-port" width="300" height="177" /><br />
Change Value data to the port your desire for your Dedicated Server<br />
Click OK<br />
Reboot the Machine.</p>
<p>Once the machine is online you will have to define your the port to connect your Dedicated Server remotrly<br />
<code>ip_address:port_number<br />
10.10.10.52:3362</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/check-list-for-remote-desktop-not-working/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Disable USB, CDROM, Floppy on Windows Machine</title>
		<link>http://www.mywebhostingblog.net/hosting-security/how-to-disable-usb-cdrom-floppy-on-windows-machine/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/how-to-disable-usb-cdrom-floppy-on-windows-machine/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 00:24:45 +0000</pubDate>
		<dc:creator>Rock</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Anti viruses]]></category>
		<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=484</guid>
		<description><![CDATA[Disable specific devices such as USB, CDROM, Floppy, on your local Windows machine or the Windows server.. Recently I&#8217;ve seen people having issues with certain devices attached via USB to their thinking machines&#8230; Issues that included, Spyware, Malware, Viruses.. ugh, many more.. Wouldn&#8217;t it be good to disable these unwanted creepy devices when on a [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--><img class="alignleft size-medium wp-image-485" title="disable-usg-folppy-windows" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/04/disable-usg-folppy-windows-182x300.jpg" alt="disable-usg-folppy-windows" width="182" height="300" />Disable specific devices such as <strong>USB, CDROM, Floppy</strong>, on your local <strong>Windows </strong>machine or the <strong>Windows </strong>server..</p>
<p>Recently I&#8217;ve seen people having issues with certain devices attached via <strong>USB</strong> to their thinking machines&#8230; Issues that included, <strong>Spyware, Malware, Viruses..</strong> ugh, many more.. Wouldn&#8217;t it be good to disable these unwanted creepy devices when on a shared/public windows  machines? Ok, follow these steps &amp; get yourself a bit secured.</p>
<p>This can be implemented on your local <strong>Windows </strong>Machine or on the <strong>Windows Dedicated servers</strong>, please make sure to backup the Windows registry before following these steps. As making incorrect changes in Windows <strong>registry </strong>can make the system unbootable.</p>
<p><span id="more-484"></span>Search for the following keys in your <strong>registry</strong> to disable each of them respectively or as per your requirement.</p>
<p><code><span style="font-size: 10pt;">SYSTEMCurrentControlSetServices</span></code></p>
<p>Notice the value &#8216;<strong>Start</strong>&#8216;, this should be <strong>3</strong> by default [<strong>3 = enabled</strong>]. Switch this value to <strong>4 </strong>[<strong>4 = disabled</strong>], and USB storage devices are disabled. To re-enable the device switch this value to <strong>3</strong>.</p>
<p>To disable <strong>USB ports</strong>:<br />
<code><span style="font-size: 10pt;">HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUsbStor</span></code></p>
<p>To disable <strong>CD-ROM drive</strong>:<br />
<code><span style="font-size: 10pt;">HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicescdrom</span></code></p>
<p>To disable <strong>Floppy drive</strong>:<br />
<code><span style="font-size: 10pt;">HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesflpydisk</span></code></p>
<p>To disable a <strong>High Capacity Floppy Drive</strong>:<br />
<code><span style="font-size: 10pt;">HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicessfloppy</span></code></p>
<p>Once done, you&#8217;d need to <strong>reboot your machine</strong> for the changes to come into effect. That is it</p>
<p><img class="aligncenter size-medium wp-image-486" title="usb-floppy-virus-windows" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/04/usb-floppy-virus-windows-300x247.jpg" alt="usb-floppy-virus-windows" width="300" height="247" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/how-to-disable-usb-cdrom-floppy-on-windows-machine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plesk SitePreview Not Working On Windows</title>
		<link>http://www.mywebhostingblog.net/hosting-security/plesk-sitepreview-not-working-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/plesk-sitepreview-not-working-on-windows/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 08:03:04 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Parallels]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Sitepreview]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=409</guid>
		<description><![CDATA[Most of our users have this problem with there Windows Plesk Dedicated hosting as well as Windows Shared hosting packages with recent Parallels Plesk versions. I have had so many instance of support about the sitepreview not working on our Windows Shared Servers with Plesk for different reasons and I had to scratch my head [...]]]></description>
			<content:encoded><![CDATA[<p>Most of our users have this problem with there <strong>Windows Plesk Dedicated hosting</strong> as well as <strong>Windows Shared hosting packages</strong> with recent <strong>Parallels Plesk</strong> versions. I have had so many instance of support about the <strong>sitepreview </strong>not working on our <strong>Windows Shared Servers</strong> with Plesk for different reasons and I had to scratch my head to get things sorted for our valuable Windows dedicated hosting customers. And it is an important feature for our Shared hosting customers without the dedicated IP address to check their site before moving their name server to us. So I decided to write this blog with the steps to troubleshoot the problem with Plesk sitepreview in few simple steps. I will try and put every thing that I have figured while investigation.</p>
<p>There are 3 types of problems with site preview in Plesk:</p>
<p><span id="more-409"></span></p>
<p>1. <strong>Site Preview</strong> in Windows Plesk will show 404 Page Not Found error<br />
2. <strong>Site Preview</strong> in Windows Plesk will show Plesk Default page.<br />
3. <strong>SitePreview</strong> will ask for user name and password.</p>
<p>We will troubleshoot each problem with site preview one by one.</p>
<p><strong>1. Site Preview in Plesk will show 404 Page Not Found error.</strong></p>
<p>Cause: This happens if the sitepreview ISAPI DLL is not loaded correctly in IIS web server.</p>
<p><strong>Troubleshoot steps:</strong><br />
a. First check if a the Virtual folder with the name sitepreview is create in <strong>IIS Default Web Site</strong>. If it is not created then create it without the application pool and map it to folder <strong>&#8220;%plesk_dir%isapi&#8221;</strong>, same as in image below.  Also Make sure that Executable Permissions are set to <strong>&#8220;Scripts And Executables&#8221;</strong></p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-412" title="windows-plesk-hosting-site-preview-iis1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/windows-plesk-hosting-site-preview-iis1.png" alt="windows-plesk-hosting-site-preview-iis1" width="470" height="460" /></p>
<p>b. Make sure that the <strong>Site preview ISAPI DDL</strong> is Allowed in Web Exteniosn and look like in image below, if not then Add it in Plesk Extensions.  <strong></strong><strong></strong></p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-413" title="windows-plesk-hosting-site-preview-iis-web-extension" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/windows-plesk-hosting-site-preview-iis-web-extension.png" alt="windows-plesk-hosting-site-preview-iis-web-extension" width="401" height="435" /></p>
<p>c. Also make sure that the Site Preview ISAPI DLL has been loaded with green Arrow in IIS &gt;&gt; Web Site &gt;&gt; Right click &gt;&gt; Properties &gt;&gt; ISAPI Tab. like in the figure below. If it is not loaded then just click on the Add button and browser through <strong>&#8220;%plesk_dir%isapisitepreview.dll&#8221;</strong> and restart IIS.</p>
<p><img class="aligncenter size-full wp-image-411" title="windows-plesk-hosting-site-preview-iis-web-site" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/windows-plesk-hosting-site-preview-iis-web-site.png" alt="windows-plesk-hosting-site-preview-iis-web-site" width="471" height="460" /></p>
<p>d. If you have IIS7 on <strong>Windows 2008 Server</strong> then make suer that you have Plesk Site Preview DLL added in IIS &gt;&gt; Click on Server &gt;&gt; IIS Group &gt;&gt; ISAPI Filters.</p>
<p><strong>2. Site Preview in Plesk will show Plesk Default page.</strong></p>
<p>Cause: Related to IP configuration on the server.</p>
<p><strong>Troubleshoot steps:</strong></p>
<p>a. Please fo through all the steps in problem one for this. However the only reason for this problem that I have found is main IP address of the server. Just make sure that you have alleast one site added on the main IP address of the server. To know the main IP address of the server Go to START &gt;&gt; <strong>Control Panel</strong> &gt;&gt; Network Connections &gt;&gt; Right click on main network adapter &gt;&gt; Click on Properties &gt;&gt; Select TCP IP &gt;&gt; Properties. The IP address list in this windows as IP address is the main IP address of the server. Just make sure that you have atleast one site hosted on this IP address.</p>
<p>The above solution will also apply is Plesk Site Preview option is working with https prefix butnot with http in URL browser.</p>
<p><strong>3. SitePreview will ask for user name and password for all website.</strong></p>
<p>Cause: Related to Permissions and Security Options.</p>
<p><strong>Troubleshoot steps:</strong></p>
<p>a. First check if the URL work fine with the IP address only:</p>
<p><code>http://192.168.1.52/</code></p>
<p>if not then there are permissions issue with the default site and if you are using a dedicated IP address instead of <strong>shared</strong> IP then the problem is with the permissions of the site that holds the dedicated IP.</p>
<p>b. If step &#8220;a&#8221; is working then try access the link below:<br />
<code>http://192.168.1.52/$sitepreview/</code></p>
<p>The above link should get redirected to the IP address and show Plesk default page or index.html page in <strong>Default Web site</strong> but it is is asking for password then permissions on sitepreview virtual directory is not correct. Make sure that <strong>IIS_WPG, NETWORK SERVICE, psaadm, psacln &amp; psaserv</strong> has read an execute permissions on the virtual folder, do not forget to inherit the permissions to files in it.</p>
<p>c. If it asks password for only one site then the problem should be either with the website permissions or the file you are accessing it.</p>
<p>I think this should cover all the problems with Parallels Plesk Site Preview problems. But if you still face problem and don&#8217;t want to use Site Preview then you have try the HACK below.</p>
<p><a title="Point Domain Wihtout Changing the DNS Name Server." href="http://www.mywebhostingblog.net/aspnet-web-hosting/point-domain-to-another-ip-without-changing-dns-name-servers/" target="_self"><strong>WINDOWS HACK TO POINT YOUR SITE TO AN IP WITHOUT CHANGING THE NAME SERVERS.</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/plesk-sitepreview-not-working-on-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Write Permissions on Plesk Windows Server Get Removed</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:18:24 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=436</guid>
		<description><![CDATA[This has been a regular problem with most of our Windows dedicated Server Clients as well as Windows Shared hosting client that has Plesk 8.4 installed on them, specially for those who need write permissions on web user for the ASP .NET/MSSQL and PHP/MySQL application, that the write permissions on the folder get removed own [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a regular problem with most of our<strong> Windows dedicated Server Clients</strong> as well as <strong>Windows Shared hosting client </strong>that has Plesk 8.4 installed on them, specially for those who need <strong>write permissions </strong>on web user for the <strong>ASP .NET/MSSQL</strong> and <strong>PHP/MySQL</strong> application, that the write <strong>permissions </strong>on the folder get <strong>removed</strong> own its own without any changes being made by us or the client. After allot of scratching and investigation we were finally able to reveal the secrete about the permissions issue. The problem was not with Plesk but the way we use to set <strong>permissions </strong>on the folder.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-437" title="Plesk Permissions Problem on Windows" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/plesk-86-premissions-problems.jpg" alt="plesk-86-premissions-problems" width="465" height="160" /></p>
<p>While I was searching for the solution I found the KB articel on Parallels sites below:</p>
<p><code>http://kb.parallels.com/en/1147</code></p>
<p><span id="more-436"></span></p>
<p>Where they (<strong>Plesk adminstrators</strong>) have clearly mentioned that custom permissions set on top level folder like httpdocs, statistics, cgi-bin etc will get reset by Plesk. So I decided to make a test, I manually gave write permissions to httpdocs folder and ran <em><strong>webservmng.exe</strong></em> on it and yes it was removed. Then after allot digging I would that there us a file<em> .Security</em> which is saved under the folder with the domain name (parallel to httpdocs folder), that stores all permissions for that domain.</p>
<p>Before we start please be informed that these steps are applicable to <strong>Parallel Plesk version 8.4</strong> and above as <em>.Security</em> file was introduced in 8.4 only.</p>
<p>So here are steps to get around the problem permanently:</p>
<p>1. Backup the <em>.Security</em> file and delete it from<em> [drive]:inetpub/vhosts/domain_name,</em> this file saves all the permissions assigned to that user from Plesk on Windows. Deleting it will remove all the records.</p>
<p>2. After renaming or deleting the <em>. Security</em> file, run this command below:</p>
<p><code>"%plesk_bin%/websrvmng.exe" --reconfigure-vhost --vhost-name=domain_name</code></p>
<p>3. This command will create a new <em>.Security</em> file with all default permissions on that domain.</p>
<p>4. Now login into Plesk &gt;&gt; Click on Domains &gt;&gt; domain_name &gt;&gt; File Manager &gt;&gt; httpdocs &gt;&gt; golden padlock of folder_name to set perm on &gt;&gt; &#8220;Advance&#8221; Button &gt;&gt; Select users &gt;&gt; Assign permissions &gt;&gt; OK.</p>
<p>These steps will save new permissions in .Security file and even if you run <em><strong>websrvmng</strong></em> on that domain again, the new permissions that has been set from Plesk will not get removed. There is no need to add any special group or users like, <strong>ASPNET </strong>or <strong>NETWORK SERVICE</strong> to any folder as those permissions are handled by <strong>IUSR_ &amp; IWAM_/IWPD_ users</strong>.</p>
<p>Any permissions that has been assigned directly to httpdocs folder will get reset by <strong>Plesk </strong>and if you inherit them to sub folder, permissions from sub folder will also get removed.</p>
<p>So the moral is,<strong> DO NOT</strong> give any permissions from RDP, use File Manager option if you want to keep the trouble of permissions away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Block IP on Windows.</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:49:22 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Block]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=285</guid>
		<description><![CDATA[It is very easy to block a single IP address on a Linux server but Windows Default firewall doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However Microsoft released this and introduced IP Security Polices in their Local Security Polices option in the release of their SP2. [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy to block a single IP address on a <strong>Linux </strong>server but <strong>Windows </strong>Default <strong>firewall </strong>doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However <strong>Microsoft </strong>released this and introduced <strong>IP Security Polices</strong> in their <strong>Local Security Polices</strong> option in the release of their SP2. But most of us are not aware of this option and we mostly adopted third party firewall and pay for their heavy license. However Firewall onl Windows 2008 Server is far more advanced than that on Windows 2003.</p>
<p>It would not be the case now as I have listed detailed steps along with the images on how to block IP using the IP security policy in Windows. This option is also available in <strong>XP </strong>as well as <strong>Windows 2003</strong> Server edition.</p>
<p><strong>How to BLock IP Using Windows:</strong></p>
<p>You can either open MMC from START &gt;&gt; RUN &gt;&gt; MMC and add a new Snapin for IP Security policy with steps below:</p>
<p><span id="more-285"></span></p>
<p>Click &#8216;Start&#8217; &gt; &#8216;Run&#8217; &gt;type &#8216;MMC&#8217; press ok.<br />
In the console click &gt; &#8216;File&#8217; &gt; &#8216;Add/Remove Snap in&#8217;<br />
In the &#8216;Standalone Tab&#8217; click The &#8216;add&#8217; button<br />
Seclect &#8216;IP Security Policy Managment&#8217; &gt; &#8216;ADD&#8217; &gt; &#8216;Local Computer&#8217; &gt; &#8216;finish&#8217;  &gt; &#8216;close&#8217; &gt; &#8216;ok&#8217;<br />
You should now be back to the Management console.</p>
<p>OR</p>
<p>Just goto START &gt;&gt; PROGRAMS &gt;&gt; ADMINISTRATIVE TOOLS &gt;&gt; LOCAL SECURITY POLICIES ON LOCAL COMPUTER to open the IP Security Management Console.</p>
<p>1. Select IP Security Policy and Right Click on the right pane to select new Policy. The screen will like an image below:</p>
<div id="attachment_288" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1.png"><img class="size-medium wp-image-288" title="block-ip-in-windows-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1-300x179.png" alt="Windows IPSecurity Policies" width="300" height="179" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>2. This will open the IP Security Policy Wizard, Just click on Next button.</p>
<div id="attachment_289" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2.png"><img class="size-medium wp-image-289" title="block-ip-in-windows-2" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2-300x238.png" alt="Figure 2" width="300" height="238" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>3. On the Next screen you have to define the name of your IP Security policy and its description and then click Next Button.</p>
<div id="attachment_290" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3.png"><img class="size-medium wp-image-290" title="block-ip-in-windows-3" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3-300x240.png" alt="Figure 3" width="300" height="240" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>4. Plesk uncheck the box for &#8220;<strong>Activate the default Response Rule</strong>&#8221; and then click Next Button..</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4.png"><img class="size-medium wp-image-291" title="block-ip-in-windows-4" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4-300x238.png" alt="Figure 4" width="300" height="238" /></a><p class="wp-caption-text">Figure 4</p></div>
<p>5. On the Next screen remove the check for <strong>Edit Properties</strong> and Click Finish.</p>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5.png"><img class="size-medium wp-image-292" title="block-ip-in-windows-5" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5-300x237.png" alt="Figure 5" width="300" height="237" /></a><p class="wp-caption-text">Figure 5</p></div>
<p>6. Once you click on the Finish Button you will see the screen below along with your rule being added to the list. Now we will create an <strong>IP filter list </strong>to block IPs.</p>
<div id="attachment_293" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6.png"><img class="size-medium wp-image-293" title="block-ip-in-windows-6" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6-300x177.png" alt="Figure 6" width="300" height="177" /></a><p class="wp-caption-text">Figure 6</p></div>
<p>7. Double click on the rule you have just create to open the properties window:</p>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 277px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7.png"><img class="size-medium wp-image-294" title="block-ip-in-windows-7" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7-267x300.png" alt="Figure 7" width="267" height="300" /></a><p class="wp-caption-text">Figure 7</p></div>
<p>8. Since we have chosen to uncheck <strong>&#8220;Activate the default Response Rule&#8221; </strong>in Step 4 the Dynamic rule in not applied. Click on Add button to open <strong>Security Rule Wizard</strong> and Click again on Add button to open <strong>IP Filter List Wizard.</strong></p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8.png"><img class="size-medium wp-image-295" title="block-ip-in-windows-8" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8-300x239.png" alt="" width="300" height="239" /></a><p class="wp-caption-text">Figure 8</p></div>
<p>9. You will have a screen some what in Figure 9. Put in the name of your list and Click on the Add button.</p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9.png"><img class="size-medium wp-image-296" title="block-ip-in-windows-9" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9-300x238.png" alt="Figure 9" width="300" height="238" /></a><p class="wp-caption-text">Figure 9</p></div>
<p>10. This will open another window for you to add IP and ports in the IP Filter list. In the Description box just put in the IP address that you want to block and make sure that you keep the check on the box for <strong>&#8220;Mirrored. Match packets with the exact appropriate source and destination addresses&#8221;</strong> and click on the Next button.</p>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10.png"><img class="size-medium wp-image-297" title="block-ip-in-windows-10" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10-300x233.png" alt="Figure 10" width="300" height="233" /></a><p class="wp-caption-text">Figure 10</p></div>
<p>11. Select <strong>My IP address</strong> in the <strong>Sources Address</strong> from the drop down list.</p>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11.png"><img class="size-medium wp-image-298" title="block-ip-in-windows-11" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11-300x233.png" alt="Figure 11" width="300" height="233" /></a><p class="wp-caption-text">Figure 11</p></div>
<p>12. You have many more options to select from the list for both in Sources and Destination Address. You will need some advanced knowledge to work with those option. We will select My IP address for now and click on Next button.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12.png"><img class="size-medium wp-image-299" title="block-ip-in-windows-12" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12-300x233.png" alt="Figure 12" width="300" height="233" /></a><p class="wp-caption-text">Figure 12</p></div>
<p>13. In the IP Traffic Destination, select <strong>&#8220;A specific IP Address&#8221;</strong> and enter the IP address that you want to block on your machine. Here you can also select a sub net from the drop down and block the entire subnet. Once you finish entering an IP/Subnet, click on Next button.</p>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13.png"><img class="size-medium wp-image-300" title="block-ip-in-windows-13" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13-300x233.png" alt="Figure 13" width="300" height="233" /></a><p class="wp-caption-text">Figure 13</p></div>
<p>14. Here in <strong>IP Protocol Type</strong> you can define the protocol that you want to block, it can be any one from the list for example <strong>TCP, UDP, ICMP etc.</strong> We will select <strong>ANY</strong> which mean all connect from a specific IP address. If you select a protocol from the list andclick Next it will ask you to enter the port address that you want to block, example 80 (See Figure 14.2). But since we want to block all ports we will select Any and click Next (Figure 14.1) and then Finish.</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14.png"><img class="size-medium wp-image-301" title="block-ip-in-windows-14" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14-300x233.png" alt="Figure 14" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.1</p></div>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142.png"><img class="size-medium wp-image-312" title="block-ip-in-windows-142" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142-300x233.png" alt="Figure 14.2" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.2</p></div>
<p>15.  After you click on Finish button you will see that the rule has been added in the IP filter list. If you want to add more IP and subnets then click on the Add button to add another rule or block 2nd IP. Once you finish with it you will have rules as in Figure 15.2.</p>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15.png"><img class="size-medium wp-image-302" title="block-ip-in-windows-15" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15-300x238.png" alt="Figure 15" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.1</p></div>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152.png"><img class="size-medium wp-image-313" title="block-ip-in-windows-152" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152-300x238.png" alt="Figure 15.2" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.2</p></div>
<p>16. Once your <strong>IP Filter List</strong> is complete click on the <strong>OK</strong> button to get back <strong>Security Rule Wizard.</strong> Select the IP filter list which you have created by clicking on the radio button and click Next.</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16.png"><img class="size-medium wp-image-303" title="block-ip-in-windows-16" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16-300x239.png" alt="Figure 16" width="300" height="239" /></a><p class="wp-caption-text">Figure 16</p></div>
<p>17. In the Next screen of Security Rule Wizard you will not see any Filter Action as Block as by default it is not created. We will create a Filter action to block connect by click on Add button.</p>
<div id="attachment_304" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17.png"><img class="size-medium wp-image-304" title="block-ip-in-windows-17" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17-300x239.png" alt="Figure 17" width="300" height="239" /></a><p class="wp-caption-text">Figure 17</p></div>
<p>18. In the Name type <strong>&#8220;Block&#8221;</strong> and any discryption you like and click on Next.</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18.png"><img class="size-medium wp-image-305" title="block-ip-in-windows-18" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18-300x229.png" alt="Figure 18" width="300" height="229" /></a><p class="wp-caption-text">Figure 18</p></div>
<p>19. In Filter Action General options select Block and click Next.</p>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19.png"><img class="size-medium wp-image-306" title="block-ip-in-windows-19" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19-300x229.png" alt="Figure 19" width="300" height="229" /></a><p class="wp-caption-text">Figure 19</p></div>
<p>20. And then on Finish to get back to Security Rule Wizard.</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20.png"><img class="size-medium wp-image-307" title="block-ip-in-windows-20" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20-300x229.png" alt="Figure 20" width="300" height="229" /></a><p class="wp-caption-text">Figure 20</p></div>
<p>21. This will add the Filter option as Block in the list, just click on radio button to select it and click Next.</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21.png"><img class="size-medium wp-image-308" title="block-ip-in-windows-21" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21-300x239.png" alt="Figure 21" width="300" height="239" /></a><p class="wp-caption-text">Figure 21</p></div>
<p>22. Click Finish to complete the security Rule Wizard.</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22.png"><img class="size-medium wp-image-309" title="block-ip-in-windows-22" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22-300x239.png" alt="Figure 22" width="300" height="239" /></a><p class="wp-caption-text">Figure 22</p></div>
<p>23. You will see the rule added in the list, you can add more rule with the same steps. Now just click OK to finish with the rules.</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 280px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23.png"><img class="size-medium wp-image-310" title="block-ip-in-windows-23" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23-270x300.png" alt="" width="270" height="300" /></a><p class="wp-caption-text">Figure 23</p></div>
<p>24. Now since we have already created the rules to block desired IP address just right click on the IP Security Policy and select Assign to apply the rule on the server.</p>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24.png"><img class="size-medium wp-image-311" title="block-ip-in-windows-24" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24-300x179.png" alt="Figure 24" width="300" height="179" /></a><p class="wp-caption-text">Figure 24</p></div>
<p>There are allot many option to secure your entire server with IP security policy. You can create more rules to block every one on RDP port TCP 3389 and allow only select IPs. IP Security is IP and port based application and not Services based and you can create the rule as per your need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Firewall ICS Services Missing</title>
		<link>http://www.mywebhostingblog.net/hosting-security/windows-firewall-ics-services-missing/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/windows-firewall-ics-services-missing/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:33:15 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=331</guid>
		<description><![CDATA[There are times when the Windows remove the firewall service thinking it as a harmful application OR the Windows Firewall service may also disappear if you make make major changes with your Network Adapter. And when every you try to click to manage Firewall it will give you an error that &#8220;No Service was configured&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when the Windows remove the firewall service thinking it as a harmful application OR the Windows Firewall service may also disappear if you make make major changes with your Network Adapter. And when every you try to click to manage Firewall it will give you an error that <strong>&#8220;No Service was configured&#8221;</strong>. There is a very simple way to fix this problem.</p>
<p>&#8211; Backup the Registry of your computer and save it on a safe place.</p>
<p><span id="more-331"></span></p>
<p>&#8211; Now look for another computer who has the same edition of Windows running on it as that on your computer, along with the Server Pack.</p>
<p>&#8211; Backup the below registry key that stores the Service information for Windows Firewall, with the export option:</p>
<p><code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess</code></p>
<p>&#8211; Restore it on the Computer which has the missing service  and Reboot.</p>
<p>Once the computer it online you will see that the Windows Firewall Service/ICS is back in the list and you should be able to manage it again.</p>
<p>P.S: Restoring the key from a computer which does not match your Windows OS edition or Service Pack would make your system unbootable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/windows-firewall-ics-services-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Group Policies Overview for SQL Server</title>
		<link>http://www.mywebhostingblog.net/hosting-security/group-policies-overview-for-sql-server/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/group-policies-overview-for-sql-server/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:08:14 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=368</guid>
		<description><![CDATA[Group Policy is a core part of Microsoft’s IntelliMirror technology.You can use Group Policy to manage all aspects of the Server environment for Windows Server, including Registry settings, software installation, scripts, security settings, and so on.The possibilities of what can be done with Group Policy are almost limitless.With VBScript or Jscript, you can write entire [...]]]></description>
			<content:encoded><![CDATA[<p>Group Policy is a core part of <strong>Microsoft’s IntelliMirror technology</strong>.You can use Group Policy to manage all aspects of the Server environment for <strong>Windows Server</strong>, including Registry settings, software installation, scripts, security settings, and so on.The possibilities of what can be done with Group Policy are almost limitless.With <strong>VBScript</strong> or Jscript, you can write entire applications to execute via Group Policy.You can install software automatically across the network and apply patches to applications. When deciding on the <strong>Group Policies</strong> you plan to enforce on your network, you should keep in mind that the more policies applied, the more network traffic, and hence the longer it could take for users to log onto the network. Group policies are stored in Active Directory as Group Policy Objects (<strong>GPO</strong>).These objects are the instructions for the management task to perform. Group Policy is implemented in four ways:</p>
<p><span id="more-368"></span><strong>Local Group Policy: </strong><br />
Using local Group Policy involves setting up Group Policy on the local machine.This is not very useful for managing computers on a network. Local Group Policy is configured on the local computer.</p>
<p><strong>Site Group Policy:</strong></p>
<p>Site Group Policy is when the Group Policy object is linked to the site. Site Group Policies can generate unwanted network traffic, so use these only when absolutely necessary.</p>
<p><strong>Domain Group Policy:</strong><br />
Domain Group Policy is when the Group Policy object is linked to the domain.This will apply the Group Policy object to all computers and users within a domain.This is especially useful for enforcing company-wide settings.This is one of the two most commonly used applications of Group Policy.</p>
<p><strong>Organizational Unit:</strong><br />
Group Policy When the Group Policy object is linked to the organizational unit (OU). Organizational unit Group Policy is especially useful for applying a Group Policy object to a logical grouping (organizational unit) of users or computers.</p>
<p>When a <strong>Windows Server</strong> machine logs on to a Windows AD, any legacy Windows 2000<strong> Group Policies </strong>will be applied to and work on Windows Server. The new Windows Group Policy snap-in will work on a <strong>Windows 2000 </strong>AD as well as <strong>Windows 2003</strong>.You can use the Windows Group Policy snap-in to connect to any Group Policy object in the Active Directory.You can also create a new Group Policy object using this snap-in. When you connect to a <strong>GPO</strong> using this snap-in, the <strong>ADM </strong>files are automatically updated using the newer versions of these files found on Windows XP.</p>
<p>Windows has over 200 policies.These policies are reflected in the new <strong>ADM </strong>files that are updated on the domain.The Windows admin snap-in shows what policies work on which clients. Best practice in a mixed environment: Use the Latest Windows Group Policy snap-in to administer Group Policy because it will display what policies are supported on what clients.</p>
<p><strong>Group Policy Order</strong></p>
<p>When Group Policies are applied in Windows Server, they are applied in a specific order.This is important to note because the order applied can affect the resulting policy. Group Policy is applied in the following order:</p>
<p>■ Windows NT 4 Policies (if any exist)<br />
■ Windows 2000 Policies<br />
■ Local Group Policies<br />
■ Site Group Policies<br />
■ Domain Group Policies<br />
■ Organizational Group Policy Objects (going from Highest Parent in the chain to lowest)</p>
<p>Additionally, the result of all of the applied policies can be determined by using the Resultant Set of Policy (RSOP) snap-in. More information on this topic is covered later in the “Resultant Set of Policy (RSOP)” section. Figure A.1 shows how Group Policy is applied by different organizational units along with the domain Group Policy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/group-policies-overview-for-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt SQL 2005 database with Certificates</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:40:13 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=345</guid>
		<description><![CDATA[Using Certificates to Encrypt Data Certificates are parallel with asymmetric keys in the SQL Server 2005 encryption hierarchy. A certificate is simply a method of using asymmetric encryption. Certificates bind public keys to individuals who hold the associated private key. Certificates use the same RSA algorithm as asymmetric keys; therefore, they are resource-intensive and their [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using Certificates to Encrypt Data</strong></p>
<p><strong>Certificates </strong>are <strong>parallel </strong>with asymmetric keys in the <strong>SQL Server 2005</strong> encryption hierarchy. A certificate is simply a method of using asymmetric <strong>encryption</strong>. Certificates bind public keys to individuals who hold the associated private key. Certificates use the same RSA algorithm as asymmetric keys; therefore, they are resource-intensive and their use is normally restricted to encrypting other keys. <strong>SQL Server</strong> contains an integrated certificate authority, which it uses to issue its own selfsigned, and industry standard X.509 certificates. Alternatively, you can import certificates from an external certificate authority.The use of external certificates allows you to use a wider range of key lengths, which can provide enhanced security. Certificates are the most secure way in which to encrypt data natively within SQL Server 2005.You can use the <strong>CREATE CERTIFICATE </strong>statement to create a certificate within SQL Server 2005.</p>
<p><span id="more-345"></span>The common syntax of the <strong>CREATE CERTIFICATE</strong> statement is as follows:</p>
<p><code>CREATE CERTIFICATE CERTIFICATE_NAME [AUTHORIZATION USER_NAME]<br />
{FROM FILE = 'PATH_TO_PRIVATE_KEY'<br />
WITH PRIVATEKEY [, ENCRYPTION BY PASSWORD = 'PASSWORD' |<br />
, DECRYPTION BY PASSWORD = 'PASSWORD']}<br />
WITH SUBJECT = CERTIFICATE_SUBJECT_NAME, |<br />
[START_DATE = MM/DD/YYYY<br />
END_DATE = MM/DD/YYYY]</code></p>
<p><strong>Here are definitions of the arguments in this syntax:</strong></p>
<p><strong>FILE = PATH_TO_PRIVATE_KEY </strong>Specifies the directory and the file name to the private key.<br />
<strong>ENCRYPTION BY PASSWORD</strong> = ‘PASSWORD’ Specifies the password that will be used to encrypt the certificate private key.<br />
<strong>DECRYPTION BY PASSWORD </strong>= ‘PASSWORD’ Specifies the password originally used to encrypt the private key.<br />
<strong>CERTIFICATE_SUBJECT_NAME</strong> A descriptive string that will be embedded into the certificate metadata.<br />
<strong>START_DATE </strong>Specifies the date in which the certificate becomes valid.<br />
<strong>END_DATE</strong> Specifies the date in which the certificate expires.</p>
<p>For a full listing of all statement arguments, please refer to SQL Server 2005 Books Online.You will need the CREATE CERTIFICATE permission within the database to create a certificate.The following syntax creates a certificate and encrypts the certificate private key with the supplied password:</p>
<p><code>CREATE CERTIFICATE Certificate01 ENCRYPTION BY<br />
PASSWORD = '&amp;7YuKj%4@)aSZ@'<br />
WITH SUBJECT = 'Certificate to test encryption',<br />
START_DATE = '8/13/2007',<br />
EXPIRY_DATE = '8/13/2011'</code></p>
<p>Unlike symmetric and asymmetric keys, certificates can be backed up individually. To back up a certificate, you can use the BACKUP CERTIFICATE statement:</p>
<p><code>BACKUP CERTIFICATE CERT_NAME TO FILE = 'PATH_TO_FILE'<br />
[WITH PRIVATE KEY<br />
(FILE = 'PATH_TO_PRIVATE_KEY_FILE',<br />
ENCRYPTION BY PASSWORD = 'ENCRYPTION_PASSWORD',<br />
DECRYPTION BY PASSWORD = 'DECRYPTION_PASSWORD')]</code></p>
<p>Here are definitions of the arguments of this syntax:</p>
<p><strong>CERT_NAME</strong> Specifies the name of the certificate to be backed up.<br />
<strong>PATH_TO_FILE</strong> Specifies the directory path and the filename that will be used for the certificate public key backup.<br />
<strong>PATH_TO_PRIVATE_KEY_FILE </strong>Specifies the directory path and the filename that will be used for the certificate private key backup.<br />
<strong>ENCRYPTION_PASSWORD</strong> Specifies the password that will be used to encrypt the certificate private key backup.<br />
<strong>DECRYPTION_PASSWORD</strong> Specifies the password that will be used to decrypt the certificate private key within the database.</p>
<p>To execute the BACKUP CERTIFICATE you will need the CONTROL permission on the certificate and the <strong>VIEW</strong> <strong>DEFINITION </strong>permission on the database. The following syntax uses the<strong> BACKUP CERTIFICATE</strong> statement to back up both the public and private key of your previously created certificate, and encrypts the private key backup file with a user-supplied password:</p>
<p><code>BACKUP CERTIFICATE Certificate01 TO FILE =<br />
'C:\backup\certificates\Certificate01.pub'<br />
WITH PRIVATE KEY<br />
(DECRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@',<br />
ENCRYPTION BY PASSWORD = '9UyZ%E!b8%7Ly#',<br />
FILE = 'C:\backup\certificates\Certificate01.prv')</code></p>
<p>For a complete listing of statement arguments and permission requirements, please see SQL Server 2005 Books Online.To restore a certificate from a backup file, you can use the FROM FILE argument within the CREATE CERTIFICATE statement, which we covered earlier.The following syntax restores your previously backed up public and private key:</p>
<p><code>CREATE CERTIFICATE Certificate01 FROM FILE =<br />
'C:\backup\certificates\Certificate01.pub'<br />
WITH PRIVATE KEY (FILE = 'C:\backup\certificates\Certificate01.prv',<br />
DECRYPTION BY PASSWORD = '9UyZ%E!b8%7Ly#',<br />
ENCRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@')</code></p>
<p>Note that if you created Certificate01 previously, you will need to drop the certificate prior to running the preceding syntax.You can obtain a listing of all certificates present in your database by using the sys.certificates view:</p>
<p><code>Select * from sys.certificates</code></p>
<p>To change the properties of a certificate you can use the <strong>ALTER CERTIFICATE</strong> statement:</p>
<p><code>ALTER CERTIFICATE CERTIFICATE_NAME<br />
REMOVE PRIVATE KEY |<br />
WITH PRIVATE KEY (FILE = 'PATH_TO_PRIVATE_KEY' |<br />
DECRYPTION BY PASSWORD = 'PASSWORD' |<br />
ENCRYPTION BY PASSWORD = 'PASSWORD')<br />
WITH ACTIVE FOR BEGIN_DIALOG = [ON | OFF]</code></p>
<p>Here are definitions of the arguments of this syntax:<br />
<strong><br />
CERTIFICATE_NAME</strong> The name of the certificate to be altered.<br />
<strong>REMOVE PRIVATE KEY</strong> Removes the private key from the certificate.<br />
<strong>FILE = ‘PATH_TO_PRIVATE_KEY</strong> Specifies the directory and the file name to the private key.<br />
<strong>DECRYPTION BY PASSWORD</strong> = PASSWORD Specifies the password in which to decrypt the private key.<br />
<strong>ENCRYPTION BY PASSWORD</strong> = PASSWORD Specifies the password in which to encrypt the private key<br />
<strong>ACTIVE FOR BEGIN_DIALOG</strong> Enables or disables a certificate for use with Service Broker.</p>
<p>To run the <strong>ALTER CERTIFICATE</strong> command you will need the <strong>ALTER </strong>permission on the certificate.The following syntax changes your certificate private key protection method from user-supplied password to database master key:</p>
<p><code>ALTER CERTIFICATE Certificate01<br />
WITH PRIVATE KEY (<br />
DECRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@')</code></p>
<p>To encrypt data using the certificate public key, you can use the ENCRYPTBYCERT statement:</p>
<p><code>ENCRYPTBYCERT (CERTIFICATE_ID, 'PLAINTEXT')</code></p>
<p>In this statement, CERTIFICATE_ID specifies the ID of the certificate to be used for encryption. PLAINTEXT is the data string you wish to encrypt.</p>
<p>You will need the VIEW DEFINITION permission on the certificate to execute the ENCRYPTBYCERT statement.The following syntax uses the ENCRYPTBYCERT statement to encrypt the supplied string using your certificate:</p>
<p><code>SELECT ENCRYPTBYCERT(Cert_ID('Certificate01'), 'certificate encryption test')</code></p>
<p>Here are the results:</p>
<p><code>0x50BCA9702D6999578923DAEC2B3EE96E69174429EBF54C392A532919679624097CD050110CEEF4DDB3BF<br />
22656549268848C2F6E6BA70C0E543DFB411B654302AB9582A525DB835940FB76F9AAC501BBC5E3D689FB0<br />
431BA7AF3C51A4DCDC5BCB7D101324E466A23447DF916E80D026E2A2E6D5A433E75804ADF8E9B75BF0E097</code></p>
<p>As we mentioned earlier, the preceding results will differ from what you receive on your SQL Server.To decrypt the cipher text, you can use the DECRYPTBYCERT statement:</p>
<p><code>DECRYPTBYCERT (CERTIFICATE_ID, 'CIPHERTEXT', CERT_PASSWORD)</code></p>
<p>Here are the definitions of the arguments of this syntax:</p>
<p><strong>CERTIFICATE_ID</strong> The ID of the certificate to be used for encryption.<br />
<strong>CIPHERTEXT</strong> The string that was previously encrypted with the certificate public key.<br />
<strong>CERT_PASSWORD</strong> The password that encrypts the certificate private key.</p>
<p>To execute the DECRYPTBYCERT statement, you will need the VIEW DEFINITION permission on the certificate.The following syntax uses the DECRYPTBYCERT statement to decrypt the cipher text and convert the results into the human readable varchar data type:</p>
<p><code>SELECT CAST (DECRYPTBYCERT(Cert_ID('Certificate01'),<br />
0x50BCA9702D6999578923DAEC2B3EE96E69174429EBF54C392A532919679624097CD050110CEEF4DDB<br />
3BF22656549268848C2F6E6BA70C0E543DFB411B654302AB9582A525DB835940FB76F9AAC501BBC5E3D<br />
689FB0431BA7AF3C51A4DCDC5BCB7D101324E466A23447DF916E80D026E2A2E6D5A433E75804ADF8E9B<br />
75BF0E097)<br />
AS varchar)</code></p>
<p>Note that you should substitute the cipher text in the preceding statement with the cipher text that you obtained from the earlier ENCRYPTBYCERT statement. Here is what the results of running the preceding statement will look like:</p>
<p><code>certificate encryption test</code></p>
<p>When you no longer need a certificate, it can be removed from the database using the DROP CERTIFICATE statement:</p>
<p><code>DROP CERTIFICATE CERTIFICATE_NAME</code></p>
<p>In this statement, CERTIFICATE_NAME specifies the name of the certificate to be removed.<br />
To execute the DROP CERTIFICATE statement, you will need the CONTROL permission on the certificate.The following syntax drops your previously created certificate.</p>
<p><code>DROP CERTIFICATE Certificate01</code></p>
<p>The following script outlines the certificate encryption process from end to end:</p>
<p><code>-- Demonstration of certiifcate encryption<br />
-- Create Database<br />
CREATE Database CertEncryptDemo<br />
GO<br />
USE CertEncryptDemo<br />
--<br />
-- Switch to database context<br />
--<br />
-- Create table for data to be encrypted<br />
CREATE Table Customers(<br />
FirstName varchar(30),<br />
LastName varchar(30),<br />
CreditCardNum varbinary(300))<br />
--<br />
-- Create Database Master Key<br />
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '5YtF4$aQ#W4d^W'<br />
--<br />
--** You should backup the Database Master Key immediately after creation! **<br />
--<br />
--Create certificate and use the databse master key to encrypt the private key<br />
CREATE CERTIFICATE Certificate02<br />
WITH SUBJECT = 'Test certificate for encryption',<br />
START_DATE = '1/1/2007',<br />
EXPIRY_DATE = '1/1/2012';<br />
--<br />
-- Populate table with data included encrypted credit card numbers<br />
INSERT INTO Customers Values('Blake', 'Cabbage',<br />
EncryptByCert(Cert_ID('Certificate02'), '342724356361631'))<br />
INSERT INTO Customers Values('Colin', 'Edwareds',<br />
EncryptByCert(Cert_ID('Certificate02'), '4516525615214110'))<br />
INSERT INTO Customers Values('Anoson', 'Monroe',<br />
EncryptByCert(Cert_ID('Certificate02'), '5582858885802510'))<br />
Data Encryption • Chapter 8 241<br />
--<br />
--View the contents of the table<br />
Select * from Customers<br />
--<br />
--View table data including the decrypted plain text credit card numbers<br />
--<br />
SELECT Firstname,LastName, CAST(DecryptByCert(Cert_ID('Certificate02'),<br />
CreditCardNum) AS varchar) as 'CreditCardNum' from customers<br />
--<br />
--Clean-up demo<br />
DROP CERTIFICATE Certificate02;<br />
DROP MASTER KEY;<br />
USE TEMPDB<br />
DROP DATABASE CertEncryptDemo;<br />
--END</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure MS SQL 2005 Database with EFS Encryption</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 05:55:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=340</guid>
		<description><![CDATA[EFS Encryption EFS can be used to encrypt SQL Server 2005 data files and folders. EFS is supported on Windows 2000 and later operating systems with New Technology File Systems (NTFS) formatted drives. EFS uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On Windows 2003 Server and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EFS Encryption</strong></p>
<p>EFS can be used to encrypt <strong>SQL Server 2005</strong> data files and folders. EFS is supported on <strong>Windows 2000</strong> and later operating systems with New Technology File Systems (<strong>NTFS</strong>) formatted drives. <strong>EFS </strong>uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On <strong>Windows 2003 Server</strong> and newer operating systems, EFS by default creates a random <strong>File Encryption Key</strong>, which is a 256-bit AES key to perform data encryption.The File Encryption Key is then itself encrypted with the user’s public key and stored within the encrypted file or folder.</p>
<p><strong>To encrypt SQL Server 2005 data files and folders using EFS, follow these steps:</strong></p>
<p>1. Stop the <strong>SQL Server</strong> service.<br />
2. Log out and log in using the<strong> SQL Server </strong>service account credentials.<br />
3. Right-click on the file or folder to be encrypted and select <strong>Properties | General Tab | Advanced.</strong></p>
<p><span id="more-340"></span><br />
4. Within the Advanced attributes window, select Encrypt contents to secure data.<br />
5. Within the Advanced attributes window, press OK.<br />
6. Within the Properties tab, press OK.<br />
7. If you are encrypting a folder containing subfolders, you will be presented with another window asking if you would like to  encrypt them as well. Press OK.<br />
8. <strong>EFS encrypted files</strong> and folder names should now appear in green within any Windows file explorer window.<br />
9. Restart the <strong>SQL Server</strong> services.</p>
<p>If errors are generated, you may have encrypted the<strong> SQL Serve</strong>r data files using an account that is not linked to the <strong>SQL Server</strong> service account.You can decrypt the data folders by reversing the steps above and trying again. When encrypting individual database files, EFS first creates a plain text copy of the file to be encrypted, encrypts the target file, and then deletes the temporary file.This temporary file is not securely deleted and can be recovered using common data recovery tools. To prevent local file disclosure, you should use a secure data deletion tool to overwrite the areas of disk containing the temporary file. Alternatively, you can simply encrypt the parent folder that contains the database files to ensure any temporary files are also encrypted.</p>
<p><strong>EFS encryption</strong> is beneficial if the database media is stolen or misplaced. When transferring<strong> EFS encrypted</strong> files over the network, Windows first decrypts the file and then transfers the plain text equivalent. Some administrators perform manual backups of database files prior to implementing changes on the database server. If this backup involves copying data files from one server to another, you will effectively be storing an unencrypted copy of your database on the destination server.</p>
<p><strong>Encryption File System Contains Inherit Flaws</strong></p>
<p>On <strong>Windows Server 2003</strong>, EFS uses a strong 256-bit AES key to encrypt data. Under most circumstances, this would be an effective method of encryption; however, this AES key is protected by the user’s public key, which is based on the user’s Windows login password. This ultimately reduces EFS protection to the strength of the user’s Windows password. There are publicly available tools that can successfully decrypt EFS encrypted data by exploiting this flaw. Because of this, EFS should not be used to encrypt sensitive database data.</p>
<p><strong>Working with EFS Encrypted Data</strong></p>
<p>EFS encryption is managed by the operating system, and seamlessly provides file and folder encryption to <strong>SQL Server 2005</strong>. All <strong>SQL Serve</strong>r functions and operations remain unchanged when using this encryption method. Because EFS is handled outside of SQL Server 2005, encryption keys must be backed up separately in addition to your database backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importance and Ways to Secure SQL 2005 Database</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 06:25:04 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=336</guid>
		<description><![CDATA[Why Secure Data in your Windows MSSQL database? Databases often contain sensitive financial, healthcare, and corporate data. As mentioned earlier, data security breaches are occurring at an alarming rate and international legislations have been passed, which set regulations on how organizations must protect this sensitive data. The Payment Card Industry (PCI), Health Insurance Portability and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why Secure Data in your Windows MSSQL database?</strong></p>
<p><strong>Databases </strong>often contain sensitive financial, healthcare, and corporate data. As mentioned earlier, data security breaches are occurring at an alarming rate and international legislations have been passed, which set regulations on how organizations must protect this sensitive data. The<strong> </strong>Payment Card Industry<strong> (PCI)</strong>, Health Insurance Portability and Accountability Act (<strong>HIPAA</strong>), Personal Information Protection and Electronic Documents Act (<strong>PIPEDA</strong>), Gramm-Leach-Bliley Act (<strong>GLBA</strong>), and the <strong>UK Data Protection Act</strong> are just a few of these regulations. Several regulations require that sensitive data be encrypted and that organization’s must identify and report data disclosure or misuse. If these regulations are not followed, organizations can face serious repercussions, ranging from financial penalties to imprisonment of responsible parties. Depending on the nature of your business, the above regulations may not apply, but before you discount the need to encrypt data</p>
<p><span id="more-336"></span>consider that sensitive information can also include corporate information including confidential HR data, trade secrets, patents, designs, or client listings, which, if disclosed to unauthorized individuals, could have a grave impact on your organization. At this point you may be wondering,<strong>“why not just encrypt all data using a secure algorithm?”</strong> instead of determining specifically what data elements require encryption.The answer is that there is a  significant performance impact when encrypting data, as SQL Server must perform authentication, encryption, and decryption functions seamlessly to encrypt and decrypt the data. In addition, there are several other side effects associated with data encryption, which we will touch on later in this chapter. For these reasons, you should use data encryption only when required and only on the required data elements.</p>
<p><strong>Ways to encrypt data in MSSQL 2005:</strong></p>
<p><a title="Configure EFS Encryption" href="http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-databade-with-efs-encryption/" target="_self">EFS Encryption</a><br />
Native SQL Server 2005 Encryption<br />
Using Keys to Encrypt Data<br />
<a title="Encryption using certificate." href="http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/" target="_self">Using Certificates to Encrypt Data</a><br />
Using Pass Phrases to Encrypt Data<br />
Working with Data Encrypted<br />
Indexing Encrypted Data<br />
Replicating Encrypted Data<br />
Symmetric Key Usage Tracking<br />
Replicating Encrypted Stored<br />
Using Endpoint Encryption</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Error Reporting</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 20:28:02 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[appcompat.txt]]></category>
		<category><![CDATA[Data Execution Prevention]]></category>
		<category><![CDATA[dump files]]></category>
		<category><![CDATA[Hard Disk]]></category>
		<category><![CDATA[HDMP]]></category>
		<category><![CDATA[MDMP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[w3wp.exe.mdmp]]></category>
		<category><![CDATA[Windows Error Reporting]]></category>
		<category><![CDATA[Windows Registry]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=248</guid>
		<description><![CDATA[C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\w3wp.exe.mdmp C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\appcompat.txt Above error pop ups when Error Reporting is enabled on your system and w3wp.exe faces an error. Windows Error Reporting increases Hard Disk space , by adding above pop ups in two different dump files i.e. HDMP and MDMP HDMP (Heap Dump) &#8211; Uncompressed error dump file generated by Windows when a program [...]]]></description>
			<content:encoded><![CDATA[<p><strong>C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\w3wp.exe.mdmp</strong></p>
<p><strong>C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\appcompat.txt</strong></p>
<p>Above error pop ups when <strong>Error Reporting</strong> is enabled on your <strong>system</strong> and <strong>w3wp.exe</strong> faces an error.<br />
<strong>Windows Error Reporting</strong> increases <strong>Hard Disk</strong> space , by adding above pop ups in two different <strong>dump files</strong> i.e. <strong>HDMP</strong> and <strong>MDMP</strong><br />
HDMP (Heap Dump) &#8211; Uncompressed error dump file generated by Windows when a program has an error or crashes.<br />
<strong>MDMP (Mini Dump)</strong> &#8211; Compressed Heap Dump files are saved as Mini dump (MDMP) files and may be sent to <strong>Microsoft</strong> as part of an error reporting process.</p>
<p><span id="more-248"></span>Windows Error Reporting settings are stored in <strong>Windows Registry</strong> at <strong>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting</strong></p>
<p>However, if you do not choose to send files to Microsoft. These dump files will gradually go on clogging up your system disk space.<br />
To avoid this you have to fix error in application and delete dump files present at<br />
<strong>C:\WINDOWS\pchealth\ERRORREP\UserDumps</strong></p>
<p>Read further for Customizing or disabling <strong>Windows Error Reportin. </strong></p>
<p><strong>Windows Error Reporting</strong> can be kept disabled or can be customize as per requirement.</p>
<p>On your <strong>Windows System</strong> &gt;&gt;&gt; Right Click on My Computer &gt;&gt;&gt; Click on Properties &gt;&gt;&gt; Click on Advanced &gt;&gt;&gt; Click on Error Reporting &gt;&gt;&gt; You can Enable or Disable Error Reporting from here &gt;&gt; if you click on Enable &gt;&gt;&gt; Click on Choose Programs for customizing.</p>
<p>To add <strong>w3wp.exe</strong> in exception list without Disabling <strong>Error Reporting</strong> navigate yourself as shown below : -</p>
<p>On your <strong>Windows System</strong> &gt;&gt;&gt; Right click on My Computer &gt;&gt;&gt;  Click on Properties &gt;&gt;&gt; Click on Advanced &gt;&gt;&gt; Performance &gt;&gt;&gt; Click on Settings &gt;&gt;&gt; Click on <strong>Data<br />
Execution Prevention</strong> &gt;&gt;&gt; Turn on DEP for all programs and<br />
services except those I select &gt;&gt;&gt; Add <strong>w3wp.exe</strong> process in exception list<br />
(Reboot not required)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure your MS SQL Database Connection String</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 17:51:42 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Connection string]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=197</guid>
		<description><![CDATA[Ways to secure your MS SQL connection string in ASP .NET. We have seen allot of people looking to have the best option to secure the connection string in their ASP .NET code to connect the MS SQL database since it contains the username and password of their database. It is very important to use [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ways to secure your MS SQL connection string in ASP .NET.</strong></p>
<p>We have seen allot of people looking to have the best option to secure the connection string in their <strong>ASP .NET</strong> code to connect the <strong>MS SQL database</strong> since it contains the username and password of their database. It is very important to use a secure method for corporate clients and those who save Credit Card details in their MS SQL database. Or they will easily get hacked and all the important data will be exploited by the hacker. And also for those who store important data in MSSQL.</p>
<p>Here are the list of methods that can be used to secure your<strong> MS SQL connection string</strong> in your<strong> ASP.NET</strong> application.</p>
<p><strong>METHODS:</strong></p>
<p><strong>1. Using a DSN connection string:</strong></p>
<p><span id="more-197"></span></p>
<p>If you have the administrator users access to your Windows Server or use a control panel like Plesk then you can create a <strong>DSN </strong>with <strong>ODBC </strong>connector that stores the password of your database along with its name.</p>
<p>You will have to go to<strong> Start &gt;&gt; Administrative Tools &gt;&gt; Data Sources (ODBC) </strong>on your Windows Server with an account that has administrative privileges.</p>
<p>Or if you use a hosting control panel like Plesk that you can create the DSN from the control panel itself.</p>
<p>Once you have created the DNS you will have to mention it in your code as:</p>
<p><code>oConn.Open "DSN=mySystemDSN"</code></p>
<p><strong>2. Store your connection string either in web.config or global.asa:</strong></p>
<p>It is safe to have connection string stored in either web.config or global.asa, since IIS does not allow these files to be accessed from the browser. But it is recommended to enable custom errors in web.config or else the browser just displays the exact exact in the event of an error.</p>
<p>An example of web.config would be:</p>
<p><code><br />
</code></p>
<p><strong>3. Encrypt your connection String stored in Web.config.</strong></p>
<p>To make the connection string more secure you can encrypt your string if you application is written in ASP .NET 2 as this only possible with the new feature in asp.net 2.0 through the config API.</p>
<p>Steps to Encrypt your connection string in web.config:</p>
<p><strong>&#8211; Create a connectionstring section in web.config :- </strong></p>
<p><strong>&#8211; Run the command below:</strong></p>
<p><code>aspnet_regiis –pe -app optionally you can provide the machine or user store.</code></p>
<p><strong>&#8211; Get the connection string:- </strong></p>
<p><code>Response.Write(ConfigurationManager.ConnectionStrings</code></p>
<p><code>["Myconnstr"].connectionString.ToString());</code></p>
<p><strong>&#8211; You can also encrypt:</strong></p>
<p><strong>&#8211; To decrypt the connection string use aspnet_regiis –pd with the same parameters.<br />
</strong></p>
<p><strong>&#8211; There are more option available, such as:</strong></p>
<p>aspnet_regiis –pef<br />
aspnet_regiis -pdf</p>
<p><strong>4. Save the connection string in the Windows registry:</strong></p>
<p>You can also save the connection string in the windows registry, the only problem here is you have to give appropriate permissions on the registry so that your web user is able to read the data fron the registry:</p>
<p><strong>Procedure to follow:</strong></p>
<p>Add a registry key for your application under SOFTWARE/[YOUR_COMPANY]/[YOUR_APP]<br />
Add a string value for ConnectionString<br />
Teach your ConnectionFactory to crack open the appropriate registry key (in a static constructor, not every page load).<br />
Export the registry info as a .reg file, add it to source control, modify and apply it as necessary to set up additional machines.</p>
<p>You will also have to make sure that the user have appropriate rights on the register to read the data.<br />
<strong><br />
5. Save your connection string in a DLL.</strong></p>
<p>You can also save the connection sting the to a DLL using Visual Studio but this includes few disadvantages like, you will gave to decrypt the DLL to make any changes in the connection string and then again encrypt it. This makes things very complicated for you to manage your applications and specially when you have a shared hosting package.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Viruses without using Antivirus !</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 17:37:03 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Exchange Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Anti viruses]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Hidden]]></category>
		<category><![CDATA[Read Only]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[USB Pen drives]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=182</guid>
		<description><![CDATA[One of the ways by which Computers get affected by viruses is through USB Pen drives. Anti viruses are unable to detect them and even if they do, in most cases they are unable to delete the virus. Following are the precautions you can take when plugging USB Drive on your Computer. Whenever you plug [...]]]></description>
			<content:encoded><![CDATA[<p>One of the ways by which <strong>Computers</strong> get affected by <strong>viruses</strong> is through <strong>USB Pen drives</strong>. <strong>Anti viruses</strong> are unable to detect them and even if they do, in most cases they are unable to delete the <strong>virus</strong>. Following are the precautions you can take when plugging <strong>USB Drive</strong> on your <strong>Computer</strong>.</p>
<p>Whenever you plug a <strong>USB drive</strong> in your system (which you think is infected by <strong>virus</strong>), do not open it -  Do not click &#8216;OK&#8217; !<br />
click on ‘Cancel’. Now open <strong>Command Prompt</strong> by typing ‘cmd‘ in run box.<br />
Type <strong>dir /w/a</strong> and press enter.<br />
Above <strong>command</strong> will display list of files in pen drive. Check in the list if the files are not</p>
<p>* Heap41a<br />
* New Folder.exe<br />
* Autorun.inf<br />
* svchost.exe<br />
* Ravmon.exe<br />
* or any other exe file which may be suspicious.</p>
<p>If any of the above files are present in the list, then your <strong>USB drive</strong> is infected. To remove these files, type the following <strong>command</strong> in <strong>command prompt </strong><br />
<strong>attrib -r -a -s -h *.*</strong> and press enter.<br />
This will remove from files <strong> Read Only</strong>, <strong>Archive</strong>, <strong>System</strong> and <strong>Hidden attributes</strong> .</p>
<p>The files which you will now be looking on are the junk files (<strong>viruses</strong>) and can be deleted using  <strong>del command</strong>. Delete all those files which you find suspicious. To be on a safer side, just scan again your  <strong>USB Pen drive</strong> using a <strong>anti virus</strong> to check whether it is free of <strong>virus</strong> or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Pass Phrases to Encrypt Data in MSSQL 2005</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/using-pass-phrases-to-encrypt-data-in-mssql-2005/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/using-pass-phrases-to-encrypt-data-in-mssql-2005/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 04:43:46 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=360</guid>
		<description><![CDATA[Using Pass Phrases to Encrypt Data A password that allows for spaces can be referred to as a pass phrase. The benefit of pass phrases is that you can make them meaningful and easy to remember. Instead of creating and managing encryption keys or certificates in your database server, you can encrypt data using only [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using Pass Phrases to Encrypt Data</strong></p>
<p>A password that allows for spaces can be referred to as a pass phrase. The benefit of pass phrases is that you can make them meaningful and easy to remember. Instead of creating and managing encryption keys or certificates in your database server, you can encrypt data using only a pass phrase.The <strong>ENCRYPTBYPASSPHRASE</strong> statement uses the supplied pass phrase to generate a symmetric key, which is used to perform the actual data encryption. No key management is required, as the key will be recreated each time the same pass phrase is supplied.The common syntax of the<strong> ENCRYPTBYPASSPHRASE</strong> statement is as follows:</p>
<p><code>ENCRYPTBYPASSPHRASE ('PASSPHRASE', 'PLAINTEXT')</code></p>
<p>In this statement, <strong>PASSPHRASE </strong>specifies the data string to be used to derive an encryption key. <strong>PLAINTEXT </strong>specifies the data to be encrypted. No permissions are required to run the <strong>ENCRYPTBYPASSPHRASE </strong>statement.</p>
<p>The following syntax encrypts the string using the supplied pass phrase:</p>
<p><span id="more-360"></span></p>
<p><code>SELECT ENCRYPTBYPASSPHRASE('SQL Server 2005 Pass Phrase Encryption', 'pass phrase encryption test')</code></p>
<p>Here are the results:</p>
<p><code>0x01000000B0FA66E0152FB0B655B23439904E36F3ED5B758618BEED0F2A2BF918C6CF9DF685BC2A60A<br />
AD5E81D660BA5A396D1CA89</code></p>
<p>As mentioned earlier, the preceding results will differ from what you receive on your SQL Server.To decrypt data, you can use the <strong>DECRYPTBYPASSPHRASE</strong> statement.The general syntax of this statement is as follows:</p>
<p><code>DECRYPTBYPASSPHRASE ('PASSPHRASE', 'CIPHERTEXT')</code></p>
<p>In this statement, <strong>PASSPHRASE </strong>specifies the data string to be used to derive a decryption key. <strong>CIPHERTEXT </strong>specifies the data to be decrypted. Similar to the <strong>ENCRYPTBYPASSPHRASE </strong>statement, no permissions are required to execute the <strong>DECRYPTBYPASSPHRASE </strong>statement.The following syntax uses the <strong>DECRYPTBYPASSPHRASE </strong>statement to decrypt the previously encrypted data, and converts it into the human readable varchar format:</p>
<p><code>SELECT CAST (DECRYPTBYPASSPHRASE('SQL Server 2005 Pass Phrase Encryption',<br />
0x01000000B0FA66E0152FB0B655B23439904E36F3ED5B758618BEED0F2A2BF918C6CF9DF685BC2A60A<br />
AD5E81D660BA5A396D1CA89) AS varchar)</code></p>
<p>Note that you should substitute the cipher text in the preceding statement with the cipher text that you obtained from the earlier <strong>ENCRYPTBYPASSPHRASE </strong>statement. Here is what the results of running the preceding statement will look like:<br />
<code><br />
pass phrase encryption test</code></p>
<p>The encryption algorithm and key length used by pass phrase encryption have not been formally documented by Microsoft. Because of this, it is recommended that you do not use this encryption mechanism to encrypt sensitive data.</p>
<p><strong>Flaws within Microsoft Object Encryption</strong></p>
<p>The object encryption used by Microsoft is weak, and there are publicly available scripts that can successfully decrypt the objects. Further, at run-time, SQL Server internally decrypts the object and SQL Profiler can be used to capture object logic in plain text form. Due to this, object encryption should not be used to encrypt sensitive information, and you should not embed key or certificate passwords or pass phrases in SQL Server objects encrypted using objectbased encryption.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/using-pass-phrases-to-encrypt-data-in-mssql-2005/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NTFS File System</title>
		<link>http://www.mywebhostingblog.net/hosting-security/ntfs-compared-to-fat-and-fat32/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/ntfs-compared-to-fat-and-fat32/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 18:00:53 +0000</pubDate>
		<dc:creator>Rock</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[FAT]]></category>
		<category><![CDATA[FAT32]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[NT]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=89</guid>
		<description><![CDATA[What is NTFS ? The File system comes with Windows NT. (NT File System) An optional file system for Windows NT, 2000, XP and Vista. NTFS is the more advanced file system, compared to FAT32. It improves performance and is required in order to implement numerous security and administrative features in the OS. NTFS supports [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is NTFS ?</strong></p>
<p>The <strong>File system</strong> comes with <strong>Windows N</strong>T. (NT File System) An optional file system for <strong>Windows NT, 2000</strong>, <strong>XP and Vista</strong>. <strong>NTFS </strong>is the more <strong>advanced </strong>file system, compared to <strong>FAT32</strong>. It improves performance and is required in order to implement numerous security and administrative features in the <strong>OS</strong>. <strong>NTFS </strong>supports <strong>Active Directory </strong>domain names and provides file <strong>encryption</strong>. Permissions can be set at the file level rather than by folder, and individual users can be assigned disk space quotas. <strong>NTFS </strong>is designed to log activity and recover on the fly from hard disk crashes. It also supports the <strong>Unicode character</strong> <strong>set </strong>and allows file names up to 255 characters in length. See <strong>FAT32 </strong>and file system.</p>
<p><span id="more-89"></span></p>
<p><strong>NTFS compared to FAT and FAT32</strong></p>
<p><strong>NTFS </strong>has always been a more powerful <strong>file system</strong> than <strong>FAT </strong>and <strong>FAT32. Windows 2000, Windows XP</strong>, and the <strong>Windows Server 2003</strong> family include a new version of NTFS, with support for a variety of features including <strong>Active Directory,</strong> which is needed for domains, user accounts, and other important security features.<br />
<strong>FAT </strong>and <strong>FAT32 </strong>are similar to each other, except that <strong>FAT32 </strong>is designed for larger disks than <strong>FAT</strong>. The file system that works most easily with large disks is <strong>NTFS</strong>.</p>
<p><strong>The following will describes the compatibility of each file system with various operating.</strong></p>
<p><strong></strong><br />
<strong>NTFS : </strong><br />
A computer running <strong>Windows 2000</strong>, <strong>Windows XP,</strong> or a product in the <strong>Windows Server 2003</strong> family can access files on a local <strong>NTFS </strong>partition. A computer running <strong>Windows NT 4.0</strong> with <strong>Service Pack</strong> 5 or later might be able to access some files. Other operating systems allow no local access.<br />
<strong></strong></p>
<p><strong>FAT :</strong><br />
Access to files on a local partition is available through <strong>MS-DOS</strong>, all versions of <strong>Windows, </strong>and <strong>OS/2</strong>.<br />
<strong></strong></p>
<p><strong>FAT32 :</strong><br />
Access to files on a local partition is available only through <strong>Windows 95 OSR2, Windows 98, Windows Millennium Edition, Windows 2000</strong>, <strong>Windows XP</strong>, and products in the <strong>Windows Server 2003</strong> family.</p>
<p><strong>The following are comparison of disk and file sizes possible with each file system.</strong></p>
<p><strong>NTFS : </strong><br />
Recommended minimum volume size is approximately 10 MB. Maximum volume and partition sizes start at 2 terabytes (TB) and range upward. For example, a <strong>dynamic disk</strong> formatted with a standard allocation unit size (4 KB) can have partitions of 16 TB minus 4 KB. Cannot be used on floppy disks.</p>
<p>Maximum file size is potentially 16 TB minus 64 KB, although files cannot be larger than the volume or partition they are located on.</p>
<p><strong>FAT :</strong><br />
Volumes from <strong>floppy disk</strong> size up to 4 GB. This file system does not support domains controller.<br />
Maximum file size is 2 GB.</p>
<p><strong>FAT32 :</strong><br />
Volumes from 33 MB to 2 TB can be written to or read using products in the <strong>Windows Server 2003</strong> family.<br />
Volumes up to 32 GB can be formatted as <strong>FAT32 </strong>using products in the <strong>Windows Server 2003</strong> family.<br />
Does not support <strong>domains controller</strong>.<br />
Maximum file size is 4 GB.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/ntfs-compared-to-fat-and-fat32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect Apache WebServer From DDOS with mod_evasive</title>
		<link>http://www.mywebhostingblog.net/hosting-security/protect-apache-webserver-from-ddos-with-mod_evasive/</link>
		<comments>http://www.mywebhostingblog.net/hosting-security/protect-apache-webserver-from-ddos-with-mod_evasive/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 02:09:01 +0000</pubDate>
		<dc:creator>Rock</dc:creator>
				<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Linux Server Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=500</guid>
		<description><![CDATA[What is Apache ? The Apache HTTP Web Server, we all well know it as Apache, is one of the world&#8217;s most widely used Web servers. It is very popular because of its strong security features, most outstanding performance &#38; the fact that it does cost us any thing. It comprehensively supports and it is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Apache ?</strong></p>
<p>The <strong>Apache HTTP Web Server</strong>, we all well know it as Apache, is one of the world&#8217;s most widely used <strong>Web servers</strong>. It is very popular because of its strong security features, most outstanding performance &amp; the fact that it does cost us any thing. It comprehensively supports and it is most recommended for <strong>MySQL</strong> &amp; <strong>PHP/Perl/Python</strong> (and now also supports <strong>Ruby</strong>) programming languages.</p>
<p><img class="aligncenter size-medium wp-image-501" title="mod-evasive-apache-DDOS" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/04/mod-evasive-apache-300x45.gif" alt="mod-evasive-apache-DDOS" width="300" height="45" /></p>
<p>It&#8217;s available for all flavours of Unix (GNU/Linux &amp; UNIX systems), <strong>Microsoft Windows </strong>including other OS as well, for Example <strong>Linux </strong>distros such as  <strong>RedHat, SuSe, Debian, CentOs, Gentoo, Mandrake, Fedora</strong>, etc etc. Apache is used to serve both dynamic static content &amp; static Web pages on the Internet. Some web applications are developed expecting the features &amp; environment that Apache provides. It is one of the most basic feature in the hosting world is what allows your website to be seen by the world.</p>
<p><strong>What is a DDoS attack ?</strong></p>
<p><span id="more-500"></span></p>
<p><img class="alignleft size-full wp-image-502" title="linux-security-ddos-attack" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/04/linux-security-ddos-attack.jpg" alt="linux-security-ddos-attack" width="226" height="270" />A<strong> Denial-Of-Service </strong>attack (<strong>DoS attack</strong>) or <strong>Distributed Denial-Of-Service</strong> attack (<strong>DDoS attack</strong>) is nopthing but an attempt to make a domain name or a computer resource unavailable to its users by sending mass packets to it. Perpetrators of <strong>DoS attacks</strong> like to target domains/sites/hosts or services hosted with high profile <strong>webhosting </strong>servers such as credit card payment gateways, banks, &amp; even root <strong>nameservers</strong>.</p>
<p>The most common method of attack involves saturating the target (victim) machine with request that communicates externally, such that even the legimate traffic also does not get a response, or respond very slowly as to be effectively unavailable.</p>
<p>In general terms, <strong>DoS attacks</strong> are set so that the targeted computer(s) is either reset or consume all the available resources so that the target is no longer available to provide its intended service or to obstruct the communication between the users &amp; the victim so that there is no suitable communication between them.</p>
<p>There are several ways to stop such kind of attacks, most of the providers use &#8220;<strong>Proxy Shield</strong>&#8221; which is most effective services available today and can handle an attack upto 4GB per second. Although it is a very expensive service and only corporate websites can afford them. If you want to handle small DDos attacks then you can either go for a <strong>hardware firewall</strong> or a software application like the one below, which is very effective to handle DDos at its initial stage.</p>
<p><strong>About mod_evasive &amp; how does it prevent DDoS attack ?</strong></p>
<p><em><strong>mod_evasive</strong></em> is basically an evasive maneuvers module configured on Apache web server to provide evasive action where ever there is an <img class="alignright size-medium wp-image-503" title="apche-ddos-attack" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/04/apche-ddos-attack-300x142.jpg" alt="apche-ddos-attack" width="300" height="142" />brute force attack or DDoS attack or HTTP DoS. You can also use it as a traffic detection or network management tool and can be effective configured to work with <strong>ipchains</strong>, <strong>routers</strong>, <strong>firewalls </strong>etc. You can also set mod_evasive up to send abuse reports via email &amp; <strong>syslog facilities</strong>.</p>
<p>It creats an internal dynamic hash table of IP Addresses for detections &amp; URIs and denying any single IP if any of the following is true:</p>
<p><strong>&#8211; Making any requests while temporarily blacklisted on the server.<br />
&#8211; Single page on your website is access for more then n number of time.<br />
&#8211; Establishing more than 50 concurrent connections per second on the same child.</strong></p>
<p>This method works well on both attacks, may it be single-server script attackor a distributed attack but like any other evasive tools it is only useful to the point of processor consumption &amp; bandwidth hence to configure this tool with your firewalls &amp; routers gines out the maximum protection to your dedicated server as well as webhosting sites.</p>
<p>This module is instantiated for each listener individually that is every time when there is a HTTP request to <strong>Apache Web Server</strong> and therefore the evassive tool has a built-in scaling capabilities &amp; cleanup mechanism. Because of this per-child design, only the scripted attacks get cought and blocked access and legitimate requests are never compromised even if they come from<strong> NAT addresses</strong> or<strong> proxies</strong>. Even if the user repeatedly click on &#8216;reload&#8217; button should not be affected unless they do it maliciously. One can tweak <strong>mod_evasive</strong> fully through the Apache configuration file that is<strong> httpd.conf </strong>and it is very easy to incorporate into your <strong>Linux web hosting server</strong> and most important, easy to use.</p>
<p><strong>Here are the steps to install mod_evasive:</strong><br />
<strong><br />
Install &amp; configure it on a Linux Server:</strong></p>
<p>Login to the server as root &amp; execute following connabds one bu one:</p>
<p><code>cd /usr/local/src<br />
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz<br />
tar -zxvf mod_evasive_1.10.1.tar.gz<br />
cd mod_evasive</code></p>
<p><em><strong>For Apache 2.0.x</strong></em></p>
<p><code>/usr/sbin/apxs -cia mod_evasive20.c</code></p>
<p>Then add add this too httpd.conf</p>
<p><code>DOSHashTableSize 3097<br />
DOSPageCount 6<br />
DOSSiteCount 100<br />
DOSPageInterval 2<br />
DOSSiteInterval 2<br />
DOSBlockingPeriod 600</code></p>
<p><em><strong>For Apache 1.3.x</strong></em></p>
<p><code>/usr/local/apache/bin/apxs -cia mod_evasive.c</code></p>
<p>Then add this too httpd.conf</p>
<p><code>DOSHashTableSize 3097<br />
DOSPageCount 6<br />
DOSSiteCount 100<br />
DOSPageInterval 2<br />
DOSSiteInterval 2<br />
DOSBlockingPeriod 600</code></p>
<p>Now just restart <strong>Apache web hosting server</strong> &amp; the installation is complete..</p>
<p><code>/etc/init.d/httpd restart</code></p>
<p>Congratulations.. your<strong> Linux Apache web hosting server</strong> is now more safer from the <strong>DDoS attacks</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-security/protect-apache-webserver-from-ddos-with-mod_evasive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IIS Optimizing &amp; Monitoring Tools</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/iis-optimizing-tools/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/iis-optimizing-tools/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 13:46:26 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Application pool]]></category>
		<category><![CDATA[IIS Passwords]]></category>
		<category><![CDATA[IIS Pool]]></category>
		<category><![CDATA[IIS Report]]></category>
		<category><![CDATA[IIS Server]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=49</guid>
		<description><![CDATA[Here are some useful tools that help us in configuring IIS server to be more secure and less resource consuming: 1. IIS Passwords Sync: IIS 6.0 web sites run under anonymous user accounts. It is IUSR_&#60;machine name&#62; (by default) or other user accounts created by your web hosting control panel. The users&#8217; passwords are set [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman";} --> <!--[endif]--></p>
<p class="MsoNormal">Here are some useful tools that help us in configuring <strong>IIS server</strong> to be more secure and less resource consuming:</p>
<p class="MsoNormal"><strong>1. IIS Passwords Sync:</strong></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>IIS 6.0</strong> web sites run under anonymous user accounts. It is IUSR_&lt;machine name&gt; (by default) or other user accounts created by your<strong> web hosting control panel</strong>. The users&#8217; passwords are set automatically set and are never known. However, sometimes for some reason the passwords get out of sync or corrupted and need to be reset. The easiest way to reset these <strong>passwords </strong>is to use <strong>IIS Passwords</strong> <strong>Sync program</strong>. It extracts the <strong>passwords </strong>that <strong>Microsoft IIS 6.0</strong> has in its <strong>metabase</strong> and updates the accounts in “<strong>Local Users and Groups”</strong> to use that passwords.</p>
<p class="MsoNormal"><a title="IIS Passwords Sync Download Link" href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;g=6&amp;i=1742" target="_blank"><strong>DOWNLOAD LINK</strong></a></p>
<p><strong>2.</strong> <!--[endif]--><strong><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;">IIS Pool:</span></strong></p>
<p><!--[endif]--></p>
<p class="MsoNormal">With <strong>IIS Pool </strong>tool we can easily search the problematic sites which have default <strong>application pool</strong>.</p>
<p><!--[endif]--></p>
<p class="MsoNormal"><strong>IIS Application Pools Monitoring and Analysis</strong>:</p>
<p class="MsoNormal">This program allows monitoring of <strong>IIS 6 application pools</strong>. All the monitoring data is stored in log files. It is possible to analyze a pool to find a website (or a virtual application) using too much resources. &#8230;</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>Overview -</strong></p>
<p class="MsoNormal"><strong>IIS Application Pools Monitoring and Analysis:</strong></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span>* This program allows monitoring of <strong>IIS 6 application pools</strong>.</p>
<p class="MsoNormal"><span> </span>* All the monitoring data is stored in log files.</p>
<p class="MsoNormal"><span> </span>* It is possible to analyze a pool to find a website (or a virtual application) using too much resources.</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>Features -</strong></p>
<p class="MsoNormal"><span> </span>*<strong> IIS </strong>application pools monitoring</p>
<p class="MsoNormal"><span> </span>* <strong>IIS</strong> application pools analysis</p>
<p class="MsoNormal"><span> </span><span> </span>* Find websites using too much resources</p>
<p class="MsoNormal">
<p class="MsoNormal"><a title="IIS Pool Download Link." href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;g=6&amp;i=1728" target="_blank"><strong>DOWNLOAD LINK</strong></a></p>
<p class="MsoNormal">
<p><!--[endif]--></p>
<p class="MsoNormal"><strong>3. IIS Report:</strong></p>
<p><!--[endif]--></p>
<p class="MsoNormal"><strong>Overview -</strong></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>IIS Report </strong>is a command line tool. It allows us to create different IIS related reports. For example it can get the list of all <strong>SSL websites</strong> and sort it by IP address, or get the list of all websites and sort it by application pool name and then by website name, &#8230;</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">There is no installation required. Just download and unrar the archive file. Then start the program with:</p>
<p class="MsoNormal"><strong>C:\&gt;iisreport.exe /?</strong></p>
<p class="MsoNormal">to get more information and see all the parameters available.</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>Benefits -</strong></p>
<p class="MsoNormal"><span> </span>* Easy-to-use</p>
<p class="MsoNormal"><span> </span>* Fast</p>
<p class="MsoNormal"><span> </span>* It is possible to import the reports with <strong>Excel</strong></p>
<p class="MsoNormal"><span> </span>* It is possible to parse the reports with <strong>VBS </strong>or <strong>BAT programs </strong>and other administration applications.</p>
<p class="MsoNormal">
<p class="MsoNormal"><a title="IIS Report Tool Download Link" href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;g=6&amp;i=1730" target="_blank"><strong>DOWNLOAD LINK</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/iis-optimizing-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

