Archive Page 7

How To Prevent Others From Loading Your Page In A Frame

Last month, I found out that someone was loading one of my pages in his website using a frame. Whenever the website is loaded, my page will appear as if it was the owner’s. I do not know what this person is trying to do or gain from it but I found a method to defeat it.

There is an article at Web Developers Notes on how to prevent web pages from loading in frames. You only need to insert the javascript code below in the HEAD section of the document that you would like to protect.

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
if (self != top)
   {
   top.location.href = self.location;href;
   }
//-->
</SCRIPT>

How does it work?

The paragraph below is quoted from the article. It explains how and what the code does.

The code tests whether the top page is the same as the page being displayed. If this is not the case, the URL of the top page is changed to the URL of the present page. Thus, your page always loads in a full browser window the way you wanted it.

Verdict

I have tried it out and it works like a charm. Try clicking here to check out the previous website that was loading my page in a frame. Now, the page redirects to my original page. Notice the URL at the top of the page shows it is loaded from my blog.

If you want to prevent others from loading any of your pages in a frame, use the code provided above.

Maximum Benefit From Exabytes’ Trade-in Promotion

Exabytes is currently offering a “trade-in your hosting” promotion. All you need is to show them proof of purchase of your current web hosting package. They will extend your web hosting plan with them for the same length of time when you purchase 1 year of hosting plan with them. For example, if you have 6 months left of your current web hosting plan, they will host your website for 1 year and 6 months.

Please take note that the maximum they will extend your hosting is 12 months. Therefore, your hosting plan will be extended a maximum of 12 months even though you have more than 12 months remaining with your current hosting.

This promotion ends 5th November 2007.

How to optimize your “profit” from this promotion?

Their cheapest EBiz 1 hosting plan is at RM199 per year. It is quite a good package where you can host up to 10 + 1 domains. You get 10GB of space and 50GB data transfer.

To maximize your “profit”, simply sign up with a cheap hosting for 12 months. There are some hosting packages out there that cost around RM10-20 per year. Then, use the receipt to claim back 12 months extension from Exabytes. That way, you pay RM199 + RM10 (for example) for 2 years of hosting with Exabytes. That is less than RM9 per month.

Disclaimer:

This “hack” or tip is not verified. I have no idea if it works. If you are interested in this offer by Exabytes and want to get the maximum benefit out of it, please send a ticket to Exabytes’ customer support to verify before purchase. I shall not be held responsible for anything you do. :-P

Yat Yi Sam Sei

Four aces card

To some people, the number 4 isn’t a good number. To the Chinese, the number 4 means die or death. To some, “4 letter words” represent vulgar words. There are 4 letter vulgar words that start with A, B, C, D, (err…E?), and the famous “F”.

I don’t know why I came up with an introductory paragraph like that. LOL. Sorry, couldn’t think of anything else. Anyway, pablopabla gave me the link love so I guess I need to do this :-) Below are the 4s about myself.

4 Jobs I have had in my life:

  • Cashier
  • Computer technician
  • Computer salesman
  • Tech promoter

4 Places I have lived:

  • Kuantan
  • Kajang
  • PJ
  • Mother’s womb

4 Countries I have been to on vacation:

  • Singapore
  • New Zealand (this coming December)
  • Malaysia
  • Malaysia (a-buh-den? I no money.)

4 of my Favorite food:

  • Nasi lemak
  • Curry mee
  • Mee goreng
  • Roti Canai

4 Places I would rather be right now:

  • Some place not so hot
  • Some place where politics isn’t a “2 times 4 letter word”
  • Some place where no politicians are corrupt
  • Some place where people are truly civilized

4 Friends I’m going to link love:

Jeff Ooi Joins Nuffnang

Jeff Ooi joins Nuffnang. Bye bye Advertlets.I remember reading or heard Jeff Ooi praising Nuffnang and mentioned that if he were to join either one of the two blog ad aggregators in Malaysia, it would have been Nuffnang. Join Nuffnang he did.

I don’t know what kind of charm Timothy and Ming has but it seems like they are able to convince and attract more big time bloggers compared to *ahem*. There is no doubt that money could be one of the factors but I wonder if there is anything else apart from that.

I wonder which company will become the first advertiser at Jeff Ooi’s Screenshots.

Backup WordPress Database The Easy Way

Most web hosting providers do a daily backup on their servers. In case of any failures on the primary harddisk, there is always a backup to fall back on. However, these backups are never or at least seldom guaranteed by web hosting providers. Therefore, it is always advisable to have a backup of your database yourself.

Here are two methods where you can backup your database.

Method #1: Manual backup through cPanel (control panel)

You should be given a control panel to manage your account. The type of control panel depends on a few factors including the operating system that you are on. If you are using something else apart from cPanel, you will need to check how your control panel works.

Use cPanel to backup database

For cPanel users, click on the Backup icon. You will then be directed to the backup page where you can choose to download a backup or restore your database with your previous backup.

Download database in cPanel

Click on the link of the database that you want to download.

Method #2: Automatic backup using Wordpress Plugin (the easy way)

The Wordpress Database Backup plugin can be setup to backup your database automatically. This plugin is very useful and easy to use.

Wordpress database backup plugin error

After activating the plugin, go to “Manager … Backup”. If you see an error message such as “WARNING: Your wp-content directory is NOT writable! We cannot create the backup directory.”, you have two options to solve it. The first method is to set the permission of the wp-content folder to 777 (remember to change it to the default settings later). However, I recommend creating the backup folder manually. That way, you don’t risk leaving the permission of the folder to 777 and risk any potential attack.

The backup option page is split into two parts. The top part is used to download, save a copy in your server or send a copy of the backup to your email. The bottom half is used to configure automatic backups. You can select the frequency of the backups — never, once hourly, once daily or once weekly. The backup will be sent to your email address. Click on the submit button when you are ready.

The frequency of the backup should depend on a few factors including the number of posts you publish and the number of comments you get. If you publish a few posts daily and/or you get a lot of comments daily, it is best to backup daily. Or else, do it weekly.

Do it now

Many others have recommended this plugin as a “must have” for bloggers. Unfortunately, not everyone has taken the initiative to activate this plugin including myself. Well, I have just activated it a few hours ago and it is working like a charm. You should do it too before you lose your posts and comments to a harddisk failure.


Page 7 of 44« First...«4567891011»...Last »



Close
E-mail It