How To Add “nofollow ” And “noindex” In Your WordPress Website

24 12 2009

Source » www.iwingmusic.co.cc

Some people reported that using plugin doesn’t fully work. Mostly it fails to add “nofollow” to page’s links.

Using a lot of plugins will decrease your website performance. I recommend you not to use plugins that aren’t really needed. For instance, you can hack your wordpress copy to put “nofollow” instead of using plugin, except you’re newbie and have no luck on how to do it yourself. But actually no matter you’re newbie or not, you can still do it (like me :-D ) if you follow the steps carefully.

Using “nofollow” is usually to intend to give higher rank to website or to avoid spams for having credit from search engine.

Files:

  1. /wp-login.php
  2. /wp-includes/classes.php
  3. /wp-includes/author-template.php
  4. /wp-includes/bookmark-template.php
  5. /wp-includes/category-template.php
  6. /wp-includes/comment-template.php (No need for version 1.5 & above)

Edit:

  1. Put
    <meta name="robots" content="noindex,nofollow" />

    between head tag.

  2. Search for:
    $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';

    and change to:

    $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" rel="nofollow" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';
  3. Search for:
    function the_author_posts_link($deprecated = '') {
          global $authordata;
          printf(
          '<a href="%1$s" title="%2$s">%3$s</a>',
          get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
          esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
          get_the_author()
          );
          }

    and change to:

    function the_author_posts_link($deprecated = '') {
          global $authordata;
          printf(
          '<a href="%1$s" title="%2$s" rel="nofollow">%3$s</a>',
          get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
          esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
          get_the_author()
          );
          }
  4. Search for:
    $output .= '<a href="' . $the_link . '"' . $rel . $title . $target . '>';

    and change to:

    $output .= '<a href="' . $the_link . '"' . $rel . $title . $target . ' rel="nofollow">';
  5. Search for:
    $rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? 'rel="category tag"' : 'rel="category"';

    and change to:

    $rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? 'rel="nofollow"' : 'rel="category"';

    Search for:

    $rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';

    and change to:

    $rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel="nofollow"' : '';

    Search for:

    foreach ( $terms as $term ) {
          $link = get_term_link( $term, $taxonomy );
          if ( is_wp_error( $link ) )
          return $link;
          $term_links[] = '<a href="' . $link . '" rel="tag">' . $term->name . '</a>';
          }

    and change to:

    foreach ( $terms as $term ) {
          $link = get_term_link( $term, $taxonomy );
          if ( is_wp_error( $link ) )
          return $link;
          $term_links[] = '<a href="' . $link . '" rel="nofollow">' . $term->name . '</a>';
          }
  6. No need




Akismet, Proxy And The Privacy

18 12 2009

I have found something about Akismet past few days. Now I update my writing.

Akismet flags users behind proxy as spam. I have tested that when I use proxy to connect then my comment will disappear even if I have logged in.
Well I don’t know if this is fair or not, but sometimes I use proxy for privacy and sometimes not, and that doesn’t mean I’m spammer. For a technology that is used by a lot of people around the world without being able to configure manually is not a good idea. People will miss chances with legit users.

So what reason to use it? It’s totally a crap. Just use captcha for your own sake. I have a friend that always use proxy without referrer to browse internet and he’s legit user, not a spammer, never spams anyone.

Of course if you use wordpress.com you have to live with that. WordPress is a big company doesn’t need legit users having privacy. You need WordPress and WordPress doesn’t need you ;-) .





AKISMET IS A BIG JOKE OF THE CENTURY

23 11 2009

AKISMET IS A BIG JOKE OF THE CENTURY!

Now I couldn’t comment anywhere again. It proves that Akismet is a blacklist! (Don’t lie Akismet!) Even on the page that I have previously approved comments or on Akismet page of WordPress.

I’ll continue writing about Akismet anywhere as it blocks me anywhere.

I’ll update it soon.





Need No Akismet

19 11 2009

I don’t use Akismet on my self hosting blog anymore since maybe I have enough reasons:

  • I don’t need it for my little website for now. I don’t have much enough spam comments as well because I use captcha for registration and comment. Since then no more unwanted registrations and comments.
  • Akismet actually is a blacklist to me although they said not ;-) (sorry Akismet). Because I have prove and logic. I don’t know which criteria makes a comment as a spam for Akismet. And I know the options of “Don’t discard spam on old posts”, “An administrator must always approve the comment”, “Comment author must have a previously approved comment”, “Hold a comment in the queue if it contains … or more links.” of WordPress. I mean you are always flagged as spam anywhere once Akismet caught you. Akismet will take care of comments that are flagged as spam as to that options unchecked will prevent tons of spam comments going to your folder. The funny thing is that I have previously approved comment and when I came back to comment again with same name, email but this time with my website URL filled in box is flagged as spam. Nothing showed. Nothing words like “your comment is awaiting for approval”, moderation or something. It went to spam folder, didn’t it?
  • I think a spam is unintelligible comment with many words and URLs is usually generated by robot or script or machine software, not an ordinary legit comment that has link(s) in it.
  • If using captcha works, why do I have to use Akismet still?
  • Maybe I will lose any good information by using Akismet anyway.

And this is what I call spam. It’s generated by random machine. Usually used for forum with common [tag]:





Thanks Akismet!

15 11 2009

This is good news for me, hehe ;-) .

Akismet said it is fixed.

Sorry for the problem. I believe it is fixed now.

Please note that Akismet is not a blacklist. Your comments may not be published on some blogs if the owners of those blogs have indicated they believe them to be spam.

edwinraja [ at ] edwinraja.com wrote:
> Well this is the second time I contact you that I might hope any reply
> for sure.
>
> You used to warn about me being a spammer in your list. How come? What
> have I done? Could you prove it? Are you sure you are the best anti spam?
> Because heck I use you on my blog.
>
> Regard.


Alex Shiels

I have proven that it is fixed on this blog though it’s awaiting moderation. At least it does not suddenly disappear like days before. Ok, thanks Akismet for the response ;-) .

Prove





Akismet Is Being A Pain In The Ass!

14 11 2009

Submitted!

Thank you! Your bits are flying through cyberspace towards us as you read this. We’ll get back to you ASAP.

* Note about this question. You might wonder, if these guys are so good at spam blocking why would they put a stupid question like this on their contact form to keep spam out? Well, Akismet is great at protecting contact forms, we use it on all our other sites, but on Akismet.com sometimes people use the contact form to tell us they’re being blocked by Akismet.

If you think about that, blocking people when they’re trying to tell us they’re wrongly blocked would probably frustrate them, hence the math question.

Unfortunately, the math question, like most non-adaptive anti-spam measures, is already being defeated and spambots are being written that can parse and solve basic math equations.

Well this is the second time I contact you that I might hope any reply for sure.

You used to warn about me being a spammer in your list. How come? What have I done? Could you prove it? Are you sure you are the best anti spam? Because heck I use you on my blog.

Regard.

That was my second form to Akismet. Now I can only wait for the answer.

I don’t know what’s goin’ on here. If Mark-WordPress told me to remove any affiliate links anywhere on my blog, I already did that. You couldn’t find any of them on this blog. Now what? What’s the connection between WordPress and Akismet?! Because this problem came up together at the same time.

Does Akismet mean that NO LINK AT ALL for being a something legit to them? Is that a true stupid answer?

This is a comment taken from http://www.entrepreneurs-journey.com/548/switching-to-akismet-for-anti-spam/ :

On November 11, 2009 at 4:43 am George Hamilton said:

Akismet is a joke service. My comments are flagged as “spam” . Funny thing is i never ever entered any website info when i am commenting. I have dynamic IP and changing IP address doesnt work. And i live in a city with 6 million population. I think they banned entire city IP addresses. I am asking to akismet to put a live “false spam marked” counter. Akismet is the worst spam protection addon for wordpress.

If no one can advise me of this problem, then maybe I’m in the way of Anti Akismet-WordPress and start using another free PHP source code like Joomla, Drupal or something.

Help me please?!





Inove WordPress Theme

13 11 2009

I newly use Inove WordPress theme on my main website. It has Google Adsense For Serach option. Kind of good option except error when performing search. You have to manually configure. Here is how I made this thing done.

  • Login to your admin page and click Current Theme Options on Appearance tab.
  • Check Using google custom search engine tickbox and type in you CX name of your Google code inside CX textfield. For example: “partner-pub-1234567890123456:f69j39-flrj” without quotes and Save Changes.
  • Edit header.php inside “templates” folder of current theme right after “<?php if($options['google_cse'] && $options['google_cse_cx']) : ?>”, change “yours” to your value.
    <form action="yours" method="get" id="cse-search-box">
    <div class="content">
    <input type="text" class="textfield" name="q" size="24" />
    <input type="hidden" name="cof" value="yours" />
    <input type="submit" class="button" name="sa" value="" />
    <input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" />
    <input type="hidden" name="ie" value="yours" />
    </div>
    </form>
  • Edit index.php located inside root folder of current theme by placing this snippet after “<?php endif; ?>” at line 31, change “yours” to your value :
    <?php if ("is_search()") {
    echo "<div id=\"cse-search-results\"></div>
    <script type=\"text/javascript\">
    var googleSearchIframeName = \"cse-search-results\";
    var googleSearchFormName = \"cse-search-box\";
    var googleSearchFrameWidth = yours;
    var googleSearchDomain = \"www.google.com\";
    var googleSearchPath = \"/cse\";
    </script>
    <script type=\"text/javascript\" src=\"http://www.google.com/afsonline/show_afs_search.js\"></script>";
    }
    ?>

Now test your website.

All done.

Source » http://www.iwingmusic.co.cc/2009/11/inove-wordpress-theme.html
Demo »





Google Adsense

12 11 2009

Are you using Google Adsense and can not preview your own ads?

Want to preview your own ads while editing your blog like mine? :

If you’re using another ads like Bidvertiser, you can preview the ads without problem.

Google will track ads based on user IP, ISP and Country who is viewing webpage. If the IP is not the same IP who is frequently viewing same website, Google will start showing ads. It will continue to show as one session even if IP has changed to normal, except browser restarted.

This easy simple trick will show you how to preview your own ads but I highly recommend that you don’t click your own ads ;-) .

Change your proxy setting of your browser’s option to one of these :
41.215.254.4:80 or 163.29.225.250:8080

For firefox users go to tools > options > advanced > network > settings and choose Manual proxy configuration.
For Opera users go to tools > preferences > advanced > network > proxy servers and choose HTTP

That’s all ;-) .





Advertising

11 11 2009

So this is why I got problem with last few days :

TOS & Copyright

Advertising

Adsense, Yahoo, Chitika, TextLinkAds and other ads are not permitted on WordPress.com blogs. If you would like to run ads on your blog, please look into running your own copy of WordPress with one of our hosting partners.

In addition to AdSense-type ads, please do not use the following services on your blog: sponsored / paid posts including PayPerPost, ReviewMe and Smorty; affiliate / referral links to the following domains: usercash, clickbank, clickhop, cashrocks, payingcash; clicktrackers (and any similar) and any promotion of the “I made a million on the internet and so can you” type of advertising (i.e. MLM, network marketing, cash gifting, etc.). Please check our page on types of blogs for more information about what content is and isn’t welcome on WordPress.com.

If you are in any doubt, please contact support for clarification.

We have a very low tolerance for blogs created purely for search engine optimization or commercial purposes, machine-generated blogs, and will continue to suspend them without notice, so if that’s what you’re interested in WordPress.com is not for you.

You may see some advertising on WordPress.com:

1. VIP blogs are permitted to run ads.

2. To support the service (and keep free features free), we also sometimes run advertisements. If you would like to completely eliminate ads from appearing on your blog, we offer the No-Ads Upgrade.

It said “suspend them without notice”. Hmm.. I think better with notice! Why? Because WordPress said it’s a very easy to use for blogging. How come it’s being easy if every blogger have to find all the long Support, TOS, What to Do, Types of Blogs, Check Our Complaints Page, Automatic’s Privacy Policy, etc, etc and have to read all before they start blogging ?!

Make Sense OR Non Sense ?! ;-)





Thanks WordPress!

10 11 2009

After my last post, doesn’t take a long time to get respond from WordPress.

Hi,
It includes them anywhere in a blog.
If affiliate linking / monetizing is important I would advise looking at http://wordpress.org/hosting

-
Mark

And this is my reply :

Ok. Thank you very much for your respond. I’ll remove all soon. For your notice, I saw so many blogs on WordPress that have tons of affiliate links either on posts, pages or widgets. I don’t know how you handle that but I’m happy to see next that just not me having this problem.

Regard.

Now my blog is free of affiliate links in any posts, pages or widgets ;-) . Contact me if you find any of them.