<?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>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; code</title>
	<atom:link href="http://www.webstylepress.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Protect Your WordPress Blog From Hotlinking</title>
		<link>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/</link>
		<comments>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 22:44:47 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Modrewrite]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wp Customization]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[hotlinking]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=466</guid>
		<description><![CDATA[Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. [...]<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. Following is a solution to protect your WordPress blog from hotlinking using .htaccess file.</p>
<p>Ever visited a webpage when you were trying to access an image, which shows you an image saying that image stealing is prohibited. We are going to use this way. The image will still be displayed from your blog but then it can be small and of low quality minimizing load. So we will create a small image written something like &#8220;Content Stealing is prohibited at my server&#8221; and upload it on our blog server.</p>
<p>Then, we will edit our .htaccess file, located in your WordPress blog root directory. Sometimes ftp does not show .htaccess file because it is hidden. In that case we can apply a filter -a via ftp which will show us hidden files too. </p>
<p><span id="more-466"></span></p>
<p>Add the following code to your .htaccess file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">RewriteEngine On
#Replace ?myblog\.com/
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myblog\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/donothotlink.jpg
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/donothotlink.jpg [L]</pre></div></div>

<p>Replace myblog with your blog URL name. For this blog it will be <strong>webstylepress</strong><br />
Use <strong>donothotlink</strong> as a name for your jpg image.</p>
<p>And you are done. Now when anybody shall copy any image URL from your blog, this image will be shown instead.</p>
<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/redesign-brainstorming-keep-in-mind-before-you-redesign/" title="Redesign Brainstorming &#8211; Keep in Mind Before you Redesign">Redesign Brainstorming &#8211; Keep in Mind Before you Redesign</a></li><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><li><a href="http://www.webstylepress.com/div-issues-problems-and-solution/" title="DIV Issues, Problems and Solutions">DIV Issues, Problems and Solutions</a></li><li><a href="http://www.webstylepress.com/fav-icon-tutorial/" title="Fav Icon Tutorial">Fav Icon Tutorial</a></li><li><a href="http://www.webstylepress.com/robots-txt-file/" title="Robots File &#8211; Usage and Best Practices">Robots File &#8211; Usage and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Code Hider Tool &#8211; Lock Webpage Code</title>
		<link>http://www.webstylepress.com/code-hider-tool-lock-webpage-code/</link>
		<comments>http://www.webstylepress.com/code-hider-tool-lock-webpage-code/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 08:52:45 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=455</guid>
		<description><![CDATA[This code is property of http://www.cgiscript.net and original updated code can be found from there. Purpose of this tool is to lock the HTML code. If you want to secure your HTML code or any part of web page then this tool is very useful for that. Download Code Locker Tool Code Hider Tool &#8211; [...]<p><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/">Code Hider Tool &#8211; Lock Webpage Code</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This code is property of <a rel="nofollow" target="_blank" href="http://www.cgiscript.net" target="_blank">http://www.cgiscript.net</a> and original updated code can be found from there.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/lock-code.gif" alt="" title="lock-code" width="300" height="134" class="alignnone size-full wp-image-456" /></p>
<p>Purpose of this tool is to lock the HTML code. If you want to secure your HTML code or any part of web page then this tool is very useful for that.</p>
<p><a href='http://www.webstylepress.com/wp-content/uploads/2008/11/lock-html-code.rar'>Download Code Locker Tool</a></p>
<p><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/">Code Hider Tool &#8211; Lock Webpage Code</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/email-riddler-secure-email-link/" title="Email Riddler &#8211; Secure Email Link">Email Riddler &#8211; Secure Email Link</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/chatbox-for-websites-blogs-forums/" title="Chatbox For Websites and Blogs">Chatbox For Websites and Blogs</a></li><li><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/" title="Add Media Player With Playlist to Any Website">Add Media Player With Playlist to Any Website</a></li><li><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/" title="Protect Your WordPress Blog From Hotlinking">Protect Your WordPress Blog From Hotlinking</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><li><a href="http://www.webstylepress.com/680-adobe-photoshop-shapes-download-free/" title="680 Adobe Photoshop Shapes &#8211; Download Free">680 Adobe Photoshop Shapes &#8211; Download Free</a></li><li><a href="http://www.webstylepress.com/designing-elements-bullets-icons-download/" title="Designing Elements &#8211; Bullets and Icons Downloads">Designing Elements &#8211; Bullets and Icons Downloads</a></li><li><a href="http://www.webstylepress.com/visually-inspect-edit-css-html/" title="Visually Inspect and Edit CSS and HTML To Perfection">Visually Inspect and Edit CSS and HTML To Perfection</a></li><li><a href="http://www.webstylepress.com/full-free-xml-sitemap-generator/" title="Online Full Free XML Sitemap Generator">Online Full Free XML Sitemap Generator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/code-hider-tool-lock-webpage-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 1</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-1/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-1/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 19:46:38 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=386</guid>
		<description><![CDATA[This section contains following solutions in JavaScript. Make Home Page Script (text based, image based) Add to Favorites Script (Cross Browser, By Image, By text) (Simple, Cross Browser support, Onload add to favorites) Switch to Full Screen Last Date of Page Updated Print Page (IE, Cross Browser) Save page from printing (Printing Security Issue) Website [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-1/">Javascript Essentials Part 1</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This section contains following solutions in JavaScript.</p>
<ul>
<li><strong>Make Home Page Script (text based, image based)</strong></li>
<li><strong>Add to Favorites Script (Cross Browser, By Image, By text)</strong><br />
(Simple, Cross Browser support, Onload add to favorites)</li>
<li><strong>Switch to Full Screen</strong></li>
<li><strong>Last Date of Page Updated</strong></li>
<li><strong>Print Page (IE, Cross Browser)</strong></li>
<li><strong>Save page from printing (Printing Security Issue)</strong></li>
<li><strong>Website Launched Since</strong></li>
<li><strong>Close window</strong><br />
(With Prompt, Without Prompt, Self close with time (5000 for 5 sec.) Auto close with prompt, Self close with time (3000 for 3sec.) Auto close without prompt)</li>
<li><strong>Open window on browser close &#8211; Open window on close window</strong></li>
<li><strong>Back Button (history.back)</strong><br />
(Text based, Image based, History back and forward buttons)</li>
</ul>
<p><span id="more-386"></span></p>
<h4>Make Home Page Script</h4>
<h6>Text Based Script</h6>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> IE<span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>A HREF<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;downlinks&quot;</span>
onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.webstylepress.com');&quot;</span><span style="color: #339933;">&gt;</span>
Make Webstylepress Homepage
<span style="color: #339933;">&lt;/</span>A<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></div></div>

<h6>Image Based Script</h6>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#&quot;</span> onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webstylepress.com');&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;images/homepage.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Make WebStylePress Homepage&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Image-HomePage&quot;</span> width<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span> height<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span> border<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p><a href="http://www.webstylepress.com/javascript-essentials-part-1/">Javascript Essentials Part 1</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/javascript-essentials-part-6/" title="Javascript Essentials Part 6">Javascript Essentials Part 6</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-4/" title="Javascript Essentials Part 4">Javascript Essentials Part 4</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-3/" title="Javascript Essentials Part 3">Javascript Essentials Part 3</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-2/" title="Javascript Essentials Part 2">Javascript Essentials Part 2</a></li><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/advanced-js-calendar/" title="Advanced JS Calendar">Advanced JS Calendar</a></li><li><a href="http://www.webstylepress.com/simple-js-calendar/" title="Create Simple Javascript Based Calendar">Create Simple Javascript Based Calendar</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/" title="Protect Your WordPress Blog From Hotlinking">Protect Your WordPress Blog From Hotlinking</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

