<?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>Karl Norling &#187; Html</title>
	<atom:link href="http://blog.whatevermakesmylifeeasier.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.whatevermakesmylifeeasier.com</link>
	<description>A Swede in New York</description>
	<lastBuildDate>Sun, 14 Mar 2010 23:40:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flir security check.</title>
		<link>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/</link>
		<comments>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 03:00:10 +0000</pubDate>
		<dc:creator>karl</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[flir]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.whatevermakesmylifeeasier.com/?p=62</guid>
		<description><![CDATA[
			
				
			
		
This is the PHP snippet in the generate.php file from the FLIR.
This code will check if the request to generate the FLIR image is allowed or not.
if(false !== ALLOWED_DOMAIN &#38;&#38; $_SERVER['HTTP_REFERER'] != '') {
    $refhost = get_hostname($_SERVER['HTTP_REFERER']);
    if(substr(ALLOWED_DOMAIN, 0, 1) == '.') {
       [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F04%2F16%2Fflir-security-check%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F04%2F16%2Fflir-security-check%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is the PHP snippet in the generate.php file from the FLIR.</p>
<p>This code will check if the request to generate the FLIR image is allowed or not.</p>
<pre>if(false !== ALLOWED_DOMAIN &amp;&amp; $_SERVER['HTTP_REFERER'] != '') {
    $refhost = get_hostname($_SERVER['HTTP_REFERER']);
    if(substr(ALLOWED_DOMAIN, 0, 1) == '.') {
        if(false === strpos($refhost, substr(ALLOWED_DOMAIN, 1)))
            err('DISALLOWED_DOMAIN');
    }else {
        if($refhost != ALLOWED_DOMAIN)
            err('DISALLOWED_DOMAIN');
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
