一种网页访问控制方法和装置

Web access control method and device

Abstract

本发明提供一种网页访问控制方法和装置,所述方法包括:接收客户端发送的超文本传输协议HTTP请求报文,并获取所述HTTP请求报文中包括的统一资源定位符URL;判断当前存储的非法URL信息中是否包括所述URL;若包括,阻断所述HTTP请求报文;否则,记录所述URL,并当接收到服务器发送的HTTP响应报文时,根据预先配置的关键词库搜索所述HTTP响应报文;若命中,则阻断所述HTTP响应报文,并将所述URL添加到当前存储的非法URL信息中。应用本发明实施例可以降低设备性能损耗,提高网页访问控制的效率。
The invention provides a web access control method and device. The method comprises following steps: receiving a hypertext transfer protocol HTTP request report sent by a client and obtaining a unified resource locator URL included in the HTTP request report; determining whether a URL is included in pre-stored illegal URL information; blocking the HTTP request report if included; otherwise, recording the URL and searching an HTTP response report based on a pre-set keyword when receiving the HTTP response report sent by a server; and blocking the HTTP response report and adding the URL to the pre-stored illegal URL information. The web access control method and device have following beneficial effects: by applying the embodiment, performance loss of equipment is reduced and web access efficiency can be increased.

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (0)

    Publication numberPublication dateAssigneeTitle