Protect Image From Other Sites

Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image “This images can download in www.domain.com”. You have to add this codes to .htaccess

Change domain with your domain name and sucks.jpe is your image to show

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
 RewriteRule .*\.(gif|jpg)$ http://www.domain.com/sucks.jpe [R,NC,L]
</ifModule>

If you want to serve a standard 403 forbidden error page

RewriteRule .*\.(gif|jpg)$ - [F,L]

If you want to add your friends sites to allow link

RewriteCond %{HTTP_REFERER} !^http://(www\.)?myfriend\.com/.*$ [NC]

Easy Way to Analyze Web Site

PageBossPageboss is a free web service which gives detailed analysis of any website. With this tool, websites and blogs are able to access to a variety of their statistical data. Blog and website owners are suppose to analyse their studies regularly in order to improve thier projects. The process of analysis, which is a requirement to succeed in interactive projects, could cause time and performance losses, if it would be made manually by the owners of blogs and websites. Pageboss looks like a decent service for quick analysis of any website.

This is very quality and easy-to-use web site. Useful specially for bloggers and webmasters. Shows you many quality and necessary informations about your site from multiple sources and search engines. Allowing you to see more statistics from just one place.

This service is available in four different languages: English, Deutsch, Italian and Turkish.

PageBoss Analytics Tool >

PageBoss Describe Their selves;
Pageboss is a basic service to analyse websites for website and blog owners. With Pageboss websites and blogs are able to access to a variety of their statistical data.

Blog and website owners are suppose to analyse their studies regularly in order to improve thier projects. The process of analysis, which is a requirement to succeed in interactive projects, could cause time and performance losses, if it would be made manually by the owners of blogs and websites.

PageBoss on Blog Posts

Speed Up Your Web Sites

Page SpeedGoogle focus on speed and they believe that making their web sites load and display faster improves the user experience and helps them become more productive. Google announced, they want to share Page Speed (open source) which is used  and developed over the years. Page Speed’s suggestions are based on a set of commonly accepted best practices that we and other websites implement.

What is Page Speed?

Page Speed is an open-source Firefox/Firebug Add-on. Webmasters and web developers can use Page Speed to evaluate the performance of their web pages and to get suggestions on how to improve them.

How does Page Speed work?

Page Speed performs several tests on a site’s web server configuration and front-end code. These tests are based on a set of best practices known to enhance web page performance. Webmasters who run Page Speed on their pages get a set of scores for each page, as well as helpful suggestions on how to improve its performance.

Why should you use Page Speed?

By using Page Speed, you can:

  • Make your site faster.
  • Keep Internet users engaged with your site.
  • Reduce your bandwidth and hosting costs.
  • Improve the web!

Page Speed Home Page >
Page Speed Announce at Google Blog >
At TechCrung Blog >

Google SEO Starter Guide in 40 languages

Today, Google announced “SEO Starter Guide now available in 40 languages“. Last November, Google release of Search Engine Optimization Starter Guide, they have steadily been adding localized versions for us. Now, the guide is now available in 40 languages. This means covers of 98% of the global Internet audience.

Here’s a list of the languages available:

Creating Google Sitemap in PHP

We can create dynamic sitemap with using PHP & Mysql. My example code is easy to apply your system.

<?PHP
header('content-type: text/xml');

$mysql_username = "";
$mysql_password = "";
$mysql_database = "";

$dblink = mysql_connect("localhost", "$mysql_username", "$mysql_password");
if (!$dblink) {
die('ERROR: Can not connect database' . mysql_error());
}
@mysql_select_db("$mysql_database") or die ("ERROR: Cannot select database");

echo('<'.'?xml version="1.0" encoding="UTF-8"'.'?'.'>');
echo('<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">');

$contentQ = mysql_query("SELECT * FROM content_table");
while($contentR = mysql_fetch_array($contentQ))
{
$url = $contentR["url"];
$adding_date = date("Y-m-d",strtotime($contentR["adding_date"]));
echo("<url>
<loc>http://www.example.com/".$url."</loc>
<lastmod>".$adding_date."</lastmod>
</url>
");
}
$content2Q = mysql_query("SELECT * FROM content2_table");
while($content2R = mysql_fetch_array($content2Q))
{
$url = $content2R["url"];
$adding_date = date("Y-m-d",strtotime($content2R["adding_date"]));
echo("<url>
<loc>http://www.example.com/".$url."</loc>
<lastmod>".$adding_date."</lastmod>
</url>
");
}
echo("</urlset>");
?>

Google Sitemap Plugins for Wordpress
http://www.dicontas.co.uk/blog/google-sitemap-utw-tag-wordpress-plugin/
http://www.arnebrachhold.de/redir/sitemap-home/
http://www.karailiev.net/karailievs-sitemap/
http://southcoastwebsites.co.uk/wordpress/

What is Canonical Link Element?

Google, Yahoo, Ask and Microsoft announced support for a new link element to clean up duplicate urls on sites. We add HEAD part of document, its syntax is pretty simple

<link rel="canonical" href="http://www.webmastersucks.com/pages.html" />

This syntax is telling search engines that the preferred location of this url is http://www.webmastersucks.com/pages.html instead of http://www.webmastersucks.com/pages.html?PHPSESSID=293JA434MFNs

yoast.com has already produced several plugins for WordPress, Magento and Drupal. You can find plugins in Yoast.

If we used “canonical”, then our content is not dublicated. These are same, and search engines see the same content. Make all the non-canonical urls do a permanent (301) HTTP redirect to the canonical/preferred url.

www.example.com
example.com
www.example.com/
example.com/
www.example.com/index.html
example.com/index.html

Links About Canonical Link Element

Matt Cutts’s Slide Show >
Google’s Blog Post >
Yahoo’s Blog Post >
Bing’s Blog Post >
Ask.com’s Blog Post >

Converting Unescape Chars in MySQL for SEO

Sometimes, i need to convert datas for search engine optimization (SEO). I use MySQL replace command for this. Just login to phpmyadmin or any tool for run SQL command. Paste command set, change table and field name than run.

UPDATE table SET field = replace(field, 'À','A');
UPDATE table SET field = replace(field, 'Á','A');
UPDATE table SET field = replace(field, 'Â','A');
UPDATE table SET field = replace(field, 'Ã','A');
UPDATE table SET field = replace(field, 'Ä','A');
UPDATE table SET field = replace(field, 'Å','A');
UPDATE table SET field = replace(field, 'Æ','AE');
UPDATE table SET field = replace(field, 'Ç','C');
UPDATE table SET field = replace(field, 'È','E');
UPDATE table SET field = replace(field, 'É','E');
UPDATE table SET field = replace(field, 'Ê','E');
UPDATE table SET field = replace(field, 'Ë','E');
UPDATE table SET field = replace(field, 'Ì','I');
UPDATE table SET field = replace(field, 'Í','I');
UPDATE table SET field = replace(field, 'Î','I');
UPDATE table SET field = replace(field, 'Ï','I');
UPDATE table SET field = replace(field, 'Ò','O');
UPDATE table SET field = replace(field, 'Ó','O');
UPDATE table SET field = replace(field, 'Ô','O');
UPDATE table SET field = replace(field, 'Õ','O');
UPDATE table SET field = replace(field, 'Ö','O');
UPDATE table SET field = replace(field, '×','Z');
UPDATE table SET field = replace(field, 'Ø','O');
UPDATE table SET field = replace(field, 'Ù','U');
UPDATE table SET field = replace(field, 'Ú','U');
UPDATE table SET field = replace(field, 'Û','U');
UPDATE table SET field = replace(field, 'Ü','U');
UPDATE table SET field = replace(field, 'ß','ss');
UPDATE table SET field = replace(field, 'à','a');
UPDATE table SET field = replace(field, 'á','a');
UPDATE table SET field = replace(field, 'â','a');
UPDATE table SET field = replace(field, 'ã','a');
UPDATE table SET field = replace(field, 'ä','a');
UPDATE table SET field = replace(field, 'å','a');
UPDATE table SET field = replace(field, 'æ','ae');
UPDATE table SET field = replace(field, 'ç','c');
UPDATE table SET field = replace(field, 'è','e');
UPDATE table SET field = replace(field, 'é','e');
UPDATE table SET field = replace(field, 'ê','e');
UPDATE table SET field = replace(field, 'ë','e');
UPDATE table SET field = replace(field, 'ì','i');
UPDATE table SET field = replace(field, 'í','i');
UPDATE table SET field = replace(field, 'î','i');
UPDATE table SET field = replace(field, 'ï','i');
UPDATE table SET field = replace(field, 'ñ','n');
UPDATE table SET field = replace(field, 'ü','u');
UPDATE table SET field = replace(field, 'ò','o');
UPDATE table SET field = replace(field, 'ó','o');
UPDATE table SET field = replace(field, 'ô','o');
UPDATE table SET field = replace(field, 'õ','o');
UPDATE table SET field = replace(field, 'ö','o');
UPDATE table SET field = replace(field, 'ø','o');
UPDATE table SET field = replace(field, 'ù','u');
UPDATE table SET field = replace(field, 'ú','u');
UPDATE table SET field = replace(field, 'û','u');
UPDATE table SET field = replace(field, 'ÿ','y');