Debt Consolidation - Windsurfing Video - Property in Germany - Yellowline - Lab Equipment - Find services

PDA

View Full Version : How to use no-follow for all links in mysite in general ?


duperhost
Apr 9th 2009, 6:25 am
I am using few banner exchange and some text exchange services in my site also some text

I want to make it in general that has no-follow for all links in my site how i can do it ?

oondraa
Apr 9th 2009, 7:25 am
google: nofollow meta

duperhost
Apr 9th 2009, 10:49 am
you mean i should Google this keyword ?

gastongr
Apr 9th 2009, 11:08 am
Put this is your document's head

<meta name="robots" content="nofollow">

Notice that internal links will not be followed neither

duperhost
Apr 9th 2009, 11:14 am
Thank you ;)

I can make site map page and sitemap for Google (HTML) it will follow the links right ?

gastongr
Apr 9th 2009, 11:19 am
No links in the page containing the code i posted will be followed.

However if you make a google (XML) site map or link the pages from other indexed websites they will be indexed.
If you don't want the pages to be indexed then use

<meta name="robots" content="noindex,nofollow">

duperhost
Apr 9th 2009, 11:57 am
No i want my pages to be indexed, I mean outside links other then domains, some sites have this features that's anyone post a link they can but have no follow but all links from domain is follow, like craglist

gastongr
Apr 9th 2009, 12:02 pm
If you want to allow SEs to follow internal links but not external ones you need to specify which ones should not be followed in the link code.

Don't put anything in the head so all the links are followed, then in the ones you don't want to be followed add rel="nofollow" like this:

<a href="http://www.externalwebsite.com/" rel="nofollow">External Site</a>

SmallPotatoes
Apr 9th 2009, 12:03 pm
In that case you'll need to use regular expressions to add it to user-supplied links. I recommend breaking the links down completely and re-building them from scratch, in order to better avoid XSS and other nefarious attacks on your users and admins.

duperhost
Apr 9th 2009, 12:23 pm
Is there is a way to make links no follow in general by using this :

<meta name="robots" content="nofollow">

but choosing the links that follow by manual ?
<a href="http://www.externalwebsite.com/" rel="follow">External Site</a>

or its not correct method ?

duperhost
Apr 10th 2009, 1:52 pm
Help me please.. is the below code is correct method ?

gastongr
Apr 10th 2009, 4:03 pm
duperhost, this code:
<meta name="robots" content="nofollow">
refers to all the links in the page. Google help (http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=96569)

If after that you put rel="follow" in individual links it will not work as there is no such thing as rel="follow".

I guess you want to use rel="follow" because you have control over your internal links and can apply that property to every link, but can't apply rel="nofollow" to external links because they are posted by users.

If that's the case you will need to modify your script so that it will include rel="nofollow" in user posted links...

duperhost
Apr 16th 2009, 8:06 am
How i can do it with htaccess ?