1. Field of the Invention
The present invention relates to the field of Web page access control or access restriction systems and methods, and more particularly to a system and method for controlling Web page access rights.
2. Description of Related Art
Protection of copyrighted and restriction of accessing Web pages has always been a primary concern to the owners of information. In particular, piracy of information in each of the Web pages has been and continues to be of great concern because it is impossible to stop unauthorized access of the Web pages. Although there have been many prior attempts for restricting access the Web pages, each has been met an inconvenience or a fussy problem. For example, if a user wants to access several Web pages, the attributes of each of the several Web pages must have been modified.
Therefore, what is needed is a system and method for controlling authorities of accessing Web pages, particularly, one which can conveniently restrict users to modify the contents of the Web pages when the users have no authorities of accessing the Web pages.
A system for controlling Web pages access rights includes: an application server, a database and at least one client computer, the application server includes an authentication filter, a verifying unit, and an authorization filter. The authentication filter is configured for detecting whether a user has successfully logged on a Web page, and popping up a login box for prompting the user to input a web page login at the at least one client computer. The verifying unit is configured for receiving the web page login from the at least one client computer, and determining whether the web page login is matched with a corresponding user account from the database. The authorization filter includes an authorizing unit that is configured for determining whether the user has a right of accessing the Web page by searching all rights corresponding to the web page login from the database, and reporting a result denoting whether the user is authorized to access the Web page.
A method for controlling Web pages access rights includes: inputting an address of a Web page from a user at a client computer for accessing the Web page; popping up a login box for prompting the user to input a web page login at the client computer; receiving the web page login and determining whether the user is permitted to log on the Web page by searching a corresponding user account stored in a database; permitting the user to log on the Web page if the web page login input by the user is matched with the corresponding user account; determining whether the user has a right of accessing the Web page by searching all rights corresponding to the web page login from the database; and reporting a result denoting whether the user is authorized to access the Web page.
Other novel features of the indicated invention will become more apparent from the following detailed description of the preferred embodiment when taken in conjunction with the accompanying drawings.
The application server 1 includes an application program 10 that is configured for verifying users and granting Web page access rights via the at least one client computer 3. The application server 1 further includes a configuration file, and implements a standard platform (e.g., a Java platform) complying with a standard application model, such as an enterprise edition model (e.g., a J2EE 1.4 model). The configuration file is used for storing configurations of the application program 10, for example, the configuration file stores methods of obtaining data from the database 5.
The database 5 is configured for storing an access control list (ACL) that defines permissions that the users have for accessing the Web pages. The ACL stores user accounts data and Web page access rights. Each of the user accounts includes a user name and a password, and corresponds to at least one Web page. In the preferred embodiment, the user accounts also can be stored in an active directory or a text document configured in the database 5. The Web page access rights of each user name can be stored as a lightweight directory access protocol (LDAP) form. The Web page access rights typically include editing data in the Web pages, uploading data to the Web pages, downloading data from the Web pages, and so on.
LDAP is a protocol for accessing on-line directory services. LDAP defines a relatively simple protocol for updating and searching directories using the TCP/IP. In the preferred embodiment, LDAP adopts a general model. In the general model, the at least one client computer 3 can send an operation request to the application server 1 through the network 2. Following which, the application server 1 performs the operation request from the at least one client computer 3, and transforms a feedback result to the corresponding client computer 3. For example, the feedback result denotes that a user has a right of accessing one Web page. In the preferred embodiment, the operation request typically includes editing data in the Web pages, uploading data to the Web pages, and downloading data from the Web pages.
When a user opens a Web page at the client computer 3, the authentication filter 101 detects whether the user has successfully logged on the Web page. If the user has not successfully logged on the Web page, the verifying unit 103 sends a displaying instruction to the authentication filter 101 for popping up a login box at the client computer 3 for prompting the user to input a web page login. The web page login includes a user name and a password. The verifying unit 103 receives the web page login, and determines whether the user is permitted to log on the Web page by searching a corresponding user account from the database 5. That is, the verifying unit 103 detect whether the user name and the password input by the user matches with a corresponding user account stored in the database 5.
The verifying unit 103 is further configured for sending the displaying instruction to the authentication filter 101 for popping up the login box once more if the user is not permitted to log on the Web page. For example, if the web page login input by the user is an invalid web page login, the authentication filter 101 may prompt the user to reenter the other valid web page login into the login box.
The authorization filter 105 is configured for sending an authorizing instruction to the authorizing unit 1050 for determining whether the user has a right of accessing the Web page if the user is permitted to log on the Web page. That is, the authorizing unit 1050 reads all rights corresponding to the web page login from the database 5, and detects whether the user has the right of accessing the Web page. The authorizing unit 1050 is further configured for reporting a result that denotes whether the user is authorized to access the Web page, and sending the result to the corresponding client computer 3 for displaying to the user.
If the user has successfully logged on the Web page, the procedure directly enters into step S308 described below. Otherwise, if the user has not successfully logged on the Web page, in step S304, the verifying unit 103 sends the displaying instruction to the authentication filter 101 for popping up a login box on the client computer 3, and prompts the user to input a web page login including a user name and a password into the login box.
In step S306, the verifying unit 103 receives the web page login, and determines whether the web page login is matched with a corresponding user account stored in the database 5.
If the verifying unit 103 detects no corresponding user account stored in the database 5 is matched with the web page login, the user is not permitted to log on the Web page, the procedure returns to the step S304 described above, and the verifying unit 103 sends the displaying instruction to the authentication filter 101 for popping up the login box once more.
Otherwise, if the web page login is matched with a corresponding user account stored in the database 5, in step S308, the user is permitted to log on the Web page, the authorization filter 105 sends an authorizing instruction to the authorizing unit 1050 to determine whether the user has a right of accessing the Web page by searching all rights corresponding to the web page login from the database 5.
If the user has no right of accessing the Web page, in step S310, the authorizing unit 1050 reports a result denotes that the user is forbidden access to the Web page, and displays the result to the client computer 3 for the user.
If the user has the right of accessing the Web page, in step S312, the authorizing unit 1050 reports a result denotes that the user is authorized to access the Web page, and then allows the user to access the Web page.
In the preferred embodiment, if the user wants to remove the function of controlling authorities of accessing the Web pages, the user can modify related configurations of the configuration file that is configured in the application server 1 without modifying the Web pages.
It is to be understood, however, that even though numerous characteristics and advantages of the indicated invention have been set forth in the foregoing description, together with details of the structure and function of the invention, the disclosure is illustrative only and changes may be made in details, especially in matters of shape, size and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
| Number | Date | Country | Kind |
|---|---|---|---|
| 200610157777.4 | Dec 2006 | CN | national |