Download & Extend

Add rel="nofollow" to profile url fields

Project:Drupal core
Version:7.x-dev
Component:profile.module
Category:task
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

Profile fields are user-created (and can be modified by users at any time), and thus they could potentially be spam. Therefore, profile URLs should be protected with the link condom. i.e. links to URLs in people's profile should have rel="nofollow"

Comments

#1

Status:active» needs review

patch against HEAD

AttachmentSizeStatusTest resultOperations
102468.patch.txt417 bytesIgnored: Check issue status.NoneNone

#2

identical patch against head in -U 3 format (sorry about previous patch)

AttachmentSizeStatusTest resultOperations
102468.patch_0.txt879 bytesIgnored: Check issue status.NoneNone

#3

Same patch against 4.7 branch's profile.module,v 1.154.2.6

AttachmentSizeStatusTest resultOperations
102468.patch_1.txt706 bytesIgnored: Check issue status.NoneNone

#4

Status:needs review» needs work

Not sure I agree. They don't have to be spam. Drupal has a filter-option that allows you to enable/disable the link condom. Maybe we should use the profile module to use that filter option.

#5

Status:needs work» needs review

Profile links are as likely to be spam as any other posted content. If rel=nofollow is potentially useful for posted comment, it is also potentially useful for profile links.

The only reference to "rel.*nofollow" I found in the codebase is in _filter_html($text, $format). Attaching a patch which runs the profile link through that function.

AttachmentSizeStatusTest resultOperations
profile-link-condom-102468.patch.txt901 bytesIgnored: Check issue status.NoneNone

#6

That didn't come out too clearly. I meant to say:

If we think it's worthwhile to protect against spam links in posted content*, we should also protect against spam links posted in users' profiles.

-----
* which we do

#7

Title:profile.module link condom» Add rel="nofollow" to profile url fields
Version:5.x-dev» 6.x-dev
Category:bug report» task

#8

Status:needs review» reviewed & tested by the community

Patch applied.

I set 'format_default_nofollow_0' = TRUE in settings.php (don't think this can be set in UI which is OK IMO)

nofollow applied to profile url as advertised.

I like the option.

#9

Version:6.x-dev» 7.x-dev

#10

Status:reviewed & tested by the community» postponed

#11

Status:postponed» needs review

Still applies with offset.

#12

Only local images are allowed.
It worked fine for me.
Only local images are allowed.
Thanks it was a great advice.
Only local images are allowed.
Only local images are allowed.
Only local images are allowed.
Only local images are allowed.

#13

This still applies cleanly to core!

#14

Version:7.x-dev» 5.7

Is there a module that does this?

#15

Version:5.7» 7.x-dev

Resetting version.

#16

Status:needs review» needs work

No longer applies to 7.x.

#17

This one does (2 years after last post :p)

AttachmentSizeStatusTest resultOperations
relNoFoloow.patch887 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch relNoFoloow.patch. See the log in the details link for more information.View details | Re-test

#18

Status:needs work» needs review

#19

suscribe

#20

I think this functionality should be optional. So, if it is not in core, this must be in contributed module.

#21

#17: relNoFoloow.patch queued for re-testing.

#22

Status:needs review» needs work

The last submitted patch, relNoFoloow.patch, failed testing.

#23

Status:needs work» needs review

This patch applies against 7.x-dev. This was done during Drupal Patch Bingo at Droplabs

AttachmentSizeStatusTest resultOperations
102468_nofollow.patch715 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 102468_nofollow.patch. See the log in the details link for more information.View details | Re-test

#24

Status:needs review» needs work

The last submitted patch, 102468_nofollow.patch, failed testing.

#25

Status:needs work» needs review

This time, I did a real git diff instead of regular diff.

AttachmentSizeStatusTest resultOperations
102468_nofollow.patch761 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 35,793 pass(es).View details | Re-test

#26

Version:7.x-dev» 8.x-dev

Applying the same patch to Drupal 8.

AttachmentSizeStatusTest resultOperations
102468_nofollow_8.patch761 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 33,634 pass(es).View details | Re-test

#27

Status:needs review» active

The "URL" Profile field no longer exists in Drupal 7 or Drupal 8! Even though the patch may apply, this issue is irrelevant IMHO. Detailed explanation follows:

In Drupal 6, there is Profile.

In Drupal 7, there is no admin interface to add URL field.

Is this a bug, or should we write a patch to remove this code?

#28

It looks like this issue depends on #501434: URL field type in core which is newer and in drupal-8 queue.

The only reason to keep this code seems to be backwards-compatibility with drupal-6. So, a good patch to do would be to comment the code with this reason. Right?

#29

#30

Version:8.x-dev» 7.x-dev

profile is not in 8.x now

nobody click here