Depends on the country. Some countrys, it's legal to: Link to a page which has a link to a file (which is on a different server)
Some countrys you can link directly to a file, which is on a different server
SOME (not many...) you can link to a file on your own server
And there are some that down allow any kind of warez at all...