The present disclosure relates to a technique for displaying a hyperlinked file, and, more particularly, to techniques for displaying the accessibility of a link destination of a hyperlink set to a file.
A computer displaying a hyperlinked file, such as an HTML file, can access an object at a link destination of the hyperlink on the basis of network position information such as a uniform resource locator (URL) indicated by the hyperlink. However, in the case where the computer does not have the right of access to the object at the link destination, even if the computer requests to access the object, the computer cannot acquire, open, or play back the object.
According to one embodiment of the present disclosure, a method for displaying the accessibility of a hyperlinked file is provided. The method includes extracting, by one or more computer processors, a hyperlink from a target file, wherein the hyperlink references a resource; attempting to acquire, by one or more computer processors, the resource by performing a first authentication operation and, in response, receiving a first object; acquiring, by one or more computer processors, a second object by performing a second authentication operation using pre-determined authentication information; comparing, by one or more computer processors, the first object and the second object to determine if the first object is the same as the second object; and presenting, by one or more computer processors, via a display apparatus, information indicating the accessibility of the resource, wherein the information is based, at least in part, on the comparison between the first object and the second object and further based, at least in part, on the target file.
According to another embodiment of the present disclosure, a computer program product for displaying the accessibility of a hyperlinked file is provided. The computer program product comprises a computer readable storage medium and program instructions stored on the computer readable storage medium. The program instructions include program instructions to extract a hyperlink from a target file, wherein the hyperlink references a resource; program instructions to attempt to acquire the resource by performing a first authentication operation and, in response, receive a first object; program instructions to acquire a second object by performing a second authentication operation using pre-determined authentication information; program instructions to compare the first object and the second object to determine if the first object is the same as the second object; and program instructions to present, via a display apparatus, information indicating the accessibility of the resource, wherein the information is based, at least in part, on the comparison between the first object and the second object and further based, at least in part, on the target file.
According to another embodiment of the present disclosure, a computer system for displaying the accessibility of a hyperlinked file is provided. The computer system includes one or more computer processors, one or more computer readable storage media, and program instructions stored on the computer readable storage media for execution by at least one of the one or more processors. The program instructions include program instructions to extract a hyperlink from a target file, wherein the hyperlink references a resource; program instructions to attempt to acquire the resource by performing a first authentication operation and, in response, receive a first object; program instructions to acquire a second object by performing a second authentication operation using pre-determined authentication information; program instructions to compare the first object and the second object to determine if the first object is the same as the second object; and program instructions to present, via a display apparatus, information indicating the accessibility of the resource, wherein the information is based, at least in part, on the comparison between the first object and the second object and further based, at least in part, on the target file.
Various techniques exist to determine whether or not a user has the right of access to an object at a link destination and notify the user of whether or not the access thereto is possible. One example of such a technique is to examine whether or not a page indicated by a link existing on a page actually exists. If the indicated page actually exists, an acquisition request for the page is actually made on the basis of user information prepared in advance, whereby it is determined whether or not the user has the right of access to the page. Then, on the basis of these examination result and determination result, it is determined whether or not the user can refer to the page at the link destination. According to the determination result, a display mode of the link is determined. Another example of a technique is to determine whether or not an object at a link destination falls under a restriction target with reference to access restriction information prepared in advance.
Embodiments of the present disclosure recognize that, in general, it is difficult to determine the response(s) that indicate that a hyperlinked file is accessible by making an access request using information that is prepared in advance and is necessary for the access. For example, in the case where the returned object content changes for each access to the object at the link destination and thus cannot be identified, it is difficult to determine whether the acquired object is a correct response result for the access request or an object that is returned as a result of denied access.
Embodiments of the present disclosure also recognize that, in the case of preparing access restriction information in advance, it is necessary to update the access restriction information in accordance with a change in specifications of the access destination and the like, and hence management is therefore complicated.
Accordingly, embodiments of the present disclosure provide a technique for displaying the accessibility of a link destination of a hyperlink set to a file.
Hereinafter, various embodiments of the present disclosure are described in detail with reference to the attached drawings.
System Configuration:
The transmitting and receiving unit 110 is a network interface for accessing the network. Acquisition requests for a file to be displayed or display target file and an object at a link destination are transmitted through the transmitting and receiving unit 110, and the file and the object returned as a response to the acquisition requests are received therethrough.
The file acquiring unit 120 generates the acquisition request for the file, and transmits the acquisition request to a site (such as a server on the network) on which the acquisition target file exists, through the transmitting and receiving unit 110. Then, the file acquiring unit 120 receives the file returned as a response to the acquisition request. Such file acquisition is performed by the file acquiring unit 120 in the case where a user of the file displaying apparatus 100 inputs a command for acquiring the file. In this case, the acquired file is transmitted to the display controlling unit 180, and is displayed on the display unit 190 by the display controlling unit 180.
Moreover, in some embodiments, file acquisition is performed by the file acquiring unit 120 also in the case where link information is extracted by the link extracting unit 130 as described later or in the case where authentication information is transmitted from an authentication screen by the accessibility determining unit 150 and where a response screen is acquired. In these cases, the acquired file is not displayed on the display unit 190 but processed in the background.
The link extracting unit 130 determines whether or not a hyperlink is set to the display target file acquired by the file acquiring unit 120. If the hyperlink is set thereto, the link extracting unit 130 extracts link information of the hyperlink. Appropriate techniques can be used to determine whether or not the hyperlink is set thereto and extract the link information. For example, in the case where the display target file is an HTML file, the link extracting unit 130 may detect a portion in which a URL is specified in the href attribute of an a element (anchor element), and may extract the specified URL. As described above, if the link information is extracted by the link extracting unit 130, the file acquiring unit 120 acquires the file of the object at the link destination using the extracted link information.
In some embodiments, examples of the timing at which the link extracting process is performed by the link extracting unit 130 include: when a new screen is displayed on the display unit 190 on the basis of the file acquired by the file acquiring unit 120; and when a mouse pointer is placed (hovered) over the position at which a hyperlink is set on the screen displayed on the display unit 190. Moreover, in the case where the file acquired by the file acquiring unit 120 is an e-mail message, upon reception of the e-mail message, the link extracting unit 130 may extract a hyperlink included in the received message. Moreover, for the same hyperlink, the link extracting unit 130 may extract only the one for which predetermined days and hours or longer have elapsed from the last extraction thereof.
The authentication screen retrieving unit 140 determines whether or not an authentication screen exists in the object at the link destination that is acquired on the basis of the link information extracted by the link extracting unit 130. Specifically, the authentication screen retrieving unit 140 first examines whether or not an input/transmission form exists in the object at the link destination. Then, if the input/transmission form exists, the authentication screen retrieving unit 140 determines whether or not the form is for authentication, on the basis of the contents of inputs requested by the form. The detail of the process performed by the authentication screen retrieving unit 140 is described later.
The accessibility determining unit 150 performs an operation for authentication (i.e., an authentication operation) on an object that is determined by the authentication screen retrieving unit 140 to include the authentication screen, and determines whether or not an object at a link destination from the authentication screen can be accessed. In some embodiments, the accessibility determining unit 150 performs in advance an authentication operation that always denies the access, on the authentication screen, and acquires in advance an object (error screen) that is returned from the site at the link destination in the case where the access is denied (authentication failure). Then, the accessibility determining unit 150 performs a proper authentication operation for accessing the object at the link destination, and compares an object returned from the site at the link destination with the error screen acquired in advance. Then, if the object acquired in the proper authentication operation is the same as the error screen, the accessibility determining unit 150 determines that the access is denied. If the object acquired in the proper authentication operation is different from the error screen, the accessibility determining unit 150 determines that the access is permitted. Here, the object acquired in the proper authentication operation may be compared with the error screen by comparing respective pieces of data of the acquired objects or by comparing an image (such as a screen shot) when the object acquired in the proper authentication operation is displayed on the display unit 190, with an image of the error screen. In the case of comparing the images, for example, respective display images of the objects are generated by the display controlling unit 180, and it can be determined whether or not the generated images are the same as each other, using an existing image analysis technique. The detail of the process performed by the accessibility determining unit 150 is described hereafter.
The authentication information DB 160 is a database (i.e., and authentication information storing unit) for storing information for authentication (i.e., authentication information) on the object at the link destination. Specifically, the authentication information DB 160 stores therein network position information (for example, a URL) on an object on the network and authentication information (for example, an ID and a password) required to access the object in association with each other. The accessibility determining unit 150 performs an authentication operation for the site at the link destination using the authentication information stored in the authentication information DB 160.
The error screen storing unit 170 stores therein the error screen acquired by performing, by the accessibility determining unit 150, the authentication operation that denies the access. The accessibility determining unit 150 determines whether or not the access is permitted by comparing the object that is returned from the site at the link destination as a response to the authentication operation performed using the authentication information read out of the authentication information DB 160, with the error screen stored in the error screen storing unit 170.
The display controlling unit 180 displays the object based on the display target file acquired by the file acquiring unit 120, on the display unit 190. Moreover, the display controlling unit 180 displays information indicating whether or not the object at the link destination of the hyperlink set to the file displayed on the display unit 190 can be accessed, in accordance with the determination result given by the accessibility determining unit 150. The display unit 190 may be implemented by a liquid crystal display device or the like.
Example of Display Control based on Determination of Accessibility:
In the example illustrated in
As described above, in some embodiments, the information indicating whether or not the object at the link destination of each hyperlink (in the example illustrated in
Accessibility Determining Process:
Next, an accessibility determining process performed by the file displaying apparatus 100 is discussed, in accordance with an embodiment of the present disclosure. In the case where a hyperlink is set to a display target file acquired to be displayed on the display unit 190, the file displaying apparatus 100 performs, in the background, a process of determining whether or not an object at a link destination of the hyperlink can be accessed. Then, as described with reference to
Then, the authentication screen retrieving unit 140 performs an authentication screen retrieving process of examining whether or not the object acquired in Step 502 includes an authentication screen (Step 503). The detail of the authentication screen retrieving process is described hereafter.
As a result of the authentication screen retrieving process performed by the authentication screen retrieving unit 140, if it is determined that the object acquired in Step 502 does not include the authentication screen (No in Step 504), the display controlling unit 180 displays information indicating that the user has the right of access to the object at the link destination of the hyperlink included in the display target file, onto the display image based on the display target file displayed on the display unit 190 (Step 510). This is because the user can access the object at the link destination of the hyperlink extracted in Step 501, without being required to perform an authentication operation.
As a result of the authentication screen retrieving process performed by the authentication screen retrieving unit 140, if it is determined that the object acquired in Step 502 includes the authentication screen (Yes in Step 504), the accessibility determining unit 150 then performs an authentication operation so as to fail the authentication, and acquires an error screen (a screen indicating an authentication failure) returned from the site at the link destination (Step 505). Here, the authentication operation that results in the authentication failure is performed by, for example: leaving input information (such as an ID and a password inputted for the authentication) blank; or inputting an irrelevant character string that does not fall under the ID and the password or a character string including characters that are not permitted to be used as authentication information. The error screen acquired in Step 505 is stored into the error screen storing unit 170.
Then, the accessibility determining unit 150 performs an access trial process of: performing an authentication operation on the authentication screen acquired in Step 502, using the authentication information stored in the authentication information DB 160; and trying to access the object at the link destination of the hyperlink extracted in Step 501 (Step 506). The detail of the access trial process is described hereafter. Through the access trial process, the file acquiring unit 120 acquires an object as a response to the access request, from the site at the link destination (Step 507).
Then, the accessibility determining unit 150 generates a response screen based on the object acquired in Step 507 (a screen when the acquired object is displayed on the display unit 190), and compares the response screen with the error screen acquired in Step 505. Then, if the response screen is the same as the error screen (Yes in Step 508), the accessibility determining unit 150 determines that the object at the link destination of the hyperlink extracted in Step 501 cannot be accessed (the user does not have the right of access thereto). Then, the display controlling unit 180 displays that the user does not have the right of access to the object at the link destination of the hyperlink included in the display target file, onto the display image based on the display target file displayed on the display unit 190 (Step 509).
If the response screen is not the same as the error screen (No in Step 508), the accessibility determining unit 150 determines that the object at the link destination of the hyperlink extracted in Step 501 can be accessed (the user has the right of access thereto). Then, the display controlling unit 180 displays information indicating that the user has the right of access to the object at the link destination of the hyperlink included in the display target file, onto the display image based on the display target file displayed on the display unit 190 (Step 510).
Note that, in the operation illustrated in
Authentication Screen Retrieving Process:
If the INPUT tag whose type attribute is “submit” exists (Yes in Step 604), the authentication screen retrieving unit 140 then examines whether or not an INPUT tag whose type attribute is other than “password” and “submit” exists. If the INPUT tag exists (Yes in Step 605), the authentication screen retrieving unit 140 recognizes the INPUT tag detected in Step 605, as an ID entry field (Step 606). The authentication screen retrieving unit 140 then determines that the object acquired in Step 502 of
In any of the cases where the FORM tag does not exist in the source code of the object acquired in Step 502 of
Access Trial Process:
If the record corresponding to the link destination of the hyperlink is registered in the authentication information DB 160 (Yes in Step 901), the accessibility determining unit 150 then inputs the password of the record corresponding to the link destination read out of the authentication information DB 160, to the password entry field (for example, the input form 811 in
If the record corresponding to the link destination of the hyperlink is not registered in the authentication information DB 160 (No in Step 901), the accessibility determining unit 150 then examines whether or not a record in which a URL similar to the URL of the link destination (similar network position information) is registered exists among the records registered in the authentication information DB 160 (Step 902). If the record in which a URL similar to the URL of the link destination is registered exists, the accessibility determining unit 150 selects the record (Step 903). Then, the accessibility determining unit 150 inputs the password and the ID of the selected record to the authentication screen, and transmits data for requesting the object at the link destination (Steps 904 to 906).
If it is determined in Step 902 that the record in which a URL similar to the URL of the link destination is registered does not exist, authentication information for performing an authentication operation is not specified. Consequently, the accessibility determining unit 150 transmits data for requesting the object at the link destination, without inputting a password and an ID to the authentication screen (Step 906). In this case, the same screen as the error screen acquired in Step 505 of
Whether or not URLs are similar to each other can be determined by, for example, determining the degrees of similarity of character strings on the basis of: whether or not domains or hosts respectively constituting the URLs are the same as each other; or at what proportion the character string constituting each URL includes the same characters. Moreover, any of the input processes in Step 904 and Step 905 in the process illustrated in
If any of the same URL as the URL of the link destination and a URL similar thereto is not registered in the authentication information DB 160, this means that the object at the link destination has not been accessed until then. Accordingly, at the time of actual access to the object at the link destination, the user may be able to access the object by manually inputting a password and an ID. In view of this, if it is determined in Step 902 that the record in which a URL similar to the URL of the link destination is registered does not exist, the display controlling unit 180 may not display the accessibility of the hyperlink included in the display target file displayed on the display unit 190, instead of displaying the information indicating that the user does not have the right of access as described above. Alternatively, in such a case, the display controlling unit 180 may display information indicating that the accessibility is unknown for the hyperlink included in the display target file displayed on the display unit 190. In the case of displaying the information indicating that the accessibility is unknown, a message to the effect that the accessibility is unknown may be displayed as the display example illustrated in
Moreover, in some embodiments, in the case where an authentication operation is performed using the password and the ID associated with the URL of the similar network position information acquired in Step 903 of
Creating the Authentication Information Database:
In some embodiments, authentication information is registered in the authentication information DB 160 by performing a registration operation by the user of the file displaying apparatus 100 as well as by automatically registering, when the user performs an authentication operation on the authentication screen, information inputted in the authentication operation.
If the received input is an input to the authentication screen, the file displaying apparatus 100 then extracts the received authentication information (Step 1003). Here, the file displaying apparatus 100 extracts the password and the ID in accordance with the input forms to which the user inputs information. The file displaying apparatus 100 then examines whether or not the URL of the access request destination when the authentication screen is acquired is registered in the authentication information DB 160 (Step 1004). Then, if the URL of the access request destination is not registered in the authentication information DB 160, the file displaying apparatus 100 registers the authentication information (the password and the ID) extracted in Step 1003 and the URL of the access request destination into the authentication information DB 160 (Step 1005). The file displaying apparatus 100 also registers registration date and time (determination date and time) into the record in which the authentication information and the URL are newly registered.
If the URL of the access request destination is registered in the authentication information DB 160, the file displaying apparatus 100 then examines whether or not the authentication information extracted in Step 1003 is the same as the authentication information registered in the corresponding record in the authentication information DB 160 (Step 1006). Then, if the two pieces of authentication information are the same as each other, the file displaying apparatus 100 updates only the determination date and time in the corresponding record (Step 1007). On the other hand, if the two pieces of authentication information are not the same as each other, the file displaying apparatus 100 updates the authentication information and the determination date and time in the corresponding record (Step 1008).
Hardware Configuration Example:
In the configuration example illustrated in
Note that
In
While the present disclosure has been described above with respect to the embodiment, the present disclosure is not limited to the above-mentioned specific configurations, and any embodiment obtained by variously changing or improving the above-mentioned embodiment is also included in a technique scope of the present disclosure.
Various aspects of the present disclosure are not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
100 file displaying apparatus
110 transmitting and receiving unit
120 file acquiring unit
130 link extracting unit
140 authentication screen retrieving unit
150 accessibility determining unit
160 authentication information database (DB)
170 error screen storing unit
180 display controlling unit
190 display unit
Number | Date | Country | Kind |
---|---|---|---|
2014-152366 | Jul 2014 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6408296 | Acharya et al. | Jun 2002 | B1 |
7461257 | Olkin et al. | Dec 2008 | B2 |
8127219 | Gupta | Feb 2012 | B1 |
8209541 | Deutschmann et al. | Jun 2012 | B2 |
9887977 | Mochizuki | Feb 2018 | B2 |
20040083294 | Lewis | Apr 2004 | A1 |
20050165789 | Minton | Jul 2005 | A1 |
20060271789 | Satomura | Nov 2006 | A1 |
20080212846 | Yamamoto | Sep 2008 | A1 |
20080216163 | Pratte | Sep 2008 | A1 |
20080256459 | Sekiya | Oct 2008 | A1 |
20090031033 | Deng | Jan 2009 | A1 |
20100082674 | Yiu | Apr 2010 | A1 |
20100287231 | Hughes, Jr. et al. | Nov 2010 | A1 |
20110023112 | Murai | Jan 2011 | A1 |
20110179466 | Hamada | Jul 2011 | A1 |
20110251895 | Bladel | Oct 2011 | A1 |
20120311669 | Akase | Dec 2012 | A1 |
20130091585 | Dumais | Apr 2013 | A1 |
20130141743 | Miyazawa | Jun 2013 | A1 |
20130239192 | Linga | Sep 2013 | A1 |
20140157383 | Huang | Jun 2014 | A1 |
20150033029 | Nakajima | Jan 2015 | A1 |
20150113478 | Nakayama et al. | Apr 2015 | A1 |
20150178490 | Tamboly | Jun 2015 | A1 |
20160028706 | Mochizuki et al. | Jan 2016 | A1 |
20160103876 | Bakir | Apr 2016 | A1 |
20180007029 | Mochizuki | Jan 2018 | A1 |
20180063112 | Mochizuki | Mar 2018 | A1 |
Number | Date | Country |
---|---|---|
11039341 | Feb 1999 | JP |
11085801 | Mar 1999 | JP |
2000172614 | Jun 2000 | JP |
2000267998 | Sep 2000 | JP |
2001014207 | Jan 2001 | JP |
2002259215 | Sep 2002 | JP |
2002342270 | Nov 2002 | JP |
2010033483 | Feb 2010 | JP |
5999664 | Sep 2016 | JP |
Entry |
---|
“Welcome to Gmail”, printed on Apr. 7, 2015, pp. 1-2, <https://www.gmail.com/intl/en/mail/help/about.html>. |
“Yahoo Login”, printed on Apr. 7, 2015, p. 1, <https://login.yahoo.com/. |
List of IBM Patents or Patent Applications Treated as Related, Sep. 18, 2017. 2 pages. |
Mochizuki et al., “Displaying the Accessibility of Hyperlinked Files”, U.S. Appl. No. 15/709,539, filed Sep. 20, 2017. |
Mochizuki et al., “Displaying the Accessibility of Hyperlinked Files”, U.S. Appl. No. 15/709,547, filed Sep. 20, 2017. |
Decision to Grant a Patent, Patent Application No. 2014-152366. Drafted Jul. 26, 2016, Translated Sep. 6, 2017. 3 pages. |
Notification of Reasons for Refusal, Patent Application No. 2014-152366. Drafted Jun. 17, 2016, Translated Sep. 6, 2017. 3 pages. |
Number | Date | Country | |
---|---|---|---|
20180007028 A1 | Jan 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14739117 | Jun 2015 | US |
Child | 15709527 | US |