Blog Redirection

Posted by Richie S. | 10/18/2008 03:46:00 AM | | 0 comments »

Lots of blogs are being redirected to other sites to attract traffic. These blogs usually have a title designed to attract attention and when viewers click on the blog link they are redirected to other sites.....

The importance of redirection lies in the fact that your own blog may be hacked and all traffic redirected to other sites. To avoid this it is important to see the methods used for redirection.


HTML REDIRECTION

First login to blogger ,click on layout under the blog name, then click on Edit Html.
You may want to download the template to restore it if any errors happen.

This is the method used in the above example. The following code is used :

This code is pasted in the blog post or in the section of the template. This causes the blog to redirect to http://site.com/page.html even when the browser has Javascript disabled. To delay the redirection a number is put after the "content=" like this :

The delayed redirect has the advantage that you can place an extra message, such as “The page you are looking for changed location… You will be redirected automatically to the new location”


JAVASCRIPT REDIRECTION

This is the other method used. It does not work if Javascript is disabled in viewer's browser. The following code is pasted in the section of the template.

EXTERNAL JAVASCRIPT can also be used to redirect your blog. The way this works is that you may wish to incorporate a hack in your blog. You are then asked to paste this line above the tag in your template :

The jshack.js file is located at http://URL OF HACK SITE/ and contains the redirect code. You can see the full code when you type the whole address for the file in the address bar and press Enter.
To prevent this type of redirection do not add such codes in your template unless they come from a trusted site. You can also download the JS file and add the whole code instead of a link to the file.


JAVASCRIPT ALERT REDIRECTION

You can alert your viewers that they are being redirected using this Javascript code :

To use a confirm dialog use this code :

0 comments