# Is there any chance the localhost link restriction will be lifted?

Is there any chance that localhost links will be allowed again, or is that a completely closed subject? I've seen these posts, but neither seems to have a clear answer:

The link validator is overzealous and should allow posting so-called 'invalid' links

Link restrictions for new users -- can we exclude 'localhost'?

Sometimes I answer questions by providing code on Github with instructions on how to clone and run it, and sometimes that means starting a local server. In those cases, it's really nice to be able to provide a localhost link as the final step in the process. Perhaps they could be re-allowed based on reputation if it's mainly a "new user" error?

Here are a couple of examples from before localhost was disallowed:

Cannot Autowire Service into Controller

Configuring Integration Tests using Spring/Jetty (or Tomcat)/Maven for REST tests

-
I don't know why, but links like this make me very uncomfortable. They aren't supposed to be universally meaningful at all. That'd be like someone linking http://192.168.1.1 because it's a common address for a NAT router. I understand your use case, but I'm not sure if it's a big enough issue. –  Andrew Barber Feb 27 '13 at 6:44
@Andrew: I understand that reasoning to a point, but these are universal links that work for everybody every time, unlike 192.168.1.1, which might instead be 192.168.0.1 or 192.168.1.254. I guess it's the "if it's a big enough issue" that I'm really trying to find out about. It's definitely an issue. It's just a matter of whether it has enough traction with the right people. –  Ryan Stewart Feb 27 '13 at 13:42
possible duplicate of Localhost in URL = numeric? –  ChrisF Mar 1 '13 at 16:41
@ChrisF: This is not a dupe of that question. This one is a feature request to lift the restriction, the other is a bug report on the spelling of the error message. –  Martijn Pieters Mar 29 '13 at 18:15
@MartijnPieters - I wan't sure either, which is why I left it as a question. –  ChrisF Mar 29 '13 at 22:04

## 1 Answer

You should specify localhost in the code block instead of making it as an actual link. OP should be able to copy and paste the localhost from the code block.

http://localhost:8080/TestURL


See the answer from Marc Gravell to the following question.

Localhost in URL = numeric?

-
I understand that a non-link via code block is possible, but that's not what I'm asking. I want localhost links back because they are useful, and a "click" is much more convenient than a "click and drag to select the url, right click, copy, click and drag in the address bar, delete, right click, paste". I'm not saying this is the best or fastest way to follow a non-link link, but it's the way that I see most people do it, and since that's the case, this is kind of a big deal as far as usability goes. –  Ryan Stewart Feb 27 '13 at 6:04
@RyanStewart: Sorry, I have no idea about that. Based on that reply from Marc Gravell, I assume that implementing localhost might not be preferred but I could be totally wrong. –  user213400 Feb 27 '13 at 6:06