| 1 |
% |
| 2 |
% Not links |
| 3 |
% |
| 4 |
example.invalid |
| 5 |
example.invalid/ |
| 6 |
http://.example.com |
| 7 |
http://-example.com |
| 8 |
hppt://example.com |
| 9 |
example.coma |
| 10 |
-example.coma |
| 11 |
foo.123 |
| 12 |
localhost % only with protocol allowed |
| 13 |
localhost/ |
| 14 |
///localhost % 3 '/' not allowed |
| 15 |
///test.com |
| 16 |
//test % Don't allow single level protocol-less domains to avoid false positives |
| 17 |
|
| 18 |
_http://example.com |
| 19 |
_//example.com |
| 20 |
_example.com |
| 21 |
http://example.com_ |
| 22 |
@example.com |
| 23 |
|
| 24 |
node.js and io.js |
| 25 |
|
| 26 |
http:// |
| 27 |
http://. |
| 28 |
http://.. |
| 29 |
http://# |
| 30 |
http://## |
| 31 |
http://? |
| 32 |
http://?? |
| 33 |
google.com:500000 // invalid port |
| 34 |
show image.jpg |
| 35 |
path:to:file.pm |
| 36 |
/path/to/file.pl |
| 37 |
|
| 38 |
% |
| 39 |
% Not IPv4 |
| 40 |
% |
| 41 |
1.2.3.4.5 |
| 42 |
1.2.3 |
| 43 |
1.2.3.400 |
| 44 |
1000.2.3.4 |
| 45 |
a1.2.3.4 |
| 46 |
1.2.3.4a |
| 47 |
|
| 48 |
% |
| 49 |
% Not email |
| 50 |
% |
| 51 |
foo@bar % Should be at second level domain & with correct tld |
| 52 |
mailto:bar |