<?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>Istanto Blog - Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online. &#187; .htaccess</title>
	<atom:link href="http://www.istanto.net/tag/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://www.istanto.net</link>
	<description>Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online.</description>
	<lastBuildDate>Sun, 08 Jan 2012 02:56:13 +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>Secure Your WordPress, Playing With Your .htaccess File.</title>
		<link>http://www.istanto.net/secure-your-wordpress-playing-with-your-htaccess-file.html</link>
		<comments>http://www.istanto.net/secure-your-wordpress-playing-with-your-htaccess-file.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 12:31:52 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[crazy]]></category>
		<category><![CDATA[secure your wordpress]]></category>
		<category><![CDATA[stop hacker]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=1365</guid>
		<description><![CDATA[In this article we will learn how to secure our wordpress blog using some .htaccess technique. Of course there is no system perfect in this world. Everything should have bug, no matter it&#8217;s high or low risk. When last time you have seen blog with wordpress got hacked? Well, This happen to me 3 times [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In this article we will learn how to secure our wordpress blog using some .htaccess technique. Of course there is no system <strong>perfect </strong>in this world. Everything should have bug, no matter it&#8217;s high or low risk. When last time you have seen blog with wordpress got hacked? Well, This happen to me 3 times on one of my <em>crazy</em><span style="text-decoration: line-through;">porn</span> blog. The hackers always controlling my admin panel and it&#8217;s happen 3 times until I playing with my new toys to stop this guy.</p>
<p style="text-align: justify;">What is .htaccess? In several web servers (most commonly Apache), .htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. Read full in <a href="http://en.wikipedia.org/wiki/Htaccess" target="_blank">wikipedia</a>. Back to the topic what should we do to stop hackers controlling our admin area?</p>
<p style="text-align: justify;">There is lots of technique, what I write in here just some technique using .htaccess files:</p>
<ol style="text-align: justify;">
<li>Protected your wp-login.php files.</li>
<p>&lt;Files wp-login.php&gt;<br />
Order deny,allow<br />
Deny from All<br />
Allow from xxx.xxx.xxx.xxx<br />
&lt;/Files&gt;</p>
<p>Where xxx.xxx.xxx.xxx is your IP, if you meet problem to know your IP just look on <a href="http://www.ipchicken.com" target="_blank">IPchicken.com</a></p>
<li> Protected your wp-config.php</li>
<p>Wp-config is vital configuration files for wordpress, it should secured to stop people viewing it&#8217;s content.</p>
<p>&lt;files wp-config.php&gt;<br />
order allow,deny<br />
deny from all<br />
&lt;/files&gt;</p>
<li> Protected your wp-comment-post.php</li>
<p>Even if you&#8217;re using Akismet plugins, to reduce spambot post via remote access you can use this code. (Change yourblog.com with your own domain name)</p>
<p>RewriteEngine On<br />
RewriteCond %{REQUEST_METHOD} POST<br />
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*<br />
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^$<br />
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]</p>
<li>Protected .htaccess file.</li>
<p>This code will protect all files with &#8220;.hta&#8221; string on it.</p>
<p>&lt;Files ~ “^.*\.([Hh][Tt][Aa])”&gt;<br />
order allow,deny<br />
deny from all<br />
satisfy all<br />
&lt;/Files&gt;</ol>
<p style="text-align: justify;">After using this tips the hackers can&#8217;t controlling my wordpress admin panel again hahaha! he try to inject using wordpress bug but when I limited IP to access admin panel he&#8217;s cry *lol* yay, I win! finally I beat this noob *lol* <img src='http://www.istanto.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/secure-your-wordpress-playing-with-your-htaccess-file.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Playing with .htaccess file</title>
		<link>http://www.istanto.net/playing-with-htaccess-file.html</link>
		<comments>http://www.istanto.net/playing-with-htaccess-file.html#comments</comments>
		<pubDate>Sun, 11 Jan 2009 19:16:54 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[banned]]></category>
		<category><![CDATA[hotlinking]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[referer ban]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=904</guid>
		<description><![CDATA[Crazy! I think all of my site has been targeted to get spammed by someone or maybe group.. Last 2 days ago I give notification in some of my site tell them to stop spamming or I will banned them. Mostly they are spamming for Viagra, xxx, porn, rubbish stuff, etc. Seems like spam business [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><strong>Crazy!</strong> I think all of my site has been targeted to get spammed by someone or maybe group.. Last 2 days ago I give notification in some of my site tell them to stop spamming or I will banned them. Mostly they are spamming for Viagra, xxx, porn, rubbish stuff, etc. Seems like spam business make a lot money for them&#8230; eh?</p>
<p style="text-align: justify;">Looks like they was thinking I&#8217;m joke? <span style="text-decoration: line-through;"><strong>hell no</strong></span> I&#8217;m not joke this time *<em>bad temperament lol</em>* I banned all they IP from accessing my website. I don&#8217;t care about traffic may decrease for a weeks this <span style="text-decoration: underline;"><span style="text-decoration: line-through;">stupid guys group</span></span> must be stopped!</p>
<p style="text-align: justify;">I searching the way to do it and i found it lately to play with simple .htaccess file to stop this <em>noob</em> from spamming..</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">blocking their IP using this sample code</span>:</strong></p>
<p style="text-align: justify;">## USER IP BANNING<br />
&lt;Limit GET POST&gt;<br />
order allow,deny<br />
deny from 123.123.123.123<br />
deny from 123.123.123.<br />
deny from 123.123.<br />
deny from 123.<br />
allow from all<br />
&lt;/Limit&gt;</p>
<p style="text-align: justify;"><strong>Read the rules:</strong></p>
<p>123.123.123.123 (Blocks a specific IP address)<br />
123.123.123. (Blocks ALL IPs within the range 123.123.123.xxx)<br />
123.123. (Blocks ALL IPs within the range 123.123.xxx.xxx)<br />
123. (Blocks ALL IPs within the range 123.xxx.xxx.xxx)</p>
<p style="text-align: justify;">I <strong>recommended</strong> you to blocks specific IP adress to minimize your lost traffic.</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Now for disable hotlinking from bandwith stealer use this sample code:</span></strong></p>
<p><span id="more-904"></span><br />
## DISABLE HOTLINKING<br />
RewriteEngine on<br />
# Options +FollowSymlinks<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourotherdomain.com/.*$ [NC]<br />
RewriteRule \.(gif|jpg|jpeg|png|js|css)$ &#8211; [F]</p>
<p><strong>Read the rules:</strong></p>
<p style="text-align: justify;">yourdomain.com and yourotherdomain.com is allowed site that can show hotlinking files you can use your hosting IP address too.</p>
<p style="text-align: justify;">gif|jpg|jpeg|png|js|css is file (extension) that should be disallowed from hotlinking:</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Banned bad referrer using this sample code:</strong></span></p>
<p style="text-align: justify;">## SITE REFERRER BANNING<br />
RewriteEngine on<br />
# Options +FollowSymlinks</p>
<p>RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]<br />
RewriteCond %{HTTP_REFERER} badsite\. [NC,OR]<br />
RewriteCond %{HTTP_REFERER} sub\.badsite\.com [NC]<br />
RewriteRule .* &#8211; [F]</p>
<p style="text-align: justify;"><strong>Read the rules:</strong></p>
<p>badsite.com (Blocks traffic coming from badsite.com)<br />
badsite. (Blocks traffic coming from all varieties of badsite.xxx, such as badsite.com, badsite.net etc)<br />
sub.badsite.com(Blocks traffic coming from sub.badsite.com<br />
You can use IP adress too.</p>
<p style="text-align: justify;">That&#8217;s all for today, have a nice day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> <strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/playing-with-htaccess-file.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stop bandwith thief using rewrite rules on .htaccess file</title>
		<link>http://www.istanto.net/stop-bandwith-thief-using-rewrite-rules-on-htaccess-file.html</link>
		<comments>http://www.istanto.net/stop-bandwith-thief-using-rewrite-rules-on-htaccess-file.html#comments</comments>
		<pubDate>Mon, 08 Sep 2008 10:11:34 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[.htaccess to stop hotlink]]></category>
		<category><![CDATA[ANYSITE]]></category>
		<category><![CDATA[SOMESITE]]></category>
		<category><![CDATA[stop banwith thief]]></category>
		<category><![CDATA[stop hotlink]]></category>
		<category><![CDATA[YOURSITE]]></category>

		<guid isPermaLink="false">http://www.istanto.net/stop-bandwith-thief-using-rewrite-rules-on-htaccess-file.html</guid>
		<description><![CDATA[Annoyed! when some people hotlink your files/images and not giving link-back to your site, They run their own ads code using your bandwidth. I think this is not allowed! at least they should giving link-back not just stolen our bandwidth without anything like that. Would you give them some psycho attack? Then you&#8217;re on right [...]]]></description>
			<content:encoded><![CDATA[<p align="justify"><strong>Annoyed!</strong> when some people hotlink your files/images and not giving link-back to your site, They run their own ads code using your bandwidth. I think this is not allowed! at least they should giving link-back not just stolen our bandwidth without anything like that. Would you give them some psycho attack? Then you&#8217;re on right page keep continue reading on this article.</p>
<p align="justify">If you want people back to your site you should make an code to stop hotlink files and give warning message on it&#8230; like my very easy sample <img src='http://www.istanto.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><img src="http://www.istanto.net/wp-content/uploads/2008/09/hotlink.jpg" alt="hotlink.jpg" /></p>
<p align="justify">I made an warning message in some of my site to stop hotlink, photoshop images are good but I prefer <strong>html/flash files</strong> with click <em>action script</em> so when people click on it it will redirect to your own site.</p>
<p>Once you make your own warning message time to edit .htaccess files and put this code:</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?<strong><font color="#ff0000">YOURSITE</font></strong>.com [NC]<br />
RewriteRule \.<strong><font color="#ff0000">(swf|jpg|gif|etc)</font></strong>$ <strong><font color="#ff0000">hotlink.jpg</font></strong> [NC,L]<br />
<span id="more-486"></span><br />
Edit the word with bold red colors to fit your configuration. This code will stop all hotlink from <strong>ANYSITE</strong> except <strong>YOURSITE</strong>.</p>
<p>If you just want to specify which site not allowed to hotlink you can write code like this:</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} ^http://www.<strong><font color="#ff0000">SOMESITE</font></strong>.com [NC]<br />
RewriteRule \.<strong><font color="#ff0000">(swf|jpg|gif|etc)</font></strong>$ <strong><font color="#ff0000">http://yoursite.com/hotlink.jpg</font></strong> [R]</p>
<p>Edit the word with bold red colors to fit your configuration. This code will stop all hotlink from <strong>SOMESITE</strong>.</p>
<p align="justify">Look on this sample site(still there lot),  They not giving link-back to my site so I stop hotlink from they site, If they give link-back I may permitted they use my bandwidth he he he.. <font color="#ff0000"><strong>is it really hard for send me email to ask my permission?</strong></font> *LOL* please stop thief my bandwidth <img src='http://www.istanto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://www.projuegos.com/juegos/bigdiamond/diamond.php" target="_blank">http://www.projuegos.com/juegos/bigdiamond/diamond.php</a><br />
<a href="http://www.baixakijogos.com.br/flash/teenage-mutant-ninjaturtles/index.html" target="_blank">http://www.baixakijogos.com.br/flash/teenage-mutant-ninjaturtles/index.html</a><br />
<a href="http://www.tuttogratis.it/giochi_gratis/mico_maco/">http://www.tuttogratis.it/giochi_gratis/mico_maco/</a></p>
<p>Enjoy <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/stop-bandwith-thief-using-rewrite-rules-on-htaccess-file.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SEO: Search engine friendly link, Using URL Rewrite on .htaccess</title>
		<link>http://www.istanto.net/seo-search-engine-friendly-link-using-url-rewrite-on-htaccess.html</link>
		<comments>http://www.istanto.net/seo-search-engine-friendly-link-using-url-rewrite-on-htaccess.html#comments</comments>
		<pubDate>Mon, 07 Jul 2008 00:38:16 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[costumize url]]></category>
		<category><![CDATA[friendly url]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[URL Rewrite]]></category>

		<guid isPermaLink="false">http://www.istanto.net/seo-search-engine-friendly-link-using-url-rewrite-on-htaccess.html</guid>
		<description><![CDATA[Building your website but no one visited on it? What&#8217;s wrong? You might can advertising with easy to get million traffic daily, But in one day you stop advertising you loose all those potential traffic. Organic traffic from search engine are the best. Most of webmaster looking for traffic from search engine but they don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Building your website but no one visited on it? <strong>What&#8217;s wrong?</strong> You might can advertising with easy to get million traffic daily, But in one day you stop advertising you loose all those potential traffic.</p>
<p align="justify">Organic traffic from search engine are the best. Most of webmaster looking for traffic from search engine but they don&#8217;t know how to get it.  I know it&#8217;s hard, really hard. Beside the topics, keywords, etc most of important thing we almost forgot it is <strong>the friendly search engine link.</strong></p>
<p align="justify">Most of great search engine love to indexed permanent link (permalink) example http://www.mysite.com/mypage/ or http://www.mysite.com/mypage.html more than dynamic URL example http://www.mysite.com/index.php?page=page1 etc. Even google and most great search engine claim their robot will crawl dynamic URL but most of people doesn&#8217;t like it in result. By make your URL friendly will also raised CTR on SERP.</p>
<p align="justify"><font color="#ff0000"><strong>* You should know URL Friendly will not affect on your search engine position ranking.</strong></font></p>
<p>So let try to make simple Friendly URL using URL rewrite. First write this code on your .htaccess file (you can find this hidden file usually in your website root)</p>
<p>RewriteEngine On<br />
Options +FollowSymLinks</p>
<p>//creating /mypage.html format<br />
RewriteRule ^([0-9a-zA-Z-]+)/?/<strong><font color="#ff0000">?.html$</font></strong> /home/<font color="#ff0000"><strong>yourusername</strong></font>/public_html/index.php?<font color="#ff0000"><strong>page</strong></font>=$1</p>
<p>//creating /mypage/ format<br />
RewriteRule ^([0-9a-zA-Z-]+)/?/<strong><font color="#ff0000">?/$</font></strong> /home/<font color="#ff0000"><strong>yourusername</strong></font>/public_html/index.php?<font color="#ff0000"><strong>page</strong></font>=$1</p>
<p><strong>* Take attention on modification bold and red font</strong>, and in your index.php (Taken from my sample)</p>
<p>&lt;?php</p>
<p>if(isset($_GET['page']))<br />
$p = $_GET['page'];<br />
else<br />
$p = &#8220;0&#8243;;</p>
<p>switch($p) {<br />
case &#8220;tentang-kami&#8221;: include(&#8220;./pages/tentang-kami.php&#8221;); break;<br />
case &#8220;kenapa-kami&#8221;: include(&#8220;./pages/kenapa-kami.php&#8221;); break;<br />
case &#8220;berita&#8221;: include(&#8220;./pages/berita.php&#8221;); break;<br />
case &#8220;promosi&#8221;: include(&#8220;./pages/promosi.php&#8221;); break;<br />
}</p>
<p>?&gt;</p>
<p>Done, you will get friendly URL like this sample on 2 of my site <a href="http://www.hostmambo.info">in here</a> and <a href="http://www.hostmambo.net">here</a> just waiting until search engine indexed your page and send organic traffic for you. For real sample to make sure URL rewrite working take a look on <a href="http://www.hostmambo.info/index.php?page=enterprise-shared-hosting">this page</a> and <a href="http://www.hostmambo.info/enterprise-shared-hosting.html">this page</a>.</p>
<p>Good luck <img src='http://www.istanto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/seo-search-engine-friendly-link-using-url-rewrite-on-htaccess.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

