3 ms·
Even if we somehow guard against <img> and <iframe> and <script> etc., someone on a webforum that supports formatting links could just trick viewers into clicki
by Terr_ 1y ago
Even if we somehow guard against <img> and <iframe> and <script> etc., someone on a webforum that supports formatting links could just trick viewers into clicking a normal <a>, thinking they're accessing a funny picture or whatever.
A bunch of CSRF/nonce stuff could apply if it were a POST instead...
It may be more-effective to make the link unique and temporary, expiring fast enough that "hey, click this" is limited in its effectiveness. That might reduce true-positive detections of a bot that delays its access though.
- kijin 1y agoIf it were my forum, I would just strip out any links to the honeypot URL. I have full control over who can post links to what URL, after all. You could use a URL shortener to bypass the ban, but then you'll be caught by the cross-origin referrer check.