I run a giant community. Many spammers will use link shorteners or .tk domains that 301 to their spam offer. How are sites detecting the final domain and is this a viable solution to block spam?

ex. I'll just block the spam: bit.ly/xdfd but then they will just use a different shortened link.

  • Building off what @Baptiste said, you might mention what forum/CMS/etc you're using as there could be a feature or plugin of some kind that'll handle this for you. – Su' Sep 14 '12 at 10:38
  • it's a custom site. j0k gave me some good ideas, thanks – surpr Sep 15 '12 at 19:08

There is plenty solutions to expand short url:

When user submit a new post, you can apply a function that expand url for all url inside the post. Then you will have the real url. So you can appy what ever spam solution you use to reject / accept the post.

You can also replace the shorten url by the full one to avoid short link on your commutiy board.


Many forums simply forbid all url shorteners. There is no simple solution to that, you may try also specific solutions for your platform (phpBB, vBulletin, etc.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.