Webmaster tutorials and examples

Use netcat (nc) to check if a remote port is reachable

Netcat (nc) can be use to check if a remote port is reachable and client can connect to it. Checking tcp port Use -t (tcp), read more

How to resubmit robots.txt to Google

An error in robots.txt can cause Google to stop crawling a section of your site. In such case it is good to update and resubmit read more

Command line – top IP list from apache access log

Linux (or Unix) command line utilities like awk, sort, uniq, can be used to analyze apache log to get interesting stats. One use case is read more

robots.txt disallow all example

Sometime we need to block all robots from crawling a web site. This can be needed if you have a stage or sandbox website for read more

How to use wildcard in robots.txt

By default Disallow entry in robots.txt is based on url prefix. To block every url beginning with /foo/ the following robots.txt can be used. User-agent: read more

How to override priority and change frequency in Yoast xml sitemap

It is important to maintain healthy xml sitemap for your site. In case you are using Yoast SEO plugin to generate xml sitemap for a read more

Xml sitemap – quick introduction

Submitting an xml sitemap to Google webmaster tools is recommended way to get site urls indexed by Google. This helps google to reach various urls read more

PHP apc – setup and performance benchmarks on Ubuntu Linux

APC (Alternative php cache) is opcode and object cache for php. It caches the php bytecode on first execution of a php script which increases read more

How to install and monitor memcache for php on Ubuntu Linux

Memcache is one of the most popular distributed memory based cache system. It can give excellent performance results if configured correctly. Its a good idea read more

Php apc vs memcache

When you are running a site in php (wordpress or non-wordpress), there are two popular options for in-memory cache. APC (Alternative PHP cache): Opcode and read more

How to bypass cross site scripting (XSS) protection by browsers

Cross site scripting (XSS) protection is handled by many browsers. I was able to test it in Google Chrome and IE (IE 8 and higher). read more

How to undo HTTP 301 site/domain redirect

In case you have moved a site to new domain and set all the HTTP 301 redirects (HTTP permanent redirects), then user who visits your read more

How to display wordpress page list with specific custom field value

WordPress lets you display a list of pages as links with many customizations. You can use wp_list_pages or get_pages to display or get list of pages. read more

How to setup MailChimp Rss email campaign

MailChimp can be used to setup email campaign and send a regular email newsletter to all the email address in a list. Most common use read more

How to setup MailChimp email list

MailChimp is very popular tool to manage email campaigns/newsletters. The first step in setting up any campaign or newsletter is to create an email list read more

Google feedburner email subscription vs Mailchimp

Google feedburner offers an email subscription to your feeds. So far I was using that. Mailchimp is one of the most popular email list management read more

How to setup Google feedburner email subscription newsletter

If you are using Google feedburner for rss feeds, you can setup feedburner email subscription newsletter within few minutes. I have been using it for quite read more

how to use netcat (nc) to test HTTP url redirection

Netcat (nc) is pretty powerful command line tool on Linux & Mac and can be used to send data on network. It can be quickly read more

How to redirect wordpress feed to feedburner feed url

If you have been using wordpress for directly serving rss feed and have recently migrated to feedburner, then some of your users are still being read more

How to use your own domain name for feedburner feed urls

When you create a feed your your wordpress blog you get a url of the form http://feeds.feedburner.com/feedid. You can change feeds.feedburner.com to your own domain. It read more

How to create rss feed for wordpress blog on Google feedburner

When you install wordpress you automatically get feed or rss setup at url /feed/ (or /rss/). It seems to be a good option to continue read more

How to become Google verified author of your wordpress blog using Google+ profile

[Update: Authorship is no longer supported by google. You may also want to visit Google rich snippet documentation.] Google displays author information in search results read more

How to set different HTTP Expire Header for multiple images of same type

HTTP expire header can be used to set a expiry time for an image, css or any other content type. The browser does not fetch read more

How to migrate your site from one domain to another

Migrating a site from one domain to another can be a daunting task. But if we create a clear plan then it is a manageable task. read more

How to setup ssl (https) for your site on Ubuntu Linux

You may need ssl for your site for multiple reasons. I needed it for facebook apps. So my requirements are not so strict. For building read more

How to monitor 404 pages on your site

One of the main activity a webmaster has to perform is to monitor and fix 404 pages (not found pages) on the web sites. When read more

How to use w3 total cache for wordpress

W3 total cache by Frederick Townes is probably the best wordpress cache plugin. Setting it up for best outcome can take sometime. But once you get read more

How to and why disable wordpress cron

WordPress crons are different from traditional Linux or Windows crons. Traditional cron runs as independent processes at regular interval. WordPress crons are php hooks which read more

How to make best use of Alexa

Alexa is a powerful tool for getting high level insight into any website. It can be used to research websites related to a specific topic read more

How to select a domain name for your site

Almost all of us spend a great deal of time deciding what domain to use for our site or venture. Moreover once you pick a read more

How to remove urls from Google index using webmaster tools

Many times you want to remove urls from google index. There can be many reasons for doing that. Some of the reasons are: A page read more

Verify a web site in google search console (webmaster tools)

Google provides extremely useful Search console (webmaster tools) to perform various activities and view stats of your web site. Here are some reasons why you read more

Traceroute outcome from Bangalore to AWS Virginia and California

I recently noticed that my site (http://infoheap.com/) which was hosted on AWS North Virginia data center was very slow. I was accessing it from Airtel read more

Javascript xss (cross site scripting) – How to prevent

Cross site scripting (XSS) happens when some input on a page (through GET or POST request) is not properly escaped before displaying. If that happens read more

Should I block Googlebot from crawling javascript and css?

I noticed that google bot is crawling javascript and css regularly from by wordpress blog site. Here are some entries from my apache log: 66.249.75.66 read more

Tips on improving the performance of your WordPress blog or site

WordPress is a great blogging platform and there are plugins for pretty much everything you need. But with too many plugins it affects the performance read more

www vs non-www domain which is better for your site?

I have been doing some research on whether to use www or not in domain of the urls of the site. If you setup wordpress read more