The invention is suitable for the field of communications, and provides a link-stealing-prevention method and
system for media files and a
server. The method comprises the steps that a first
server receives a log-in request; an outer network
IP address and an
encryption key of a terminal are obtained and the outer network
IP address, a user name and the
encryption key of the terminal are sent to a
database to be stored; a URL address obtaining request is received, an original URL address corresponding to the URL address obtaining request is inquired and the
encryption key corresponding to the user name is inquired; the original URL address is encrypted and the encrypted URL address is sent to the terminal; a second
server receives an encrypted URL address access request; an outer network
IP address of the terminal is obtained and the outer network IP address and the user name of the terminal are matched with the outer network IP address and the user name, stored in the
database, of the terminal; after matching successes, the second server decrypts the encrypted URL address and the original URL address is obtained so that the terminal can have access to the original URL address. The link-stealing-prevention method and
system can improve URL security.