 
    
<?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>linking Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/linking/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/linking/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Fri, 06 Dec 2013 22:01:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>How to Prevent People from Displaying Your Content on Their Web Pages Inside of a Frame</title>
		<link>https://complete-concrete-concise.com/web-tools/how-to-prevent-people-from-displaying-your-content-on-their-web-pages-inside-of-a-frame/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Fri, 06 Dec 2013 22:01:58 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[clickjacking]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[framebusting]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[linking]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[prevent]]></category>
		<category><![CDATA[theft]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=3055</guid>

					<description><![CDATA[<p>Tired of having your bandwidth and content siphoned off by other websites? </p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-prevent-people-from-displaying-your-content-on-their-web-pages-inside-of-a-frame/">How to Prevent People from Displaying Your Content on Their Web Pages Inside of a Frame</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This technique shows how to prevent a web site from displaying your content inside of a frame on their web page.</p>
<p>It looks something like this:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/12/in-frame-1-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/12/in-frame-1.png" alt="" border="0" class="centered"/></a></p>
<p>The section shaded in green is my content being displaying inside someone else&#8217;s web site. This is done by putting my content inside a <code>&lt;frame&gt;</code> or <code>&lt;iframe&gt;</code> tag.</p>
<div class="c2">
<p>If you are looking on how to deal with people who have copy and pasted your content on their web site, then see <a href="//complete-concrete-concise.com/blog/how-to-deal-with-content-theft">this article</a>.</p>
</div>
<p>This is easy to prevent, but it requires editing your <code>.htaccess</code> file.</p>
</div>
<h1>Why is this a problem?</h1>
<p>First, someone else is using your hard work this means a potential loss of traffic to your site.</p>
<div class="c1">
<p>I say &#8220;potential loss&#8221; of traffic because my experience is that these are usually very small and insignificant sites and they are not really taking away any traffic.</p>
</div>
<p>Second, someone can be benefitting from your work if they run ads on their site.</p>
<p>Third, it dilutes your content: you created it, you should keep control over it.</p>
<p>Finally, some sites doing this can be &#8220;clickjacking&#8221; using your site and content. Essentially, they use your content to drive traffic (or force downloads) by putting up invisible buttons. This type of behaviour can tarnish your web site&#8217;s reputation.</p>
<h1>Preventing Framing</h1>
<p><strong>1) Open</strong> your <code>.htaccess</code> file for editing.</p>
<div class="c1">
<p>Instructions for opening and editing <code>.htaccess</code> from <u>cPanel</u> can be found <a href="//complete-concrete-concise.com/web-tools/how-to-edit-htaccess-in-cpanel">here</a>.</p>
</div>
<p><strong>2) Add</strong> <u>one</u> of the following lines:</p>
<pre><code>Header append X-FRAME-OPTIONS "DENY"</code></pre>
<p>or</p>
<pre><code>Header append X-FRAME-OPTIONS "SAMEORIGIN"</code></pre>
<div class="c1">
<h3>How it Works</h3>
<p>Each line results in some additional information being sent with your web page. This information tells any compliant browser (and they should all be compliant now) how to deal with content inside a frame.</p>
<p><p>If it is &#8220;DENY&#8221;, then the browser will refuse to load the content into the frame.</p>
<p>If it is &#8220;SAMEORIGIN&#8221;, then the browser will only load content into the frame if the page with the frame and the page loaded into the frame are both on the same web site.</p>
<p>For complete details on this see <a href="http://tools.ietf.org/html/rfc7034">RFC 7034</a> (<strong>note:</strong> this is an external link). It also explains the option &#8220;ALLOW-FROM&#8221;.</p>
</div>
<div class="c3">
<p>Unless you use frames on your site, it is best to go with the first line.</p>
</div>
<p><strong>3) Save</strong> the <code>.htaccess</code> file.</p>
<h1>Other Options</h1>
<p>A commonly promoted option is something called a &#8220;Framebuster&#8221;. This is a piece of javascript code that tries to force your web page out of the frame. Unfortunately, it can be defeated if (1) the user has javascript turned off, or (2) the web site framing your content runs anti-framebuster code. You can read more <a href="http://en.wikipedia.org/wiki/Framekiller">here</a> (<strong>note:</strong> this is an external site).</p>
<p><p>The other common option is to add code to <code>.htaccess</code> to have the rewrite engine reload the page from the correct URL. I tried this technique first, but it didn&#8217;t work for me. The page I got this from is <a href="http://www.delphifaq.com/faq/web_publishing/f944.shtml">here</a> (<strong>note:</strong> this is an external site).</p>

<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-prevent-people-from-displaying-your-content-on-their-web-pages-inside-of-a-frame/">How to Prevent People from Displaying Your Content on Their Web Pages Inside of a Frame</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
