I added a link in my post to an IP address based link such as It appears that an automatic process added a comment on the post asking me to correct the link.

I know how the Internet works and think it is perfectly valid to have IP address based links. Why are you disallowing this?


1 Answer 1


From comprehensive analysis of all the out-going links on Stack Overflow it was determined that in the vast majority of cases IP Address rooted links are either broken from get go, or break in short order.

We would like to correct this issue as early as possible.

Some statistics:

On the 1st of May 2012 there were approximately 3000 posts on Stack Overflow with IP address based links with a host matching the following pattern:


The vast majority of these links are broken and/or link nowhere.

To correct this issue:

  • If it is a legitimate link, find the correct host name and link to it. For example use:


And not

  • If it is a non-legitimate link, wrap it in a code block by wrapping it with `.
  • 6
    @waffles - So when you ban IP based links, are users also going to have trouble posting That appears frequently in genuine posts, but not as part of a link. Blocking that address in particular seems like a bad idea to me. May 7, 2012 at 7:55
  • @shanethehat nothing is stopping them posting make it a code block, not a hyperlink
    – waffles
    May 7, 2012 at 7:57
  • @waffles - does this also extend to comments, and should existing comments be flagged? ie stackoverflow.com/a/7589415/665800 May 7, 2012 at 8:01
  • @shanethehat comments are ethereal, once we sort out post link rot we can consider looking at comments, very low pri imho
    – waffles
    May 7, 2012 at 8:02
  • 2
    @waffles - cool. And finally, lots of the posts also have a http://localhost url that's been auto-hyperlinked. Should they receive the same backtick treatment? May 7, 2012 at 8:16
  • @shanethehat yes they should
    – waffles
    May 17, 2012 at 2:04
  • 4
    You're spending time solving a problem that affects ~0.0009% of posts?
    – Kev
    Jun 1, 2012 at 23:53
  • 5
    What about the cases where the IP-address links are fully intended? I was just trying to fix up an old answer about "valid" IP addresses. In that case, the links are not only fully intended (as live examples of how numeric addresses get parsed), but are globally valid URLs. Or at least would be, if this damned validator didn't stand in the way and keep me from editing the post...
    – cHao
    Sep 24, 2012 at 18:51

Not the answer you're looking for? Browse other questions tagged .