Custom Search

Conficker Eye Chart

Conficker worms [wikipedia] began waking up again via peer-to-peer (p2p) protocol one week after a surprise calm April 1 the day when it was believed they awaken. The malicious virus, also known as Downadup or Kido, have infected millions of computers in the world since January. One of the lastest institute falling to be as victim is University of Utah. Worrying about if your own computer running Microsoft’s Windows OS was infected the dread malware worms? Conficker Working Group comes up with a simple yet very great infection test tool called Conficker Eye Chart at http://www.confickerworkinggroup.org/infection_test/cfeyechart.html. By simply visiting the webpage the afore link points to, you can immediately know if your computer was infected Conicker virus or not after viewing the visual results (see the screenprint below).

Conficker Eye chart Results explanation

If your computer was indeed infected, don’t panic, Lifehack’s Protect Your Windows PC from the Conficker Worm article is a must read. Good luck!

Insert Multiple Images Into a Post Published by Wordpress 2.6, 2.7

Written by Lindsay Britney on Aug 31, 2008.

Update: This manner is also applicable to Wordpress 2.7, I have tested.
***
When using the latest Wordpress 2.6+ software, one may encounter such an embarrassment—-each time the blogger can only insert a picture, after that, the media pop-up dialogue window closes.

So if you want to insert multiple images, say more than 5 at a time, into a single post, you have to repeat uploading again and again until the last one.

Someone may advise that the pictures be uploaded into the gallery first, then insert the gallery. But the problem here is that the pictures can not be freely arranged in the post.

Aren’t that frustrating? The answer is a definite yes! So this entry provides the ways to solve such problems by doing a bit of code modifications to let you simultaneously insert bulk batches of images then realign them. The concept is quite simple–keep the pop-up media dialogue window open each time after inserting a picture.

Following the steps below to do so,

  • Log in to the FTP client you use, (here take the FileZilla as example)
  • Open the “yoursite.com[or yoursite.com\blog]\wp-admin\includes” directory
  • Locate the file “media.php”, right click, in the drop-down menu, select “view and edit”
  • In the file automatically opened by Notepad, locate the section below in   “function media_send_to_editor($html)” tag
<?php
	exit;
}
  • Add double slashes “//“  right before exit, and “return;” right below one line of exit, so the code now looks:
function media_send_to_editor($html) {
	?>
<script type="text/javascript">
<!--
top.send_to_editor('<?php echo addslashes($html); ?>');
//top.tb_remove();
-->
</script>
	<?php
	//exit;
   return;
}
  • Save the file and in the FTP client, the file will be automatically updated. [to this point, those blogs using wordpress 2.5 already achieved the goal, but for wordpress2.6 or higher, keep do something listed below]
  • Return to the FTP client pannel and locate the wp-admin/js/ directory
  • Find media-upload.js file, this time you may need to download it onto the desktop, and right click the file, open it with Notepad (in the FTP panel,  using the way above to open media.php file, might not suit to open media-upload.js as the latter is a javascript file and might not automatically associate with Notepad)
  • Locate tb_remove(); you can easily find it by using the “Ctr+F” in Notepad
  • Add  double slashes “//” before tb, so the code now is //tb_remove();
  • Save the media-upload.js file
  • Upload it back to wp-admin/js/ directory, when prompt if you need to overwrite the existing file, click yes.
  • Wait for some minutes (or even hours) before the new script functions.
  • Hooray, you make it! Now you can bulk upload multiple image simultaneously inserted at a time while simply remain on the media pop-up dialogue window. After than you can freely rearrange your photos and wrap up texts around those you desire.

Source: How do u insert multiple images into a post?, On Wordpress 2.5 | Wordpress.org/Support

Proventing Image Hotlink for Wordpress-supported Blogs

Written by Lindsay Britney on Aug 30, 2008.

Needless to say why to block the image hotlink from a site, simply because of the need to prevent someone to steal its bandwidth (thus save the extra money for the webhosting).

Wordpress gurus please ignore this entry, as the post here is only intended for those newbies who just host their wordpress.org-supported blogs on a web host and want prevent other bloggers hotlinking their images.

Follow the steps below and make your images only available to your own site and let search engines, like Google, Yahoo and Msn, to index.

  1. Log in your FTP client, here we recommend to use FileZilla (it’s open source, and versatile)
  2. Locate “Server” menu, and click “Force showing hidden files”
  3. Doube-click the the site root directory in the FileZilla panel, like this site, it’s hollywoodcelebgossips.com.
  4. Find a file named .htaccess
  5. Download it to the desktop and open it using Notepad, you are now getting the default Wordpress .htaccess file.
  6. Insert the code in Step 7 below the line of “RewriteRule . /index.php [L]" obtained from the default file in this step.
  7. RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} .*jpe?g$|.*gif$|.*png$ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !hollywoodcelebgossips\.com [NC]
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !live\. [NC]
    RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
    RewriteCond %{HTTP_REFERER} !msn\. [NC]
    RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
    RewriteRule .* - [F]

  8. Say if your URL is www.example.info, replace “hollywoodcelebgossips” and “com”, with “example” and “info”, respectively, in the fourth line of the code above.
  9. Save .htaccess file in Notepad and upload it to your site root directory in FileZilla panel.
  10. When prompted if to overwrite the existing file with the same name, click “Yes” in the pop-up window.
  11. You make it! The images will only appear on your own site, RSS readers and some time later search engines’ image search will bring you the traffics.

If wanna know how to tweak .htaccess file for non-wordpress supported blogs/sites, please visit WalkerNews.net’s Image Hotlinking Prevention With Apache Mod_Rewrite which is also the inspiration of writing up this tip.