<?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>Laydo.net Webmaster  Blog</title>
	<atom:link href="http://www.laydo.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laydo.net</link>
	<description>webmaster flash php ajax design  flex actionscript 2 3</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:49:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Windows 7 enter password protected share</title>
		<link>http://www.laydo.net/2010/07/29/windows-7-enter-password-protected-share/</link>
		<comments>http://www.laydo.net/2010/07/29/windows-7-enter-password-protected-share/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 12:49:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sorun(HATA)]]></category>

		<guid isPermaLink="false">http://www.laydo.net/?p=294</guid>
		<description><![CDATA[open cmd -> clean net use net use * /delete -> add your network path with password net use z: \\server\logo /user:administrator It will resolve that problem&#8230;. Pls comment for additional problems.]]></description>
			<content:encoded><![CDATA[<p>open cmd<br />
-> clean net use<br />
   net use * /delete</p>
<p>-> add your network path with password<br />
   net use  z: \\server\logo  /user:administrator</p>
<p>It will resolve that problem&#8230;.</p>
<p>Pls comment for additional problems. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.laydo.net/2010/07/29/windows-7-enter-password-protected-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to follow your visitor</title>
		<link>http://www.laydo.net/2010/04/08/how-to-follow-your-visitor/</link>
		<comments>http://www.laydo.net/2010/04/08/how-to-follow-your-visitor/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 13:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.laydo.net/?p=292</guid>
		<description><![CDATA[var url_array=new Array('aHR0cDovL3d3dy5tYXJrYWZvbmkuY29t');var visited_array=new Array();var link_el=document.createElement('a');var computed_style=document.defaultView.getComputedStyle(link_el,"");for(var i=0;i0){$.ajax({type:'GET',url:'/ajax.php?getit='})} a:visited { color: red; } /* We can also use any other CSS property */]]></description>
			<content:encoded><![CDATA[<p><code><br />
    var url_array=new Array('aHR0cDovL3d3dy5tYXJrYWZvbmkuY29t');var visited_array=new Array();var link_el=document.createElement('a');var computed_style=document.defaultView.getComputedStyle(link_el,"");for(var i=0;i<url_array.length;i++){link_el.href=atob(url_array[i]);if(computed_style.getPropertyValue("color")=='rgb(255, 0, 0)'){visited_array.push(atob(url_array[i]))}}if(visited_array.length>0){$.ajax({type:'GET',url:'/ajax.php?getit=<?=$_SESSION['userID']?>'})}           </p>
<style>
    a:visited { color: red; } /* We can also use any other CSS property */
</style>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.laydo.net/2010/04/08/how-to-follow-your-visitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAFE MODE Restriction in effect.  Safe MOD = on</title>
		<link>http://www.laydo.net/2009/09/28/safe-mode-restriction-in-effect-safe-mod-on/</link>
		<comments>http://www.laydo.net/2009/09/28/safe-mode-restriction-in-effect-safe-mod-on/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:36:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.laydo.net/?p=289</guid>
		<description><![CDATA[Safe Mode on olan server larda session komutları hata vermektedir. Bu sorunu safe mode off yaparak çözebiliriz ancak çogu hosting firması buna izin vermez, bundan dolayı dolaylı yoldan session kayıt pathlerını degıstırerek sorun cozulebilir. SAFE MODE Restriction in effect. Ana dizinde bir klasor yaratılıp yazma izni verilmeli ve config dosyalarına ekteki komut eklenmelidir. Example : [...]]]></description>
			<content:encoded><![CDATA[<p>Safe Mode on olan server larda session komutları hata vermektedir. Bu sorunu safe mode off yaparak çözebiliriz ancak çogu hosting firması buna izin vermez, bundan dolayı dolaylı yoldan session kayıt pathlerını degıstırerek sorun cozulebilir.</p>
<p> SAFE MODE Restriction in effect. </p>
<p>  Ana dizinde bir klasor yaratılıp yazma izni verilmeli ve config dosyalarına ekteki komut eklenmelidir.<br />
  Example :<br />
 session_save_path($root.&#8217;tmp&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laydo.net/2009/09/28/safe-mode-restriction-in-effect-safe-mod-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Tc kimlik no check</title>
		<link>http://www.laydo.net/2009/09/23/javascript-tc-kimlik-no-check/</link>
		<comments>http://www.laydo.net/2009/09/23/javascript-tc-kimlik-no-check/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 13:29:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[araçlar]]></category>

		<guid isPermaLink="false">http://www.laydo.net/?p=287</guid>
		<description><![CDATA[function check_tcno(a){ if(a.substr(0,1)==0&#038;&#038;a.lenght!=11){return false;} var i = 9, md=&#8221;, mc=&#8221;, digit, mr=&#8221;; while(digit = a.charAt(&#8211;i)){i%2==0 ? md += digit : mc += digit;} if(((eval(md.split(&#8221;).join(&#8216;+&#8217;))*7)-eval(mc.split(&#8221;).join(&#8216;+&#8217;)))%10!=parseInt(a.substr(9,1),10)){return false;} for (c=0;c]]></description>
			<content:encoded><![CDATA[<p>function check_tcno(a){<br />
if(a.substr(0,1)==0&#038;&#038;a.lenght!=11){return false;}<br />
var i = 9, md=&#8221;, mc=&#8221;, digit, mr=&#8221;;<br />
while(digit = a.charAt(&#8211;i)){i%2==0 ? md += digit : mc += digit;}<br />
if(((eval(md.split(&#8221;).join(&#8216;+&#8217;))*7)-eval(mc.split(&#8221;).join(&#8216;+&#8217;)))%10!=parseInt(a.substr(9,1),10)){return false;}<br />
for (c=0;c<=9;c++){mr += a.charAt(c);}<br />
if(eval(mr.split(&#8221;).join(&#8216;+&#8217;))%10!=parseInt(a.substr(10,1),10)){return false;}<br />
return true;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laydo.net/2009/09/23/javascript-tc-kimlik-no-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Definitive Guide to htaccess Techniques: Do’s and Don’ts</title>
		<link>http://www.laydo.net/2009/09/14/the-definitive-guide-to-htaccess-techniques-do%e2%80%99s-and-don%e2%80%99ts/</link>
		<comments>http://www.laydo.net/2009/09/14/the-definitive-guide-to-htaccess-techniques-do%e2%80%99s-and-don%e2%80%99ts/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 06:35:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.laydo.net/?p=285</guid>
		<description><![CDATA[Of all the elements of web design and coding, htaccess can be one of the most intimidating. After all, it’s an incredibly powerful tool and one that has the potential to completely break your site if you’re not careful. Below are a dozen basic htaccess techniques and tips to get you started. They’re not nearly [...]]]></description>
			<content:encoded><![CDATA[<p>Of all the elements of web design and coding, htaccess can be one of the most intimidating. After all, it’s an incredibly powerful tool and one that has the potential to completely break your site if you’re not careful.</p>
<p>Below are a dozen basic htaccess techniques and tips to get you started. They’re not nearly as intimidating as many people expect, and if you study the code for a few minutes, I’m sure you’ll quickly grasp exactly how they work and why.</p>
<p>After that are a few bewares and don’ts for working with htaccess to help keep you out of trouble, and some more resources for further working with htaccess.</p>
<p>htaccess Techniques<br />
12 Basic htaccess Tips:<br />
1. Create a custom error page.</p>
<p>.htaccess on a Linux Apache server makes it easy to create your own custom error pages. Just create your custom error page files and then add this code to your .htaccess file:</p>
<p>   1. ErrorDocument 401 /401.php<br />
   2. ErrorDocument 403 /403.php<br />
   3. ErrorDocument 404 /404.php<br />
   4. ErrorDocument 500 /500.php  </p>
<p>ErrorDocument 401 /401.php<br />
ErrorDocument 403 /403.php<br />
ErrorDocument 404 /404.php<br />
ErrorDocument 500 /500.php</p>
<p>(Obviously you should replace the “/500.php” or whatever with your own file path and name.)<br />
2. Prevent directory browsing.</p>
<p>If you don’t include an index file in a directory, visitors can browse the directory itself. But preventing that is as easy as adding a single line to your .htaccess file:</p>
<p>   1. Options All -Indexes  </p>
<p>Options All -Indexes</p>
<p>3. Set the default page of each directory.</p>
<p>If you don’t want to use an index page in each directory, you can set the default page visited when someone reaches (like an about page or a page offering the newest content) that directory by adding this:</p>
<p>   1. DirectoryIndex news.html  </p>
<p>DirectoryIndex news.html</p>
<p>(And of course you’d replace the “news.html” bit with whatever you want to use as the default.)<br />
4. Set up a 301 redirect.</p>
<p>If you move around the structure of your site and need to redirect some old URLs to their new locations, the following bit of code will do so for you:<br />
view plaincopy to clipboardprint?</p>
<p>   1. Redirect 301 /original/filename.html http://domain.com/updated/filename.html  </p>
<p>Redirect 301 /original/filename.html http://domain.com/updated/filename.html</p>
<p>5. Compress file output with GZIP.</p>
<p>You can add the following code to your htaccess file to compress all of your JavaScript, CSS and HTML files using GZIP.</p>
<p>   1. <IfModule mod_gzip.c><br />
   2.     mod_gzip_on         Yes<br />
   3.     mod_gzip_dechunk    Yes<br />
   4.     mod_gzip_item_include file          \.(html?|txt|css|js|php|pl)$<br />
   5.     mod_gzip_item_include handler       ^cgi-script$<br />
   6.     mod_gzip_item_include mime      ^text\.*<br />
   7.     mod_gzip_item_include mime      ^application/x-javascript.*<br />
   8.     mod_gzip_item_exclude mime      ^image\.*<br />
   9.     mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*<br />
  10. </IfModule>  </p>
<p><IfModule mod_gzip.c><br />
	mod_gzip_on			Yes<br />
	mod_gzip_dechunk	Yes<br />
	mod_gzip_item_include file			\.(html?|txt|css|js|php|pl)$<br />
	mod_gzip_item_include handler		^cgi-script$<br />
	mod_gzip_item_include mime		^text\.*<br />
	mod_gzip_item_include mime		^application/x-javascript.*<br />
	mod_gzip_item_exclude mime		^image\.*<br />
	mod_gzip_item_exclude rspheader	^Content-Encoding:.*gzip.*<br />
</IfModule></p>
<p>secure https connection<br />
6. Redirect to a secure https connection</p>
<p>If you want to redirect your entire site to a secure https connection, use the following:<br />
view plaincopy to clipboardprint?</p>
<p>   1. RewriteEngine On<br />
   2. RewriteCond %{HTTPS} !on<br />
   3. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}  </p>
<p>RewriteEngine On<br />
RewriteCond %{HTTPS} !on<br />
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</p>
<p>7. Block script execution.</p>
<p>You can stop scripts in certain languages from running with this:</p>
<p>   1. Options -ExecCGI<br />
   2. AddHandler cgi-script .pl .py .php .jsp. htm .shtml .sh .asp .cgi  </p>
<p>Options -ExecCGI<br />
AddHandler cgi-script .pl .py .php .jsp. htm .shtml .sh .asp .cgi</p>
<p>Just replace the types of scripts you want to block.<br />
8. Force a file to download with a “Save As” prompt.</p>
<p>If you want to force someone to download a file instead of opening it in their browser, use this code:</p>
<p>   1. AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4  </p>
<p>AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4</p>
<p>9. Restrict file upload limits for PHP.</p>
<p>You can restrict the maximum file size for uploading in PHP, as well as the maximum execution time. Just add this:</p>
<p>   1. php_value upload_max_filesize 10M<br />
   2. php_value post_max_size 10M<br />
   3. php_value max_execution_time 200<br />
   4. php_value max_input_time 200  </p>
<p>php_value upload_max_filesize 10M<br />
php_value post_max_size 10M<br />
php_value max_execution_time 200<br />
php_value max_input_time 200</p>
<p>Line one specifies the maximum file size for uploading; line two is the maximum size for post data; line three is the maximum time in seconds a script can run before it’s terminated; and line four is the maximum amount of time in seconds a script is allowed to parse input data.<br />
10. Enable File Caching.</p>
<p>Enabling file caching can greatly improve your site’s performance and speed. Use the following code to set up caching (changing the file types and time values to suit your site’s needs):<br />
view plaincopy to clipboardprint?</p>
<p>   1. #cache html and htm files for one day<br />
   2. <FilesMatch ".(html|htm)$"><br />
   3. Header set Cache-Control &#8220;max-age=43200&#8243;<br />
   4. </FilesMatch><br />
   5.<br />
   6. #cache css, javascript and text files for one week<br />
   7. <FilesMatch ".(js|css|txt)$"><br />
   8. Header set Cache-Control &#8220;max-age=604800&#8243;<br />
   9. </FilesMatch><br />
  10.<br />
  11. #cache flash and images for one month<br />
  12. <FilesMatch ".(flv|swf|ico|gif|jpg|jpeg|png)$"><br />
  13. Header set Cache-Control &#8220;max-age=2592000&#8243;<br />
  14. </FilesMatch><br />
  15.<br />
  16. #disable cache for script files<br />
  17. <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"><br />
  18. Header unset Cache-Control<br />
  19. </FilesMatch>  </p>
<p>#cache html and htm files for one day<br />
<FilesMatch ".(html|htm)$"><br />
Header set Cache-Control &#8220;max-age=43200&#8243;<br />
</FilesMatch></p>
<p>#cache css, javascript and text files for one week<br />
<FilesMatch ".(js|css|txt)$"><br />
Header set Cache-Control &#8220;max-age=604800&#8243;<br />
</FilesMatch></p>
<p>#cache flash and images for one month<br />
<FilesMatch ".(flv|swf|ico|gif|jpg|jpeg|png)$"><br />
Header set Cache-Control &#8220;max-age=2592000&#8243;<br />
</FilesMatch></p>
<p>#disable cache for script files<br />
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"><br />
Header unset Cache-Control<br />
</FilesMatch></p>
<p>(Time shown for max-age is in seconds.)<br />
11. Protect your site from hotlinking.</p>
<p>The last thing you want is for those stealing your content to also be able to embed the images hosted on your server in their posts. It takes up your bandwidth and can quickly get expensive. Here’s a way to block hotlinking within htaccess:<br />
view plaincopy to clipboardprint?</p>
<p>   1. RewriteEngine On<br />
   2. RewriteCond %{HTTP_REFERER} !^$<br />
   3. RewriteCond %{HTTP_REFERER} !^http://([ -a-z0-9]  \.)?domain\.com [NC]<br />
   4. RewriteRule \.(gif|jpe?g|png)$ &#8211; [F,NC,L]  </p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://([ -a-z0-9]  \.)?domain\.com [NC]<br />
RewriteRule \.(gif|jpe?g|png)$ &#8211; [F,NC,L]</p>
<p>(Of course you’ll want to replace the domain\.com with your own domain name.)<br />
12. Disguise your file types.</p>
<p>You can disguise all of your file types by making them appear as PHP files. Just insert this snippet in:</p>
<p>   1. ForceType application/x-httpd-php  </p>
<p>ForceType application/x-httpd-php</p>
<p>htaccess Techniques<br />
8 Common htaccess Mistakes and Don’ts:</p>
<p>    * Be careful of spelling- .htaccess is not forgiving of spelling errors.<br />
    * htaccess is case sensitive. If something is shown in the examples with a capital letter, make sure it’s capitalized in your htaccess file.<br />
    * Consider your caching needs carefully before setting it up. If your site is almost entirely static, you can set longer cache times. If your site changes daily, make sure you adapt which files will cache for how long. There’s nothing worse as a visitor than coming back to a site thinking there’s been an update and not seeing it.<br />
    * Don’t forget to comment out your notes within the file. This is done by adding a # before the comment line.<br />
    * Always test your site immediately after making any changes to your htaccess file. One mistyped character could make the difference between your site working and being down for hours before you realize what’s happened.<br />
    * On that note, always make sure you backup your htaccess file before making any changes. That way, if there is a problem, you can easily swap back in the old file.<br />
    * Make sure any essential htaccess functions you’ve included are cross-browser compatible. There are certain things some browsers just won’t support (one example is with certain methods for forcing file downloads).<br />
    * Remember when protecting a web directory with htaccess, that unless it’s restricted to https access, the password could be sniffed (as your authentication will be done over an un-secure connection).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laydo.net/2009/09/14/the-definitive-guide-to-htaccess-techniques-do%e2%80%99s-and-don%e2%80%99ts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
