Pretty often the Link Field is filled with so called "Affiliate Links" ... by Users of my websites. Is there a chance to integrate a "Banning solution for affiliate links" in the LINK Module in future?

Or is there already an easy way to ban unwanted links?

Thx Thomas

Comments

hefox’s picture

I'm not the maintiner, but it's very possible to add this check outside of the module with programming.

Using a form alter, add in a custom validation that checks if the field contains the banned urls. :>

(Use hook_widget_alter to add a textfield of 'banned' links to the widget probably).

So it's possible, but I don't think this module currently does it.

dqd’s picture

Component: User interface » Code
Assigned: Thoor » Unassigned
Status: Active » Closed (duplicate)
Issue tags: +field validation

Dear followers of this issue: please read the project page info of link module for the further way to go for URL validation issues. There is already an main issue to collect and discuss ALL possible validation scenarios in general. That's why I will mark this one here as duplicate. I need all concentration inside the ONE and only discussion to move forward. After a D7 implementation we will provide a D6 backport.

Explanation: There are too many corner cases and URL validation feature requests of users to implement them all one after the other. We would have a 40 inüut fields and checkbox lines cluttered settings form for URL validation methods only, conflicting with each other randomly. I think, the better way is to find a maybe more complex but all-embracing new configuration method, which lets the admin better decide, how and when to validate the url. Including a good description which helps to set it up. This will surely lead to a new branch