473,503 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding nofollow tag to all my <a href='...'>


Hi,

I run a blog hosting site and it is a fairly small community easy
enough to police.
But some spammers still find ways to get in.

What I was thinking is adding nofollow tags to their links until they
reach a certain amount of posts, (or until I've had time to review
their account).

Would you have a piece of code to allow me to add the no follow tag to
<a href='....'>?

Thanks

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=17906

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Jun 28 '07 #1
2 2623
FFMG wrote:
But some spammers still find ways to get in.

What I was thinking is adding nofollow tags to their links until they
reach a certain amount of posts, (or until I've had time to review
their account).
Fair enough if you want to do that, but it won't stop the spammers -- it's
all automated -- they won't care (or notice) that you've added rel=nofollow.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 7 days, 14:43.]

Long-Awaited Zeldman Article
http://tobyinkster.co.uk/blog/2007/0...ldman-in-time/
Jun 28 '07 #2
On 28 Jun., 07:20, FFMG <FFMG.2sv...@no-mx.httppoint.comwrote:
Hi,

I run a blog hosting site and it is a fairly small community easy
enough to police.
But some spammers still find ways to get in.

What I was thinking is adding nofollow tags to their links until they
reach a certain amount of posts, (or until I've had time to review
their account).

Would you have a piece of code to allow me to add the no follow tag to
<a href='....'>?
a nofollow tag would look like this:
<a href='somewhat' rel='nofollow'>somewhere</a>

// function to use for any string containing hrefs
//
function nofollow($str) {
return = preg_replac("/<a href='(.*?)'>(.*?)<\/a>/", "/<a href='$1'
rel='nofollow'>$2<\/a>/", $str);
}

--begin-quote http://old.nonofollow.net
11 Reasons against nofollow

1. nofollow does not prevent comment spam
2. nofollow is confusingly named
3. nofollow harms the connections between web sites
4. nofollow is not useful for humans, just for search engines using
PageRank or a similar technique
5. nofollow could be used to shut web sites out
6. nofollow discriminates legitimate users as spammers
7. nofollow heists commentators' earned attention
8. nofollow could be used to further discriminate weblogs
9. nofollow prevents the Web from being a web
10. nofollow eliminates the dissemination of free speech
11. nofollow was developed in privacy with only search engines
companies taking part in the discussion
--end-quote

Jun 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9623
by: matatu | last post by:
Hi to all, I have a xml file, a substring like: &lt;a href=&quot;#&quot;&gt;text&lt;/a&gt; which after an xslt trasform is rendered as (using xsl:output method html): &lt;a...
2
10534
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
6
12138
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with...
3
13126
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
2
11187
by: js | last post by:
I have a table rendered with XSLT. The first column has a radio button controls for user to make a selection for a particular row. All the values in the remaining columns are all concated with a...
0
1706
by: Philipp Lenssen | last post by:
There's a new quasi-standard in the world of HTML; the <a rel="nofollow" href="...">...</a>. It is already or soon implemented in Google, Yahoo, and MSN Search, as well as many different blogging...
11
13656
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
9
2752
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
2
2188
by: jessy | last post by:
I have a table at which i need to add fields in it whenever the user clicks on the Add button , here's my trial but seems sth is wrong : function AddTool() { formdiv =...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.