<?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>LGR Internet Solutions &#187; Apache</title>
	<atom:link href="http://www.lgr.ca/blog/category/web-programming/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lgr.ca</link>
	<description>Bringing the Internet into Focus!</description>
	<lastBuildDate>Wed, 07 Jul 2010 20:18:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Htaccess Tools</title>
		<link>http://www.lgr.ca/blog/2009/12/htaccess-tools.html</link>
		<comments>http://www.lgr.ca/blog/2009/12/htaccess-tools.html#comments</comments>
		<pubDate>Wed, 09 Dec 2009 02:16:14 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/?p=1727</guid>
		<description><![CDATA[If you want to save some time editing your .htaccess file check out Htaccess Tools. It has some great .htaccess generators to help save you some time. Generators include: Htpasswd Generator Htaccess Authentication Hotlink protection of images Block IPs with .htaccess Block hitbots with .htaccess Error Document Redirection by Language While you can do all [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to save some time editing your .htaccess file check out <a href="http://www.htaccesstools.com/">Htaccess Tools</a>. It has some great .htaccess generators to help save you some time. Generators include:</p>
<ul>
<li>Htpasswd Generator</li>
<li>Htaccess Authentication</li>
<li>Hotlink protection of images</li>
<li>Block IPs with .htaccess</li>
<li>Block hitbots with .htaccess</li>
<li>Error Document</li>
<li>Redirection by Language</li>
</ul>
<p>While you can do all of these things without using an online generator, I have found that for some people using an online generator like the ones available here enables people to manage their websites more. Perhaps one of the most useful generators available on the site is the hotlink image protection. By using hotlink image protection you will be able to save on your bandwidth and prevent other websites using your images directly.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2008/01/sketch-generators.html" rel="bookmark" title="January 15, 2008">Sketch Generators</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html" rel="bookmark" title="October 30, 2007">Use .htaccess to Block a Country</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/online-photo-editing-snipshot.html" rel="bookmark" title="March 9, 2007">Online Photo Editing &#8211; Snipshot</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/100-web-20-online-generators.html" rel="bookmark" title="October 9, 2007">100+ Web 2.0 Online Generators</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/11/splashup-online-graphic-editor.html" rel="bookmark" title="November 6, 2007">Splashup &#8211; Online Graphic Editor</a></li>
<li><a href="http://www.lgr.ca/blog/2008/08/background-pattern-generator.html" rel="bookmark" title="August 27, 2008">Background Pattern Generator</a></li>
<li><a href="http://www.lgr.ca/blog/2008/10/smush-it.html" rel="bookmark" title="October 2, 2008">Smush It!</a></li>
<li><a href="http://www.lgr.ca/blog/2008/02/joomla-15-demo.html" rel="bookmark" title="February 19, 2008">Joomla 1.5 Demo</a></li>
</ul>
<p><!-- Similar Posts took 4.996 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2009/12/htaccess-tools.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trackback Spam on the Rise</title>
		<link>http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html</link>
		<comments>http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html#comments</comments>
		<pubDate>Thu, 20 Dec 2007 14:30:45 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html</guid>
		<description><![CDATA[Anyone else notice a rise in trackback spam recently or is it just me they feel like picking on? The last few days I have been getting upwards of 50 trackback spams. Thanks to Akismet I have not seen any of them go through, but I decided that I was tired of deleting it and [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone else notice a rise in trackback spam recently or is it just me they feel like picking on? The last few days I have been getting upwards of 50 trackback spams. Thanks to Akismet I have not seen any of them go through, but I decided that I was tired of deleting it and letting the spammers get access to my server resources. A quick look in my logs showed that the spam was not coming from the same IP so <a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html">banning the IP or IP range</a> would be pretty much useless.<img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='blank1.gif' /></p>
<p>Here are some entries from my log file:</p>
<blockquote><p>
Host: 216.104.34.250<br />
/2007/03/text-link-ads.html/trackback<br />
	Http Code: 200 	Date: Dec 18 20:24:03 	Http Version: HTTP/1.0 	Size in Bytes: 78<br />
	Referer: -<br />
	Agent: TrackBack/1.6</p>
<p>Host: 91.186.21.51<br />
/2007/02/blogger-label-list-for-ftp-published.html/trackback<br />
	Http Code: 200 	Date: Dec 18 20:22:38 	Http Version: HTTP/1.0 	Size in Bytes: 78<br />
	Referer: -<br />
	Agent: TrackBack/1.6</p>
<p>Host: 66.90.104.22<br />
/2007/02/has-digg-jumped-the-shark.html/trackback<br />
	Http Code: 200 	Date: Dec 18 20:20:28 	Http Version: HTTP/1.0 	Size in Bytes: 615<br />
	Referer: -<br />
	Agent: TrackBack/1.6
</p></blockquote>
<p>Notice anything in common? The User Agent strings are all the same: Agent: TrackBack/1.6.</p>
<p>A quick Yahoo search and I turned up this post <a href="http://blog.brontobytes.com/18-spiders-and-bots-htaccess-ban-list">Spiders and Bots .htaccess Ban List</a>, which looked like just what I needed. There are tons of bad bots and user agents out there, and this list is only a small number of them I am sure. I really only want to block the Trackback user agent and the libwww-perl user agent since I have been getting several hacking attempts from a libwww-perl user agent.<img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='blank1.gif' /></p>
<p>There are several ways I could have done this but I thought I would try adding this first and see how it goes.</p>
<p><code><br />
#block bad bots including trackback bot<br />
SetEnvIfNoCase User-Agent &quot;^libwww-perl&quot; bad_bot<br />
SetEnvIfNoCase User-Agent &quot;^TrackBack&quot; bad_bot</p>
<p>&lt;Limit GET POST&gt;<br />
order allow,deny<br />
allow from all<br />
deny from env=bad_bot<br />
&lt;/Limit&gt;<br />
</code></p>
<p>I may have to edit the Trackback bot line since I did not include the version number, but I will leave it like that for a day and see what shows up in my log files. I will update this post if/when I do edit the Trackback bot line.</p>
<p>Thanks to <a href="http://blog.brontobytes.com/">Brontobytes Blog</a> for the .htaccess code. It saved me lots of time.</p>
<p>Hope this helps someone that is having problems with automated trackback spam.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2008/09/comment-spam-be-gone.html" rel="bookmark" title="September 8, 2008">Comment Spam Be Gone</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/prevent-automated-comment-spam.html" rel="bookmark" title="January 30, 2008">Keep the Comment Bots at Bay</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/domain-name-giveaway.html" rel="bookmark" title="October 15, 2007">Domain Name Giveaway!</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html" rel="bookmark" title="October 14, 2007">Using .htaccess to Block Comment Spam</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/mybloglog.html" rel="bookmark" title="February 9, 2007">MyBlogLog</a></li>
<li><a href="http://www.lgr.ca/blog/2007/05/speed-up-your-website-with-gzip.html" rel="bookmark" title="May 9, 2007">Speed Up Your Website with GZIP Compression</a></li>
<li><a href="http://www.lgr.ca/blog/2009/05/comment-policy.html" rel="bookmark" title="May 14, 2009">Comment Policy</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/5-wordpress-search-engine-essentials.html" rel="bookmark" title="January 2, 2008">5 WordPress Search Engine Essentials</a></li>
<li><a href="http://www.lgr.ca/blog/2007/09/javascript-validation.html" rel="bookmark" title="September 13, 2007">Javascript Validation</a></li>
<li><a href="http://www.lgr.ca/blog/2009/03/the-saskatchewan-valley-news-launches.html" rel="bookmark" title="March 18, 2009">The Saskatchewan Valley News Launches</a></li>
</ul>
<p><!-- Similar Posts took 5.100 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use .htaccess to Block a Country</title>
		<link>http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html</link>
		<comments>http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html#comments</comments>
		<pubDate>Tue, 30 Oct 2007 16:30:21 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html</guid>
		<description><![CDATA[There are occasions when you need to do some serious blocking on your website, and you have to block an entire country. I have helped people in the past block countries like China from accessing their website. While there can be many reasons why you would want to block en entire country from accessing your [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='blank1.gif' />There are occasions when you need to do some serious blocking on your website, and you have to block an entire country. I have helped people in the past block countries like China from accessing their website. While there can be many reasons why you would want to block en entire country from accessing your website it used to be a bit of a chore to create the .htaccess file to do it. Well not anymore, check out <a href="http://www.blockacountry.com">block a country</a> and with a couple of clicks you can generate an .htaccess file that will block the countries of your choice.</p>
<p>I have been playing with some screencasting software so I took a short screencast of how to use the site. Watch closely or you might miss it. If you feel like blocking off all of us friendly Canadians it only takes you a few seconds now.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/4ngyA6ty_SY&#038;rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/4ngyA6ty_SY&#038;rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>After you either copy the information or download the generated .htaccess file all that is left to do is either upload it to your website or integrate it into your existing .htaccess file. It makes blocking a whole country very easy to do. I will definately use this tool the next time I get a call/email to block a country from access a website.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2009/12/htaccess-tools.html" rel="bookmark" title="December 8, 2009">Htaccess Tools</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/process-html-as-php.html" rel="bookmark" title="February 7, 2007">Process .html as PHP</a></li>
<li><a href="http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html" rel="bookmark" title="December 20, 2007">Trackback Spam on the Rise</a></li>
<li><a href="http://www.lgr.ca/blog/2008/06/include-include_once-require-require_once.html" rel="bookmark" title="June 2, 2008">Include, Include_once, Require, Require_once</a></li>
<li><a href="http://www.lgr.ca/blog/2008/02/wordpress-233-release.html" rel="bookmark" title="February 5, 2008">WordPress 2.3.3 Release</a></li>
<li><a href="http://www.lgr.ca/blog/2007/06/canada-helps.html" rel="bookmark" title="June 20, 2007">Canada Helps</a></li>
<li><a href="http://www.lgr.ca/blog/2008/04/hp-upline-pulls-the-plug-on-canada.html" rel="bookmark" title="April 19, 2008">HP Upline Pulls the Plug on Canada</a></li>
<li><a href="http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html" rel="bookmark" title="August 13, 2007">Whitehat SEO Tips for Bloggers</a></li>
</ul>
<p><!-- Similar Posts took 5.239 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using .htaccess to Block Comment Spam</title>
		<link>http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html</link>
		<comments>http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html#comments</comments>
		<pubDate>Sun, 14 Oct 2007 20:30:22 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html</guid>
		<description><![CDATA[When I checked my blog on Saturday I had a large amount of comment spam that had been caught by Akismet, larger than usual for my little place on the web. Browsing through it briefly, I quickly noticed a common thread, they were all from the same IP address. I have better things to do [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='' />When I checked my blog on Saturday I had a large amount of comment spam that had been caught by Akismet, larger than usual for my little place on the web. Browsing through it briefly, I quickly noticed a common thread, they were all from the same IP address. I have better things to do on a Saturday (and actually most days) than wade through a bunch of comment spam, so I quickly went and added another new line to my .htaccess file.</p>
<p><code>deny from 195.225.177.48</code></p>
<p>I then deleted all of the comment spam and went on my merry way not thinking much about it until I went a checked my error log here today.</p>
<p><code><br />
[Sun Oct 14 13:40:17 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/index.php<br />
[Sun Oct 14 13:40:17 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/wp-comments-post.php<br />
[Sun Oct 14 12:55:59 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/index.php<br />
[Sun Oct 14 12:55:59 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/wp-comments-post.php<br />
[Sun Oct 14 12:45:11 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/services/order_form.php<br />
[Sun Oct 14 12:13:27 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/index.php<br />
[Sun Oct 14 12:13:27 2007] [error] [client 195.225.177.48] client denied by server configuration: /home/*****/public_html/blog/wp-comments-post.php<br />
</code></p>
<p>It goes on and on actually. I had an average of 14 hits an hour from this IP address. Image how much comment spam I would have had if I had not blocked the IP address? Now I was also curious as to who might be so interested in spamming the daylights out of my blog. A quick <a href="http://www.dnsstuff.com/tools/whois.ch?ip=195.225.177.48" rel="nofollow">IPWHOIS on DNSStuff.com</a>. You can take a look at the IPWHOIS information yourself, but what I found most interesting is they have a complete IP address range 195.225.176.0 &#8211; 195.225.179.255. Now I only blocked a single IP address, and I hope that it is just one bad user on their network, but the minute I see another 195.225.*.* address in my comment spam the whole IP address range will be blocked using:</p>
<p><code>deny from 195.225</code></p>
<p>I sent an email to the email address on record for the host, but it is my experience that it will either never be read, simply ignored or will dissappear into :blackhole:.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2009/05/comment-policy.html" rel="bookmark" title="May 14, 2009">Comment Policy</a></li>
<li><a href="http://www.lgr.ca/blog/2008/09/comment-spam-be-gone.html" rel="bookmark" title="September 8, 2008">Comment Spam Be Gone</a></li>
<li><a href="http://www.lgr.ca/blog/2008/10/dumb-link-builder-comment.html" rel="bookmark" title="October 20, 2008">Dumb Link Builder Comment</a></li>
<li><a href="http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html" rel="bookmark" title="August 13, 2007">Whitehat SEO Tips for Bloggers</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/prevent-automated-comment-spam.html" rel="bookmark" title="January 30, 2008">Keep the Comment Bots at Bay</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper</a></li>
<li><a href="http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html" rel="bookmark" title="December 20, 2007">Trackback Spam on the Rise</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2008/04/peep-a-server.html" rel="bookmark" title="April 8, 2008">Peep a Server</a></li>
<li><a href="http://www.lgr.ca/blog/2007/09/are-spammers-stupid.html" rel="bookmark" title="September 27, 2007">Are Spammers Stupid?</a></li>
</ul>
<p><!-- Similar Posts took 4.885 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Custom 404 Page using .htaccess</title>
		<link>http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html</link>
		<comments>http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html#comments</comments>
		<pubDate>Fri, 12 Oct 2007 20:30:32 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html</guid>
		<description><![CDATA[Mike posted a good question on my earlier post on how to Disable Indexes using .htaccess. Is there a way to specify what page to redirect to if there is a 404? Currently it’s displaying one created by my web hosting company, which I would prefer to get rid of. If you want to display [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='' />Mike posted a good question on my earlier post on how to <a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html">Disable Indexes using .htaccess</a>.</p>
<blockquote><p>Is there a way to specify what page to redirect to if there is a 404? Currently it’s displaying one created by my web hosting company, which I would prefer to get rid of.</p></blockquote>
<p>If you want to display your own 404 error page with something other than the standard 404 Not Found Page that is returned by your hosting company all you need to do is add one line to the .htccess file in the root of your web server.</p>
<p><code>ErrorDocument 404 /404.html</code></p>
<p>Now when someone types the wrong filename or is trying to browse a folder and you have turned off indexes to the page that will be returned will be your custom 404.html page. It does not have to be just an html page either. You could make it return a php page that has code to email you when someone has triggered a 404 error telling you what page they were looking for, other interesting information to help them find what they might be looking for or maybe something that is just fun. You can do any number of things with your own 404 page.</p>
<p>If you are a blogger and are using WordPress you should take look at this great page &#8220;<a href="http://codex.wordpress.org/Creating_an_Error_404_Page">Creating an Error 404 Page</a>&#8221; on WordPress.org.</p>
<p>There are other options as well. The one I have on this blog right now is not very exciting, since the home page is simply returned as the 404 page.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/wordpress-25-in-march.html" rel="bookmark" title="January 4, 2008">WordPress 2.5 in March</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/top-blogs-failing-at-error-pages.html" rel="bookmark" title="January 21, 2008">Top Blogs Failing at Error Pages</a></li>
<li><a href="http://www.lgr.ca/blog/2007/04/scribd.html" rel="bookmark" title="April 11, 2007">Scribd</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/hijaxing.html" rel="bookmark" title="February 22, 2007">Hijaxing</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html" rel="bookmark" title="October 14, 2007">Using .htaccess to Block Comment Spam</a></li>
<li><a href="http://www.lgr.ca/blog/2007/05/title-tags-a-search-engine-optimization-cornerstone.html" rel="bookmark" title="May 9, 2007">Title Tags &#8211; A Search Engine Optimization Cornerstone</a></li>
<li><a href="http://www.lgr.ca/blog/2008/09/themes-seo-and-consulting-in-one-day.html" rel="bookmark" title="September 17, 2008">Themes, SEO and Consulting in One Day</a></li>
<li><a href="http://www.lgr.ca/blog/2009/01/feedburner-status-502-error.html" rel="bookmark" title="January 26, 2009">FeedBurner Status and 502 Error</a></li>
<li><a href="http://www.lgr.ca/blog/2009/01/visual-html-jokes.html" rel="bookmark" title="January 28, 2009">Visual HTML Jokes</a></li>
</ul>
<p><!-- Similar Posts took 4.862 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSS Feed Scraper</title>
		<link>http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html</link>
		<comments>http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html#comments</comments>
		<pubDate>Mon, 08 Oct 2007 14:30:22 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[scrapper]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/10/rss-feed-scrapper.html</guid>
		<description><![CDATA[It appears that I have a fan, ok maybe not a fan. I have a website scraper that is just not smart enough to actually read the content they are scraping so they are getting my nice RSS feed additional content and posting it in the site. They have many of my posts and the [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.lgr.ca/wp-content/uploads/2007/10/blank1.gif' alt='' />It appears that I have a fan, ok maybe not a fan. I have a website scraper that is just not smart enough to actually read the content they are scraping so they are getting my nice RSS feed additional content and posting it in the site. They have many of my posts and the majority of them have this at the bottom of them:<br />
<blockquote>Copyright © LGR Webmaster Blog. This feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement.</p>
<p>Visit the LGR Webmaster Blog for more great content.</p></blockquote>
<p>You would think that would make it pretty obvious that they stole the content from somewhere. I have sent an email to both the email address on the whois record for the domain and the email address I could find for the web host for their IP address in hopes of having the content removed from the site. Considering the email I sent to the address on the whois record bounced for the domain, I don&#8217;t know if I will have much luck.</p>
<p>After the email to the address on the whois bounced I thought I would have a little fun with this scrapper site. If I can&#8217;t get the content removed I can at least make sure people know that the content is stolen, just in case they don&#8217;t read the copyright notice at the bottom of the post. I post the odd image into my posts, but from now on I will make sure there is always an image in the post, even if it is just a blank image that you can&#8217;t see in the post itself. This image is important. It is placed in the WordPress uploads folder, but I suppose it could be placed anywhere on your website. Inside of the WordPress uploads folder I have added another .htaccess file with the following:<code></p>
<p>ErrorDocument 403 /images/403.gif</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} websiteIwantBlocked\.com<br />
RewriteRule .* - [F]</code></p>
<p>I changed the website name obviously, but you should get the idea. This stops sending all the images from the WordPress uploads folder to any request coming with the referrer of websiteIwantBlocked.com and returns the 403 error document. Because these are all images that should be sent out from this folder I have created a custom error document that is an image for this folder and placed it in another folder (images). Now when an image is requested from the websiteIwantBlocked.com instead of the server sending out the image I have in the post it returns a 403 error and my custom error image, which by the way looks like this:<br />
<center><img src='http://www.lgr.ca/blog/images/403.gif' alt='403' /></center></p>
<p>Now when someone visits the website that scraped my feed that I have listed they get a nice warning that the site has stolen bandwidth, content or both. It only does this for the sites I have listed so feed readers should not be affected.</p>
<p>There are other things I have done as well. I have added the website IP address into the blogs root .htaccess file and denied access, in case the website was scraping the feed directly. It looks like this if you are wondering:<br />
<code></p>
<p>deny from IP ADDRESS YOU WANT BLOCKED</p>
<p></code></p>
<p>I use FeedBurner for my feeds, and usually they list uncommon uses of feeds, but there has been no mention of this one. I did notice that one of the bots is WordPress so it is possible that the site is scraping the FeedBurner feed and not directly from the site. One of the features I wish FeedBurner had was the ability to block individual IP addresses from accessing a feed. That would make it so much easier since every website has an IP address.</p>
<p>I guess we will see if I get an email back from the web host. I am not holding my breath. I think I might have to make due with this, or move the feed away from FeedBurner so I can block individual IP addresses.</p>
<p>How do other people handle very persistent RSS feed scrapers?<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper-update.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper &#8211; Update</a></li>
<li><a href="http://www.lgr.ca/blog/2009/01/feedburner-status-502-error.html" rel="bookmark" title="January 26, 2009">FeedBurner Status and 502 Error</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/feedburner-feedsmith-plugin-security-update.html" rel="bookmark" title="October 6, 2007">FeedBurner FeedSmith Plugin Security Update</a></li>
<li><a href="http://www.lgr.ca/blog/2009/07/feedburner-email-subjects-and-friendfeed-stupidity.html" rel="bookmark" title="July 3, 2009">Feedburner &#8211; Email Subjects and Friendfeed Stupidity</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html" rel="bookmark" title="October 12, 2007">Custom 404 Page using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2008/10/smush-it.html" rel="bookmark" title="October 2, 2008">Smush It!</a></li>
<li><a href="http://www.lgr.ca/blog/2009/07/wordpress-weekend-project-%e2%80%93-rss-includes-pages.html" rel="bookmark" title="July 26, 2009">WordPress Weekend Project – RSS Includes Pages</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html" rel="bookmark" title="October 14, 2007">Using .htaccess to Block Comment Spam</a></li>
<li><a href="http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html" rel="bookmark" title="August 13, 2007">Whitehat SEO Tips for Bloggers</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/email-promotion-still-alive-and-kicking.html" rel="bookmark" title="March 10, 2007">Email Promotion Still Alive and Kicking</a></li>
</ul>
<p><!-- Similar Posts took 5.056 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Disable Indexes using .htaccess</title>
		<link>http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html</link>
		<comments>http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html#comments</comments>
		<pubDate>Fri, 05 Oct 2007 14:30:30 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html</guid>
		<description><![CDATA[I have several personal websites on a shared server where indexes are turned on by default in Apache. That is simply annoying, because I hate having stray empty index.html files sitting all over the place. I suppose I could just leave the indexes on but I dislike the idea of anyone in the world being [...]]]></description>
			<content:encoded><![CDATA[<p>I have several personal websites on a shared server where indexes are turned on by default in Apache. That is simply annoying, because I hate having stray empty index.html files sitting all over the place. I suppose I could just leave the indexes on but I dislike the idea of anyone in the world being able to just peek into folders, even if it is unlikely they will find anything very interesting, you just never know. They might have some hole into the system. Anyways, if you are like me the easiest way of getting rid of indexes is using one line in an .htaccess file in the root folder:</p>
<p>Options -Indexes</p>
<p>Now if a folder does not have an index.html file the server will respond with a 404 file not found error and send people your error page. Amazing how that one simple line can save time and keep you from having to go and create index.html files in all those folders you don&#8217;t want people poking around in.</p>
<p>If you are still wondering why you would want to do this take a read through this post titled &#8220;<a href="http://www.earnersblog.com/find-anything-online/">Find almost any kind of Ebook or File Online</a>&#8221; over at Earners Blog. One line in the .htaccess file stops that from happening.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html" rel="bookmark" title="October 12, 2007">Custom 404 Page using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/process-html-as-php.html" rel="bookmark" title="February 7, 2007">Process .html as PHP</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/5-wordpress-security-essentials.html" rel="bookmark" title="January 9, 2008">5 WordPress Security Essentials</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/tell-the-robots-where-not-to-go.html" rel="bookmark" title="March 30, 2007">Tell the Robots Where Not to Go</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/blogger-label-list-for-ftp-published-blogs.html" rel="bookmark" title="February 21, 2007">Blogger Label List for FTP Published Blogs</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html" rel="bookmark" title="October 14, 2007">Using .htaccess to Block Comment Spam</a></li>
<li><a href="http://www.lgr.ca/blog/2009/12/htaccess-tools.html" rel="bookmark" title="December 8, 2009">Htaccess Tools</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/www-or-not-that-is-the-question.html" rel="bookmark" title="February 20, 2007">WWW or Not: That is the Question?</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html" rel="bookmark" title="October 30, 2007">Use .htaccess to Block a Country</a></li>
</ul>
<p><!-- Similar Posts took 4.842 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Whitehat SEO Tips for Bloggers</title>
		<link>http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html</link>
		<comments>http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html#comments</comments>
		<pubDate>Mon, 13 Aug 2007 17:00:46 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.blog2.lgr.ca/2007/08/whitehat-seo-tips-for-bloggers.html</guid>
		<description><![CDATA[This video has Matt Cutt&#8217;s doing a presentation at WordCamp 2007 with search engine optimization tips for bloggers. It is a long video, just over 1 hour in length so you might want to just put the headphones on and let it play while you are working on something else. There is a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>This video has <a href="http://www.mattcutts.com/blog/whitehat-seo-tips-for-bloggers/">Matt Cutt&#8217;s</a> doing a presentation at WordCamp 2007 with search engine optimization tips for bloggers.</p>
<p>It is a long video, just over 1 hour in length so you might want to just put the headphones on and let it play while you are working on something else.</p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="370" id="viddler"><param name="movie" value="http://www.viddler.com/player/34fc548d/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://www.viddler.com/player/34fc548d/" width="437" height="370" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" name="viddler" ></embed></object></p>
<p>There is a lot of good, basic information in the video that will help all people that run blogs and websites. Aside from the basic information about SEO, Matt encourages people to be creative to find ways to get links. He also has a great security tip using an .htaccess file to protect the WordPress admin folder. Make sure you change the IP address of your home computer and your work computer.</p>
<blockquote><p>Put this .htaccess in /wp-admin/ (not in your root directory!</p>
<p>AuthUserFile /dev/null<br />
AuthGroupFile /dev/null<br />
AuthName &#8220;Access Control&#8221;<br />
AuthType Basic</p>
<limit GET>
order deny,allow<br />
deny from all<br />
# whitelist home IP address<br />
allow from 123.45.67.89<br />
# whitelist work IP address<br />
allow from 89.67.45.123
</limit>
Read more at: <a href="http://www.reubenyau.com/protecting-the-wordpress-wp-admin-folder/">http://www.reubenyau.com/protecting-the-wordpress-wp-admin-folder/</a>
</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/10/using-htaccess-to-block-comment-spam.html" rel="bookmark" title="October 14, 2007">Using .htaccess to Block Comment Spam</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/use-htaccess-to-block-a-country.html" rel="bookmark" title="October 30, 2007">Use .htaccess to Block a Country</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/5-wordpress-security-essentials.html" rel="bookmark" title="January 9, 2008">5 WordPress Security Essentials</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/rss-feed-scraper.html" rel="bookmark" title="October 8, 2007">RSS Feed Scraper</a></li>
<li><a href="http://www.lgr.ca/blog/2009/12/htaccess-tools.html" rel="bookmark" title="December 8, 2009">Htaccess Tools</a></li>
<li><a href="http://www.lgr.ca/blog/2009/11/my-ip-address.html" rel="bookmark" title="November 16, 2009">What is My IP Address</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/12/trackback-spam-on-the-rise.html" rel="bookmark" title="December 20, 2007">Trackback Spam on the Rise</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/process-html-as-php.html" rel="bookmark" title="February 7, 2007">Process .html as PHP</a></li>
<li><a href="http://www.lgr.ca/blog/2008/03/software-for-small-business-non-profits.html" rel="bookmark" title="March 4, 2008">Software for Small Business/Non-Profits</a></li>
</ul>
<p><!-- Similar Posts took 4.817 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/08/whitehat-seo-tips-for-bloggers.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WWW or Not: That is the Question?</title>
		<link>http://www.lgr.ca/blog/2007/02/www-or-not-that-is-the-question.html</link>
		<comments>http://www.lgr.ca/blog/2007/02/www-or-not-that-is-the-question.html#comments</comments>
		<pubDate>Tue, 20 Feb 2007 05:10:00 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.blog2.lgr.ca/2007/02/www-or-not-that-is-the-question.html</guid>
		<description><![CDATA[Most people don&#8217;t realize that there website can found by using both www.mywebsite.com and mywebsite.com. Why is this important? The search engines will index both the www site and the non-www site, providing the search engine an identical set of pages which could lead to a penalty. While most search engines will eventually sort this [...]]]></description>
			<content:encoded><![CDATA[<p>Most people don&#8217;t realize that there website can found by using both www.mywebsite.com and mywebsite.com. Why is this important? The search engines will index both the www site and the non-www site, providing the search engine an identical set of pages which could lead to a penalty. While most search engines will eventually sort this out why wait for them to do it. Don&#8217;t give them a choice in what they index.</p>
<p>Create a .htaccess file and place it on the web root folder. Include the following lines of code:<br />RewriteEngine On<br />RewriteCond %{HTTP_HOST} ^mywebsite\.com$ [NC]<br />RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [R=301,L]</p>
<p>This will redirect all requests for pages at mywebsite.com to www.mywebsite.com giving only one copy of your website for the search engines to index. Give it a try on this blog. All requests to <a href="http://blog.lgr.ca/">blog.lgr.ca</a> are redirected to www.blog.lgr.ca.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/03/tell-the-robots-where-not-to-go.html" rel="bookmark" title="March 30, 2007">Tell the Robots Where Not to Go</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/html-versus-php-for-seo.html" rel="bookmark" title="February 28, 2007">.html Versus .php for SEO</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/web-page-titles-keywords-and-descriptions.html" rel="bookmark" title="February 7, 2007">Web Page Titles, Keywords and Descriptions</a></li>
<li><a href="http://www.lgr.ca/blog/2008/01/5-wordpress-search-engine-essentials.html" rel="bookmark" title="January 2, 2008">5 WordPress Search Engine Essentials</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/simple-seo-for-everyone.html" rel="bookmark" title="February 16, 2007">Simple SEO for Everyone</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/webmaster-time-savers-external-style-sheet.html" rel="bookmark" title="March 15, 2007">Webmaster Time Savers &#8211; External Style Sheet</a></li>
<li><a href="http://www.lgr.ca/blog/2008/06/include-include_once-require-require_once.html" rel="bookmark" title="June 2, 2008">Include, Include_once, Require, Require_once</a></li>
<li><a href="http://www.lgr.ca/blog/2007/12/making-search-social.html" rel="bookmark" title="December 28, 2007">Making Search Social</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/make-your-wordpress-blog-search-engine-friendly.html" rel="bookmark" title="March 23, 2007">Make Your WordPress Blog Search Engine Friendly</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/create-your-own-search-engine.html" rel="bookmark" title="March 22, 2007">Create Your Own Search Engine</a></li>
</ul>
<p><!-- Similar Posts took 4.820 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/02/www-or-not-that-is-the-question.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Process .html as PHP</title>
		<link>http://www.lgr.ca/blog/2007/02/process-html-as-php.html</link>
		<comments>http://www.lgr.ca/blog/2007/02/process-html-as-php.html#comments</comments>
		<pubDate>Wed, 07 Feb 2007 14:00:00 +0000</pubDate>
		<dc:creator>LGR</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.blog2.lgr.ca/2007/02/process-html-as-php.html</guid>
		<description><![CDATA[Hanging out at web master forums I am amazed at the number of times I come across posts asking how to process .html files as PHP. Often the question is being asked because they want to start using php to include parts of their template instead of creating static .html files. Well here is a [...]]]></description>
			<content:encoded><![CDATA[<p>Hanging out at web master forums I am amazed at the number of times I come across posts asking how to process .html files as PHP. Often the question is being asked because they want to start using php to include parts of their template instead of creating static .html files. Well here is a little piece of code that has saved me countless hours, especially when moving a static .html files site to a dynamic PHP site. </p>
<p>To setup a Linux server running Apache web server to process .html (.htm) files as PHP. create an .htaccess file in the root folder of your website and add these lines to the .htaccess file:</p>
<p>AddType application/x-httpd-php .htm<br />AddType application/x-httpd-php .html</p>
<p>As long as your server has been told to process .htaccess files this will tell the Apache web server to process all .htm and .html files now as php files. This now allows you to include other php files, use variables and all kinds of PHP programming on your old static .html files.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.lgr.ca/blog/2007/10/disable-indexes-using-htaccess.html" rel="bookmark" title="October 5, 2007">Disable Indexes using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/blogger-label-list-for-ftp-published-blogs.html" rel="bookmark" title="February 21, 2007">Blogger Label List for FTP Published Blogs</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/webmaster-time-savers-using-includes.html" rel="bookmark" title="March 21, 2007">Webmaster Time Savers &#8211; Using Includes</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/html-versus-php-for-seo.html" rel="bookmark" title="February 28, 2007">.html Versus .php for SEO</a></li>
<li><a href="http://www.lgr.ca/blog/2008/11/wordpress-redirection.html" rel="bookmark" title="November 12, 2008">Use Redirections to Help Users and Search Engines</a></li>
<li><a href="http://www.lgr.ca/blog/2007/10/custom-404-page-using-htaccess.html" rel="bookmark" title="October 12, 2007">Custom 404 Page using .htaccess</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/webmaster-time-savers-external-javascript.html" rel="bookmark" title="March 16, 2007">Webmaster Time Savers &#8211; External Javascript</a></li>
<li><a href="http://www.lgr.ca/blog/2008/06/include-include_once-require-require_once.html" rel="bookmark" title="June 2, 2008">Include, Include_once, Require, Require_once</a></li>
<li><a href="http://www.lgr.ca/blog/2007/02/www-or-not-that-is-the-question.html" rel="bookmark" title="February 20, 2007">WWW or Not: That is the Question?</a></li>
<li><a href="http://www.lgr.ca/blog/2007/03/tell-the-robots-where-not-to-go.html" rel="bookmark" title="March 30, 2007">Tell the Robots Where Not to Go</a></li>
</ul>
<p><!-- Similar Posts took 4.878 ms --></p>
        <hr /><br />
<p>Thank you for subscribing to the LGR Internet Solutions blog!<br />
<hr /><br />
<p>Copyright &copy; LGR Internet Solutions. This feed is for personal non-commercial use only.</p><br />
<p>Visit <a target="_blank" href="http://www.lgr.ca/">LGR Internet Solutions</a>.</p><br />
      ]]></content:encoded>
			<wfw:commentRss>http://www.lgr.ca/blog/2007/02/process-html-as-php.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
