Project Honey Pot Spam Trap
invalid XHTML (2 posts)

  1. shidouhikari
    Posted 6 years ago #

    That's a great plugin, I loved it adding links all over the site!

    But most of them are XHTML invalid, that makes it very troublesome.


  2. Andrew Ensley
    Plugin Author

    Posted 5 years ago #

    I'm sorry to hear you're having trouble with validation. The idea of the plugin is to vary the way the links are hidden as much as possible in order to prevent spammers from catching on.

    I tried to make the code completely XHTML valid except for one case: an invisible div (block-level element) inside the anchor (inline element).

    I figured variance was more important than validation. In the next version, I'll add an option for whether or not to use XHTML invalid links.

    If you don't mind, could you point out which link formats were invalid and how they should be fixed (since you mentioned most of them were invalid)?

    1. <a href="link" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>
    2. <a href="link" rel="nofollow"><!-- randomWord --></a>
    3. <a href="link" rel="nofollow"><img src="invisibleImageLink" height="0" width="0" border="0"/></a>
    4. <a href="link" rel="nofollow" style="display:none;">randomWord</a>
    5. <div style="display:none;"><a href="link" rel="nofollow">randomWord</a></div>
    6. <span style="display:none;"><a href="link" rel="nofollow">randomWord</a></span>
    7. <span style="position:absolute;top:-250px;left:-250px;"><a href="link" rel="nofollow">randomWord</a></span>
    8. <a href="link" rel="nofollow"></a>
    9. <!-- <a href="link" rel="nofollow">randomWord</a> -->
    10. <div style="position:absolute;top:-250px;left:-250px;"><a href="link" rel="nofollow">randomWord</a></div>
    11. <a href="link" rel="nofollow"><span style="display:none;">randomWord</span></a>
    12. <a href="link" rel="nofollow"><div style="display:none;">randomWord</div></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Project Honey Pot Spam Trap
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic