Media file anti-hotlinking method and system, server and storage medium

The invention provides a media file anti-hotlinking method and system, a server and a storage medium, and the method comprises the steps: judging whether a received request for obtaining a media file is a legal request of a user or not through an authentication token, generating a new authentication...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SUN QIAO, LI HUAQIN, LI CHUNYANG, HAN TIANQI, YANG YING, DU CHANGYU, YU HUIMIAO, ZHAO LEI, JI PENG, JIN LI, ZHANG YANG, QU CHUANZHE, CHENG QIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a media file anti-hotlinking method and system, a server and a storage medium, and the method comprises the steps: judging whether a received request for obtaining a media file is a legal request of a user or not through an authentication token, generating a new authentication token after the request is determined to be the legal request, enabling an old authentication token to be invalid, and enabling the new authentication token to be invalid; and then sending a uniform resource locator which carries the new authentication token and can obtain the media file to the user, so that the user obtains the media file and the new authentication token. Moreover, in order to prevent a hotlinking person from obtaining a new authentication token by intercepting a uniform resource locator, the new authentication token is encrypted. 本申请提供了媒体文件防盗链方法、系统、服务器及存储介质,通过认证令牌判断接收到的获取媒体文件的请求是否为用户的合法请求,在确定请求为合法请求后,生成新认证令牌,并使旧认证令牌失效,随后向用户发送带有新认证令牌的能够获取媒体文件的统一资源定位符,使用户获得媒体文件和新认证令牌。并且,为了防止盗链者通过拦截统一资源定位符得到新认证令牌,对