主权项 |
1. A method for webpage access control, comprising:
sending, by a client, a webpage access request which carries a first uniform/universal resource locator (URL) to a browser control; receiving, by the client, N number of callbacks corresponding to the webpage access request from the browser control, wherein N is an integer greater than 1; comparing, by the client, a second URL carried in a first callback with recorded M number of trusted URLs, wherein M is a positive integer and the first callback is any one callback among the N callbacks; when the second URL is the same as one of the M trusted URLs, instructing, by the client, the browser control to access a webpage corresponding to the second URL; when the second URL is different from any one of the M trusted URLs, determining, by the client, whether the webpage is an embedded sub-webpage; when it is determined that the webpage is not an embedded sub-webpage, instructing the browser control to cancel the webpage access request; and when it is determined that the webpage is an embedded sub-webpage; instructing the browser control to deny display of the sub-webpage but to allow display an original webpage. |