Archive for the Category ◊ Webmaster / SEO ◊

08 Aug 2006 Tired of DMOZ’s description?
 |  Category: Webmaster / SEO  | Leave a Comment

If your web site is listed in the Open Directory Project (ODP, dmoz.org) then Google and MSN will often use the text that the ODP uses to describe your web site in their own search results.

Unfortunately, the descriptions in the Open Directory Project are often outdated and they don’t reflect the current status of a web site. That means that your web site might be listed with an outdated description in the search results on Google and MSN.

How to get rid of the ODP description

To tell Google and MSN not to use the ODP description for your web site. You can direct Google and MSN not to use the ODP as a source by adding a new Meta tag to your web pages.

To prevent all search engines (that support the Meta tag) from using the ODP description for the page’s description, use the following HTML tag:

[code]

[/code]

To specifically prevent Google from using this information for a page’s description, use

[code]

[/code]

or just prevent MSN from using the description, use

[code]

[/code]

Once you add this Meta tag to your pages, it may take some time until a new description of your web page will appear in the search results of Google and MSN, depending on how often your site is spidered.

Yahoo does not support the NOODP tag, since they operate their own directory they do not need to pull the web page descriptions from the ODP.

——————————–
Test king has world class reputation in conducting tests for computer courses and certifications in tests such as 1Y0-258 and 312-50. Other tests conducted at test king prepare students for Cisco certifications with tests like 646-171 and 642-104. Test king is also known for Microsoft testing with practice tests such as 70-551 and 70-298.

07 Jul 2006 DHTML expandable lists
 |  Category: Webmaster / SEO  | Leave a Comment

How to create a DHTML expandable lists.

Try the following example:








-
Text 1 TITLE

text that is displayed under Text 1 TITLE
another line of text here
-
Text 1_1 TITLE

Text under Text 1_1 TITLE catagory
-
Text 1_2 TITLE

This is a test of the emergency broadcasting system.
-
Text 1_2_1 TITLE

If there were a real emergency and you thought someone would care this
information would be classified and you wouldn't know anyhows
-
Text 1_3 TITLE

Example for 1_3 text area...
Notice in the code that the breaks all have a trailing slash....thus closing the br tag
I'm trying to remember to use correct syntax before something breaks it.



22 Jun 2006 php case change
 |  Category: PHP Code, Webmaster / SEO  | Leave a Comment

This is available for PHP 3, PHP 4, & PHP 5.

strtoupper — Make a string uppercase

Description
string strtoupper ( string )

Returns string with all alphabetic characters converted to uppercase.

Note that ‘alphabetic’ is determined by the current locale. For instance, in the default “C” locale characters such as umlaut-a (ä) will not be converted.

Example 1. strtoupper() example
[code]
$string = "This is a test of the Emergency Broadcasting system...";
$string = strtoupper($string);
echo $string; // echos - THIS IS A TEST OF THE EMERGENCY BROADCASTING SYSTEM...
[/code]

Note: This function is binary-safe.

26 Apr 2006 Protect your web pages – automagically with perl

After a recent incident of some piss poor script kiddie defacing one of of my websites I wote a quick and dirty little perl script to both monitor and repair things should it happen again. (thus giving me much more narrow window of server logs to check to find the exploit or whatever allowed it to happen in the first place).

Here’s how it works in a nutshell, the site’s content is completely dynamic, however the php script to generate it is static..

  • $file1 is the working page
  • $file2 is the name of the known good page
  • generate a checksum of the two files, the output will be a string of numbers followed by a character count and the filename checked.
  • compare the first 10 digits of the checksum of the returned string (adjust to suit your needs)
  • if they are different run ‘page’ (sends an email to my cell/pager) and ‘repair’ (renames the bad file appending the date/time then copies the known good file to replace the defaced one)
  • otherwise exit
  • Pretty simple, and I’m certain my code could be optimized to run a lot cleaner (if you want to submit a cleaner version by all means post it in the comments!) In the interim this works.

    compare.pl
    [code]
    #!/usr/bin/perl
    ###Dave Cochran http://www.greyfuzz.com
    $file1 = "index.php";
    $file2 = "index.good";
    $diff1=`cksum $file1`;
    $diff2=`cksum $file2`;
    $diff1value = substr($diff1, 0, 9);
    $diff2value = substr($diff2, 0, 9);
    if ($diff1value != $diff2value)
    {
    &page;
    &repair;
    exit;
    }
    #print "no difference in file checksums.";
    #uncomment the line above for testing
    exit;

    sub page
    {
    # sendmail routine source from http://kangry.com/topics/viewcomment.php?index=427
    use Time::localtime;
    open (OUT,"|/usr/sbin/sendmail -t");
    print OUT "From: you\@yourdomain.com\n";
    #remember to escape the @
    print(OUT "Date: ".ctime()."\n");
    print(OUT "To: email\@youremailorpager.com\n");
    #remember to escape the @
    print(OUT "Subject: Index.php changed!\n");
    print(OUT "\n");
    print(OUT "index.php has been changed!\n");
    close(OUT);
    } # end sub page

    sub repair
    {
    use Time::localtime;
    use File::Copy;
    rename($file1, $file1.ctime()) || die "Cannot rename file.txt: $!";
    copy($file2, $file1) or die "File cannot be copied.";
    } # end sub repair
    [/code]

    This will require two perl modules Time::localtime and File::Copy which are generally installed with the perl bundle by default, if not get them from CPAN or contact your host.

    Simply run the script I called compare.pl via cron or whatever means you wish as often as you want to check the page. Personally every 5 mins works out pretty good for me.

    Feel free to use the code above as you will, modify it to suit your needs, be it to protect your web pages, files, or whatever. If you find it useful, please send $$$, or just a thanks.

    20 Apr 2006 A great Vbulletin resource
     |  Category: vBulletin, Webmaster / SEO  | 5 Comments

    While surfing around I found yet another great resource for vBulletin, great folks with lots of good ideas, and a lot of expertise.

    Take a look at vbulletin-faq.com Tell’m dakar referred you :)