<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Protecting PDF files in IIS 6 using Forms Authentication</title>
	<atom:link href="http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/</link>
	<description>It&#039;s always time to upgrade!</description>
	<lastBuildDate>Sat, 19 Nov 2011 23:30:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-2050</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Sat, 19 Nov 2011 23:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-2050</guid>
		<description>Chad, I forgot to give you more feedback and credit on this.  I definitely figured out where to put this and have been using it at work on a few projects.  Big help.  If I ever meet you in real life, I&#039;ll buy you a soda!  Here&#039;s a little note I made for myself about the whole process (you are credited): http://jcoulson.com/school/forms_auth.html.</description>
		<content:encoded><![CDATA[<p>Chad, I forgot to give you more feedback and credit on this.  I definitely figured out where to put this and have been using it at work on a few projects.  Big help.  If I ever meet you in real life, I&#8217;ll buy you a soda!  Here&#8217;s a little note I made for myself about the whole process (you are credited): <a href="http://jcoulson.com/school/forms_auth.html" rel="nofollow">http://jcoulson.com/school/forms_auth.html</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-2004</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Fri, 14 Oct 2011 21:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-2004</guid>
		<description>I never tried it on IIS7, there was never a need for it, although if you wanted to ensure your Application pool is using the Legacy/Classic mode instead of the integrated pipeline mode.

I would suggest you skip this workaround all together though and instead block access to the .pdf/content files using your .config file in the new Integrated mode, which IIS will then automatically control security on those files from your web.config without having to code for it.</description>
		<content:encoded><![CDATA[<p>I never tried it on IIS7, there was never a need for it, although if you wanted to ensure your Application pool is using the Legacy/Classic mode instead of the integrated pipeline mode.</p>
<p>I would suggest you skip this workaround all together though and instead block access to the .pdf/content files using your .config file in the new Integrated mode, which IIS will then automatically control security on those files from your web.config without having to code for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-2003</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 14 Oct 2011 20:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-2003</guid>
		<description>I don&#039;t suppose you ever got this to work on IIS 7...

Any hints?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t suppose you ever got this to work on IIS 7&#8230;</p>
<p>Any hints?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-1942</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Mon, 05 Sep 2011 07:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-1942</guid>
		<description>You want to stick that IHttpHandler class in a .cs file in your App_Code directory for the site, so it gets built into the site DLL. You could also create a seperate class library for this handler and reference that project in your website through the add reference dialog, then update the web.config entry to match that project&#039;s DLL name and any namespace you give the handler.</description>
		<content:encoded><![CDATA[<p>You want to stick that IHttpHandler class in a .cs file in your App_Code directory for the site, so it gets built into the site DLL. You could also create a seperate class library for this handler and reference that project in your website through the add reference dialog, then update the web.config entry to match that project&#8217;s DLL name and any namespace you give the handler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-1938</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Fri, 02 Sep 2011 14:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-1938</guid>
		<description>Hey, this looks like it might be the key!  I&#039;ve been trying to solve this for months.  I&#039;m not a very experienced programmer, though.  Where does that IHttpHandler go in my application?

http://www.co.frederick.va.us/dev/pdfprotector

That&#039;s an example.

Any ideas?  I&#039;m drowning.  Thanks.</description>
		<content:encoded><![CDATA[<p>Hey, this looks like it might be the key!  I&#8217;ve been trying to solve this for months.  I&#8217;m not a very experienced programmer, though.  Where does that IHttpHandler go in my application?</p>
<p><a href="http://www.co.frederick.va.us/dev/pdfprotector" rel="nofollow">http://www.co.frederick.va.us/dev/pdfprotector</a></p>
<p>That&#8217;s an example.</p>
<p>Any ideas?  I&#8217;m drowning.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taliesin</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-489</link>
		<dc:creator>Taliesin</dc:creator>
		<pubDate>Fri, 19 Mar 2010 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-489</guid>
		<description>If you want to apply authorization, for pdf files. 

Check out this handler:
http://code.google.com/p/talifun-web/wiki/RegexUrlAuthorizationModule

It provides authorization on all urls that match a regular expression. It also allows you to apply any authorization that is supported by .net web.config files.

Serving content from an http handler can be a tricky business, especially pdf files. Adobe Reader in &quot;Allow fast web view&quot; mode starts downloading a pdf and soon as it has enough bytes to display the first page it aborts the connection to the web server, and displays the first page. Then it makes a &quot;multipart/byteranges&quot; request to retrieve the rest of the document. This is what causes most download scripts to fail when serving pdf content. 

If you are looking for an http handler that will serve static files in a cached, compressed and resumable manner.

Check out
http://code.google.com/p/talifun-web/wiki/StaticFileHandler</description>
		<content:encoded><![CDATA[<p>If you want to apply authorization, for pdf files. </p>
<p>Check out this handler:<br />
<a href="http://code.google.com/p/talifun-web/wiki/RegexUrlAuthorizationModule" rel="nofollow">http://code.google.com/p/talifun-web/wiki/RegexUrlAuthorizationModule</a></p>
<p>It provides authorization on all urls that match a regular expression. It also allows you to apply any authorization that is supported by .net web.config files.</p>
<p>Serving content from an http handler can be a tricky business, especially pdf files. Adobe Reader in &#8220;Allow fast web view&#8221; mode starts downloading a pdf and soon as it has enough bytes to display the first page it aborts the connection to the web server, and displays the first page. Then it makes a &#8220;multipart/byteranges&#8221; request to retrieve the rest of the document. This is what causes most download scripts to fail when serving pdf content. </p>
<p>If you are looking for an http handler that will serve static files in a cached, compressed and resumable manner.</p>
<p>Check out<br />
<a href="http://code.google.com/p/talifun-web/wiki/StaticFileHandler" rel="nofollow">http://code.google.com/p/talifun-web/wiki/StaticFileHandler</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-260</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 15 Oct 2009 22:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-260</guid>
		<description>Great! It was very helpful.</description>
		<content:encoded><![CDATA[<p>Great! It was very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruble</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-173</link>
		<dc:creator>Ruble</dc:creator>
		<pubDate>Mon, 14 Sep 2009 17:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-173</guid>
		<description>This was very helpful for us.
Thanks to your post we could solve a big problem of some one accessing our pdf&#039;s
Thank you so very much.</description>
		<content:encoded><![CDATA[<p>This was very helpful for us.<br />
Thanks to your post we could solve a big problem of some one accessing our pdf&#8217;s<br />
Thank you so very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://www.chadscharf.com/index.php/2008/04/protecting-pdf-files-in-iis-6-using-forms-authentication/comment-page-1/#comment-84</link>
		<dc:creator>Kathy</dc:creator>
		<pubDate>Fri, 31 Jul 2009 20:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=cb52d8b4-d442-418d-a5d3-d94c4ece3c86#comment-84</guid>
		<description>Your article was fabulous, well described and easy to follow.
thanks for contributing to Tech community.

Regards,
kathy</description>
		<content:encoded><![CDATA[<p>Your article was fabulous, well described and easy to follow.<br />
thanks for contributing to Tech community.</p>
<p>Regards,<br />
kathy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

