<?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>design blog and design Inspiration &#187; Tutorials</title>
	<atom:link href="http://www.ezuca.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezuca.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 07:17:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>11 Useful &#8220;Fix and Tweak&#8221; Video Tutorials on Apple iPhone 3G/3GS</title>
		<link>http://www.ezuca.com/11-useful-fix-tweak-video-tutorials-apple-iphone-3g-3gs/</link>
		<comments>http://www.ezuca.com/11-useful-fix-tweak-video-tutorials-apple-iphone-3g-3gs/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 05:18:07 +0000</pubDate>
		<dc:creator>ezuca</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple iPhone]]></category>

		<guid isPermaLink="false">http://www.ezuca.com/?p=1126</guid>
		<description><![CDATA[What shall you do if something goes wrong with your iPhone? Perhaps the first thing you would do is to diagnose the cause of the problem. Afterwards if you think the problem is just something resolvable and you think you could handle it then you would try to repair it by yourself, right? This action [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.ezuca.com/content//2009/09/iphone-video-tutorials-3up.jpg" alt="Apple Wallpapers" />

What shall you do if something goes wrong with your iPhone? Perhaps the first thing you would do is to diagnose the cause of the problem.  Afterwards if you think the problem is just something resolvable and you think you could handle it then you would try to repair it by yourself, right? This action could be harmless though you should also be sure of what you are doing before you really continue fixing it.<span id="more-1126"></span>

Problems like the one that only needs a battery replacement can only be as easy as abc to manage. Meanwhile if you bring your iPhone to a professional technician, for sure the service would cost big. And just think how much they would take advantage of you by indefinitely charging you with so much fee. Why not fix it yourself when you just can? The following video tutorials shall be your guide in tweaking your dear Apple iPhone.

<a name="videolist"></a><p><b>List of the Video Tutorials</b> presented:</p>

<div style="margin: 0 0 0 30px;">
&#8226;iPhone 3GS Touch Panel and Digitizer Replacement<a href="#video1" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3GS LCD Replacement<a href="#video2" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3GS Battery Replacement<a href="#video3" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3GS Complete Screen Replacement<a href="#video4" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3GS Complete Take Apart<a href="#video5" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G Digitizer and Touch Panel Replacement<a href="#video6" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G LCD Replacement<a href="#video7" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G Battery Replacement<a href="#video8" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G Complete Screen Replacement<a href="#video9" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G (Gen 2) Complete Take Apart<a href="#video10" style="text-decoration: none;" title="scroll down to video">▼</a>
<br/>&#8226;iPhone 3G (Gen 1) Complete Take Apart<a href="#video11" style="text-decoration: none;" title="scroll down to video">▼</a></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video1">iPhone 3GS Touch Panel and Digitizer Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/jOnX5TIlBRA&#038;hl=en&#038;fs=1&#038;"><param name="movie" value="http://www.youtube.com/v/jOnX5TIlBRA&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video2">iPhone 3GS LCD Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/c6q9kTnQTuQ&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/c6q9kTnQTuQ&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video3">iPhone 3GS Battery Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/lIEdIxRpU3g&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/lIEdIxRpU3g&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video4">iPhone 3GS Complete Screen Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/fus3zh9mv5E&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/fus3zh9mv5E&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video5">iPhone 3GS Complete Take Apart</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/z9AzWAwfHEk&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/z9AzWAwfHEk&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video6">iPhone 3G Digitizer and Touch Panel Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/p3xn7whpZAA&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/p3xn7whpZAA&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video7">iPhone 3G LCD Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/jputupWu22I&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/jputupWu22I&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video8">iPhone 3G Battery Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/Pr6HWZa0dGM&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/Pr6HWZa0dGM&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video9">iPhone 3G Complete Screen Replacement</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/fkypGctVCOM&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/fkypGctVCOM&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video10">iPhone 3G (Gen 2) Complete Take Apart</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/8fF0DF-mbn4&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/8fF0DF-mbn4&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<div style="clear: both;font-size: 18px; font-weight: bold; border-bottom:  2px #666666 solid; margin: 25px 0 15px;"><a style="text-decoration: none; color: #007EC4;" name="video11">iPhone 3G (Gen 1) Complete Take Apart</a><a href="#videolist" style="text-decoration: none; float: right; color: #007EC4;" title="scroll up for list">▲</a></div>
<div><center><object width="425" height="350" data="http://www.youtube.com/v/X1z0pw2VK7M&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash"><param name="movie" value="http://www.youtube.com/v/X1z0pw2VK7M&#038;hl=en&#038;fs=1&#038;" /></object></center></div>

<p><span style="font-size: 10px;">*You may visit <a rel="nofollow" href="http://www.ezuca.com/goto/http://www.directfix.com" >DirectFix</a> for more helpful resources on the Apple iPhone gadget.</span></p>]]></content:encoded>
			<wfw:commentRss>http://www.ezuca.com/11-useful-fix-tweak-video-tutorials-apple-iphone-3g-3gs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Improve Your Website&#8217;s Security and Protection Using .htaccess File</title>
		<link>http://www.ezuca.com/how-to-improve-security-protection-website-htaccess/</link>
		<comments>http://www.ezuca.com/how-to-improve-security-protection-website-htaccess/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 05:02:00 +0000</pubDate>
		<dc:creator>ezuca</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ezuca.com/?p=757</guid>
		<description><![CDATA[.htaccess is a configuration file used on various web servers which run the Apache Web Server program. If Apache detects the .htaccess file, it will then try to execute the .htaccess file where custom commands for configuring a lot of functionalities and features in delivering your site to the public are. The file .htaccess is [...]]]></description>
			<content:encoded><![CDATA[<b>.htaccess</b> is a configuration file used on various web servers which run the Apache Web Server program. If Apache detects the .htaccess file, it will then try to execute the .htaccess file where custom commands for configuring a lot of functionalities and features in delivering your site to the public are. The file .htaccess is just so powerful that's why in this article, we will try to utilize its capabilities.

<img src="http://www.ezuca.com/content//2009/09/htaccess.jpg" alt="htaccess" />
<p>In this tutorial, we will learn the following .htaccess commands and controls:</p>
<div style="margin: 15px 0 0 30px;">
&#8226;Customizing Error Pages<br/>
&#8226;URL Redirection<br/>
&#8226;Password-Protecting the Directories and Files<br/>
&#8226;Blocking Specific Users<br/>
&#8226;Preventing Hotlinking of Images and Other Files<br/>
&#8226;<i>and much more...</i><br/></div>
<span id="more-757"></span>
<br/><h4>Customizing Error Pages</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/404-file-not-found.jpg" alt="htaccess" /><br/>

Syntax:

<pre class="brush: xml; title: ; notranslate">ErrorDocument [error code] [/directory/filename.extension]</pre>

Example:

<pre class="brush: xml; title: ; notranslate">ErrorDocument 404 /error-pages/notfound.html</pre>

<p>In the above code, any error code equivalent to 404 will be redirected to<br/><i>/error-pages/notfound.html</i>.</p>

<p>The same with:</p>

<pre class="brush: xml; title: ; notranslate">ErrorDocument 400 /errorpages/badrequest.html
ErrorDocument 401 /errorpages/authreqd.html
ErrorDocument 403 /errorpages/forbidden.html
ErrorDocument 500 /errorpages/servererror.html</pre>

By the way, you can also use an <b>exact URL</b> (http://yourdomain.com/error-pages/badrequest.html) instead of the virtual URL (like the "<i>/errorpages/badrequest.html</i>").

<a rel="nofollow" href="http://www.ezuca.com/goto/http://www.w3.org/Protocols/HTTP/HTRESP.html" >Check this out for more error codes.</a>
<br/><br/><h4>URL Redirection</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/url-redirection.jpg" alt="htaccess" /><br/>

Syntax:

<pre class="brush: xml; title: ; notranslate">Redirect [Virtual URL to be Redirected] [Full or Exact Url You Want the Request Redirected to]</pre>

Example:

<pre class="brush: xml; title: ; notranslate">Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html</pre>

or

Directory Redirection

<pre class="brush: xml; title: ; notranslate">Redirect /olddirectory http://yoursite.com/newdirectory/</pre>

Through a Directory Redirection you can now bring all the requests for any subdirectories or files inside the old directory to the <b>new directory</b> or <b>page</b>.
<br/><br/><h4>Disabling Directory Listing</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/directory-listing.jpg" alt="htaccess" /><br/>


Code:

<pre class="brush: xml; title: ; notranslate">IndexIgnore *</pre>

<p>The * is a wildcard which is equivalent to <b>all files</b>. Thus if you place the above line of code in the .htaccess file in a directory, nothing from that directory will be listed and shown to your site viewers or users.</p>

<p>But if you only want <b>certain files</b> in a directory not to be listed then you can use:</p>

<p>Code:</p>
<pre class="brush: xml; title: ; notranslate">IndexIgnore *.gif *.jpg</pre>
<p>This would give you a list of all files <b>excluding</b> the ones ending with the file extensions .gif and .jpg.</p>

<p>And if you like a <b>specific directory</b> to be <i>shown as a list</i> then you just put this code snippet in the htaccess file in that directory:</p>

Code:
<pre class="brush: xml; title: ; notranslate">Options +Indexes</pre>

The plus sign (+) denotes that you allow that directory and its subdirectories to be shown as a directory list. If you want otherwise, you just replace the plus sign (+) with a minus sign (-).
<br/><br/><h4>Applying a Default Page for Each Directory</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/default-page.jpg" alt="htaccess" /><br/>


Syntax:
<pre class="brush: xml; title: ; notranslate">DirectoryIndex [filename.extension or could be /directory/filename.extension]</pre>

Example:
<pre class="brush: xml; title: ; notranslate">DirectoryIndex myindex.html</pre>

<br/>You can also set it this way (ordering is important!):

<pre class="brush: xml; title: ; notranslate">DirectoryIndex myindex.html index.htm /pages/subpages/index.php</pre>
In this way your <i>/pages/subpages/index.php</i> page will be shown if neither <i>myindex.html</i> nor <i>index.htm</i> is found in their respective directory. If none of those set "index" or <b>default</b> pages is found then it will just show a directory listing (if not disabled) or perhaps a 404 error page.

<br/><br/><h4>Password-Protecting the Directories and Files</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/login-page.jpg" alt="htaccess" /><br/>


Protecting a Single File

Code:
<pre class="brush: xml; title: ; notranslate">&lt;Files secure.php&gt;
AuthType Basic
AuthName “Prompt”
AuthUserFile /home/path/.htpasswd
Require valid-user
&lt;/Files&gt;</pre>


Protecting a Directory

Code:
<pre class="brush: xml; title: ; notranslate">resides
AuthType basic
AuthName “This directory is protected”
AuthUserFile /home/path/.htpasswd
AuthGroupFile /dev/null
Require valid-user</pre>

Locate for the .htpasswd file path in your web server to fill <b>AuthUserFile</b> path. Remember that the .htpasswd file is not a web accessible file like <i>http://yourdomain.com/.htpasswd</i>, it is usually located in a directory <b>above your www folder</b> in your web server. If you still can't find your .htpasswd file then you can create one <a rel="nofollow" href="http://www.ezuca.com/goto/http://www.htaccesstools.com/" >here</a>.
<br/><br/><h4>Blocking Specific Users</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/block-specific-users.jpg" alt="htaccess" /><br/>


Code:
<pre class="brush: xml; title: ; notranslate">order allow,deny
deny from 123.45.6.7
deny from 231.45.6.
allow from all</pre>

<p>With this you are blocking any access based on the specific IP address (123.45.6.7) and IP block (231.45.6.*). In the case of IP blocking, any IP address that belongs to the said IP block (for instance 231.45.6.1, 231.45.6.2, and so on) will be denied from accessing your website.</p>

<p>In the event that you only want to allow a small number of specific users, using the same code above simply interchange <b>allow</b> and <b>deny</b>. Like this, <b>allow from all</b> to <b>deny from all</b>. Then <b>deny from 123.45.6.7</b> to <b>allow from 123.45.6.7</b> for the IP address you allow.</p>

<p>You can also replace the IP addresses with real URLs. For example, in lieu of an IP address or IP block you will place .domain.com, www.domain.com or subdomain.domain.com, so on and so forth.</p>
<br/><br/><h4>Stop Hotlinking of Images and Other Files</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/stop-hotlinking.jpg" alt="htaccess" /><br/>


<p>Hotlinking refers to the use of direct links to a website's files like the images, video, etc. Hotlinking is notoriously known as <b>bandwidth stealing</b> simply because the other website's bandwidth is being exploited by the other unsolicited websites. But using the power of .htaccess we can prevent this bandwidth theft from happening to your website.</p>

<p>Through .htaccess, we can block or deny <i>any requests of the other websites</i> for your site's files. Here is the code:</p>

<p>Code:</p>
<pre class="brush: xml; title: ; notranslate">RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?otheralloweddomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ - [F]</pre>

<p>In this code, we only <b>allow</b> two sites, namely <i>http://www.mydomain.com</i> (our own site) and <i>http://www.otheralloweddomain.com</i>, which can have an access to certain files (from our own site) which have the extensions .gif, .jpg, .js and .css. <b>Line 2</b> means we also allow any requests for the said files from <b>blank referrers</b>. Blank referrers are those users like companies or individuals which use a firewall or proxy in surfing the net. Don't worry because blank referrers are not really the "hotlinkers".</p>

<p>You can show a replacement image to your hotlinked images. This only works for image files.</p>

<p>Code:</p>
<pre class="brush: xml; title: ; notranslate">RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|png|bmp)$ http://www.mydomain.com/nohotlinking.jpg [R,L]</pre>

Simply replace <i>http://www.mydomain.com/nohotlinking.jpg</i> with the link of your own replacement image.
<br/><br/><h4>Disable Script Execution</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/script-execution.jpg" alt="htaccess" /><br/>


<p>Prevent scripts in certain languages from executing.</p>

<p>Syntax:</p>
<pre class="brush: xml; title: ; notranslate">Options -ExecCGI
AddHandler cgi-script [file extension or file extensions separated with spaces]</pre>

Example:
<pre class="brush: xml; title: ; notranslate">Options -ExecCGI
AddHandler cgi-script .pl .py .php .jsp .htm .shtml .sh .asp .cgi</pre>

<br/><h4>Adding MIME Types</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/mime-types-0002.jpg" alt="htaccess" /><br/>


MIME stands for Multipurpose Internet Mail Extensions. There are some web servers which are not able to deliver certain file formats correctly. Formats like MP3 and SWF. By adding the following code snippet we would be able to let our server work properly on dealing with those file formats.

<p>Syntax:</p>
<pre class="brush: xml; title: ; notranslate">AddType [application string] [file extension or file extensions separated with spaces]</pre>

Example:
<pre class="brush: xml; title: ; notranslate">AddType application/x-shockwave-flash swf</pre>

If the file extensions belong to the same application string then you can just place them on one line like this:

<pre class="brush: xml; title: ; notranslate">AddType image/jpeg .jpeg .jpg .jpe .JPG</pre>

<a rel="nofollow" href="http://www.ezuca.com/goto/http://www.webmaster-toolkit.com/mime-types.shtml" >Here is a list of common MIME types with their corresponding application string and extension.</a>
<br/><br/><h4>Impose File Upload Limits for PHP.</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/upload-file.jpg" alt="htaccess" /><br/>


Limit the maximum file size for uploading in PHP, also its maximum execution time. Just put this code:

<pre class="brush: xml; title: ; notranslate">php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 200
php_value max_input_time 200</pre>

<b>Line 1</b> is the maximum file size for an upload. <b>Line 2</b> is the maximum size for post data. <b>Line 3</b> is the maximum time in seconds a script can run before it’s terminated. And <b>line 4</b> is the maximum amount of time in seconds a script is allowed to parse input data.
<br/><br/><h4>Compress File Output Using GZIP.</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/archive-gzip.jpg" alt="htaccess" /><br/>


Code:
<pre class="brush: xml; title: ; notranslate">&lt;IfModule mod_gzip.c&gt;
    mod_gzip_on         Yes
    mod_gzip_dechunk    Yes
    mod_gzip_item_include file          \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler       ^cgi-script$
    mod_gzip_item_include mime      ^text\.*
    mod_gzip_item_include mime      ^application/x-javascript.*
    mod_gzip_item_exclude mime      ^image\.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
&lt;/IfModule&gt;</pre>

This will compress all the files with extensions specified in line 4. GZIP compression is helpful in reducing bandwidth use.
<br/><br/><h4>Blocking Offline Browsers and "Bad Bots"</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/block-browsers-bots.jpg" alt="htaccess" /><br/>

Syntax:
<pre class="brush: xml; title: ; notranslate">RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BOTNAME [OR]
RewriteCond %{HTTP_USER_AGENT} ^BOTNAME
RewriteRule ^.* - [F,L]</pre>

<p>Replace BOTNAME with the name of a Bad Bot. Do you notice the <b>[OR]</b> in the code? It indicates that another BOTNAME follows, but if you only want to add <b>one</b> BOTNAME (which is not usually the case) then you may remove [OR] and Line 3.</p>

<p>Bad bots and site strippers are really BAD because they try to access the files in your site indefinitely. <i>Indefinitely</i> in the sense that they access your site with no real human user interaction. They access almost every file in your site that could lead your bandwidth usage bloating up. In case of the site strippers, they will download every accessible file from your site, so that it can be browsed offline. See, that sounds real bad because that would mean an <b>increase</b> in your bandwidth usage.</p>

<p>The following are the usual bad bots and site strippers. This is already compiled in a ready code for .htaccess:</p>

<p>Code:</p>
<pre class="brush: xml; title: ; notranslate">RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]</pre>
<br/><h4>Setting Server Timezone</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/timezone.jpg" alt="htaccess" /><br/>

The time used in setting your web server's timezone is based on the Eastern Standard Time (EST). But we can set the timezone for our site accordingly. We just have to use this syntax of code:

<pre class="brush: xml; title: ; notranslate">SetEnv TZ [Location]</pre>

Example:
<pre class="brush: xml; title: ; notranslate">SetEnv TZ America/Los_Angeles</pre>

<a rel="nofollow" href="http://www.ezuca.com/goto/http://www.php.net/manual/en/timezones.php" >Click here for other time zones.</a>
<br/><br/><h4>Protect Access of .htaccess File</h4>
<img src="http://www.ezuca.com/content//2009/09/how-to-htaccess/protect-htaccess.jpg" alt="htaccess" /><br/>

Some people place their password protection in the .htaccess file which makes it vulnerably exposed to potential hackers. But there is one way in order to stop those prying eyes in accessing the .htaccess file(s) located in your site. Simply add this:

<pre class="brush: xml; title: ; notranslate">&lt;Files .htaccess&gt;
order allow,deny
deny from all
&lt;/Files&gt;</pre>

<br/><h4>Closing Remarks</h4>
<p>I know there is still a lot of hacks and tricks for .htaccess but I can't list them all here. It would be great for you if you can devote time in reading <a rel="nofollow" href="http://www.ezuca.com/goto/http://httpd.apache.org/docs/" >Apache User's Guide</a>. You will certainly enhance your power more in web development.</p>

<p>I hope you learned something from this little tutorial. Thanks for reading. Keep posted!</p>]]></content:encoded>
			<wfw:commentRss>http://www.ezuca.com/how-to-improve-security-protection-website-htaccess/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.ezuca.com/category/tutorials/feed/ ) in 1.04913 seconds, on Feb 5th, 2012 at 12:34 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 1:34 am UTC -->
