Network system, network device, access restriction method for network device, storage medium, and program

Information

  • Patent Application
  • 20010052018
  • Publication Number
    20010052018
  • Date Filed
    May 31, 2001
    23 years ago
  • Date Published
    December 13, 2001
    23 years ago
Abstract
When access is attempted by a device equipped with Web client capabilities, a device connected to a network and equipped with Web server capabilities judges whether to restrict the access. If it is judged that the access should be restricted, information about the reason for the access restriction is sent regardless of the information possessed by the device equipped with Web client capabilities.
Description


BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention


[0002] The present invention relates to a network system, network device, access restriction method for the network device, storage medium, and program.


[0003] 2. Related Background Art


[0004] Recent years have seen a rapid growth of an Internet that is run by means of networks connected with network devices such as computers and printers. Consequently, various applications have been developed that use the Internet. In the future, it is expected that such Internet applications will grow rapidly. In particular, network devices, such as printers connected to networks, are provided with Web server capabilities to allow a commercially available Web browser to access the network devices and refer to the status, print jobs, etc. of the network devices. The initial values or the like of such network devices are set by device managers. The device managers should take measures to restrict access to Web servers in order to prevent the settings to be overwritten by users during the maintenance of the network devices.


[0005] However, although it is possible to restrict access to a Web server and issue an error code such as “403 Forbidden” or the like when a user who is forbidden access to the Web server tries to access it, the amount of information contained in the error code is too small to explain to the user clearly why the access to the Web server was restricted. Also, although it is possible to notify the user of the restriction on access to the Web server by changing an HTML file dynamically, the user's Web server displays the HTML file stored in its cache regardless of the HTML file's update date specified by the user. Consequently, the amount of display data cannot be reduced even if the HTML file was undated after the update date.



SUMMARY OF THE INVENTION

[0006] An object of the present invention is to make it possible to clearly explain to users the reason for restrictions on access to network devices.


[0007] Another object of the present invention is to make it possible to reliably explain to the users the reason for the latest access restriction.


[0008] Another object of the present invention is to reduce the amount of display data sent to the users.


[0009] Other objects of the present invention will be apparent from the following detailed description taken in connection with the accompanying drawings.







BRIEF DESCRIPTION OF THE DRAWINGS

[0010]
FIG. 1 is a block diagram of a network system according to an embodiment of the present invention;


[0011]
FIG. 2 shows an internal configuration of a network device in the network system of FIG. 1;


[0012]
FIG. 3 is a flowchart showing an operation of the network system according to the embodiment of the present invention;


[0013]
FIG. 4 is a drawing showing an example of HTTP sequence between a Web client and a Web server; and


[0014]
FIGS. 5A and 5B show examples of Web browser display, where 5A shows an example of a typical Web browser and 5B shows an example of a Web browser whose access to the Web server is restricted.







DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Now, the network system according to an embodiment of the present invention will be described below with reference to the drawings.


[0016]
FIG. 1 is a block diagram of a network system according to the embodiment of the present invention;


[0017] In FIG. 1, a LAN 100 (network) is connected with a plurality of network devices including a color printer 101, an MFP (multi function peripheral) 102 such as a copier that can be used as a network printer, a monochrome printer 103, a facsimile machine 104, and scanners 105 and 106 as well as with a plurality of computers including desktop PCs 111 and 112 and a notebook PC 113.


[0018] The color printer 101, MFP 102, the monochrome printer 103, the facsimile machine 104, and desktop PCs 111 and 112 are installed on the second floor of the building while the scanners 105 and 106 and notebook PC 113 are installed on the first floor of the building. The notebook PC 113, which is portable, can be disconnected from the LAN 100.


[0019] The desktop PCs 111 and 112 and notebook PC 113 are equipped with a Web browser to refer to the status, etc. of network devices equipped with Web server capabilities. These PCs are capable of HTTP-(Hypertext Transfer Protocol) based access to exchange HTML (Hypertext Markup Language) documents among the network devices.


[0020] At least one of the network devices described above is equipped with a Web server and at least one of the computers is equipped with a Web client.


[0021] Moreover, the network 100 is connected to the Internet 130 via a firewall 120 and further connected to another network 140 through the Internet 130.


[0022]
FIG. 2 is a block diagram showing the internal configuration of the network device in the network system of FIG. 1.


[0023] Referring to FIG. 2, the network device equipped with a Web server comprises a control unit 200, a peripheral device control unit 201, and a LAN protocol control unit 202, which are connected to a control bus 203 that totally controls the control units as well as to a data bus 204.


[0024] The data bus 204 is connected with peripheral devices such as a printer and facsimile machine. The control unit 200 consists of a CPU, ROM, RAM, backup RAM, etc. For example, according to a program stored in the ROM, the CPU judges whether a device is placed under maintenance, and decides to apply access restrictions if the device is under maintenance. The backup RAM stores a flag for the CPU to decide whether to apply access restrictions. The peripheral device control unit 201 sends and receives data to/from peripheral devices such as a printer and facsimile machine via the data bus 204.


[0025] The LAN protocol control unit 202 sends and receives data to/from other network devices or PCs via the LAN 100.


[0026]
FIG. 3 is a flowchart showing the process of restricting access to a network device equipped with Web server capabilities, performed by the network system according to the embodiment of the present invention.


[0027] In FIG. 3, after a start-up of the network device equipped with Web server capabilities, if the Web client installed on a computer attempts to access the Web server (YES in Step S300), the Web server refers to the access restriction information stored in the storage means of the network device (Step S301) and judges whether an access restriction should be applied (Step S302). The access restriction information mentioned above is set by a device manager and used to decide whether to restrict access to the Web server on the network device.


[0028] If it is judged in Step S302 that Web server access is not restricted (access is permitted) according to the access restriction information, the Web server goes to Step S303 and judges whether there is an “If-Modified-Since” request from the Web client.


[0029] The “If-Modified-Since” request here means a date/time-stamped request from the Web client. If the HTML file of the Web server has not been modified since that date, “Not Modified” is returned indicating that the HTML file has not been modified. This helps reduce the network load associated with downloading. If the Web client has cached the file that corresponds to the URL specified by the user, it sends out the “If-Modified-Since” request.


[0030] If it is judged in Step S303 that there is an “If-Modified-Since” request from the Web client, the Web server goes to Step S304, where it compares the date/time information stamped on the “If-Modified-Since” request with the date/time stamp on the HTML file retained by the Web client to judge whether the HTML file retained by the Web server has been updated. If it is judged in Step S304 that the file has not been updated since the date/time advised by the Web client, the Web server sends “Not Modified” to the Web client, indicating that the HTML file has not been modified (Step S305). On the other hand, if the HTML file has been updated, the Web server sends, as the updated file, the HTML file (Step S306) that corresponds to FIG. 5A described later and finishes the processing.


[0031] Incidentally, in Step S306, the Web server sends the HTML file of the Top page specified by the device unless otherwise specified.


[0032] If it is judged in Step S303 that there is no “If-Modified-Since” request from the Web client, the Web server sends the HTML file (Step S306) that corresponds to FIG. 5A described later regardless of whether the HTML file has been updated, and finishes the processing.


[0033] If it is judged in Step S302 that Web server access is restricted, the Web server goes to Step S307, where it judges whether there is an “If-Modified-Since” request from the Web client. If it turns out that there is no “If-Modified-Since” request from the Web client, the Web server notifies the user of the access restriction (Step S308) by sending to the Web client the HTML file prepared in advance to display information about the restriction on access to Web server and the reason for the restriction as shown in FIG. 5B described later. Then the Web server finishes the processing.


[0034] On the other hand, if it is judged in Step S307 that there is an “If-Modified-Since” request from the Web client, the Web server performs the process of Step S308 described above and finishes the processing without judging whether the HTML file has been updated since the date/time of the HTML file retained by the Web client (Step S309).


[0035]
FIG. 4 is a drawing showing an example of HTTP sequence between a Web client and Web server. The following description will be associated with the description of FIG. 3 by appending the step numbers used in the flowchart of FIG. 3.


[0036] At least one of the network devices including the color printer 101, MFP (multi function peripheral) 102 such as a copier that can be used as a network printer, monochrome printer 103, facsimile machine 104 is equipped with a Web server 401. Also, at least one of the desktop PCs 111 and 112 and notebook PC 113 is equipped with a Web client 402.


[0037] When the Web browser on the desktop PC 111 or 112 or notebook PC 113 sends packets to a Web client 400, specifying the Web server 401 by its URL, if the Web client 400 retains the Top page information of the Web server 401, the Web client 400 starts making an inquiry as to whether access to the Web server 401 is restricted, by using “GET/HTTP1.0 If-Modified-Since:Tuesday, 30-Feb-00 . . . ” as a data request (402) (Step S300 in FIG. 3).


[0038] Next, the Web server 401 returns “GET Ack” to inform (403) the Web client that the data has been acquired securely and returns status (404) (Step S301 in FIG. 3) in response to the data request (402). In this example, the Web server 401 first returns “HTTP/1.0 200 OK” indicating normal status, then using “<html>.<head> . . . _err.gif . . . ” it returns the HTML file which shows that access to the Web server 401 is restricted (405) (Step S308 in FIG. 3). In this case, since the HTML file contains an image data file “err.gif,” the Web client 400 requests the image data file “err.gif” by means of “GET/_err.gif HTTP/1.0 . . . ” (406) and in response to the request, the Web server 401 returns to the Web client 400 the HTML file (407) that corresponds to FIG. 5B described later.


[0039]
FIGS. 5A and 5B show display examples of Web browsers accessing a Web server.


[0040] In FIG. 5A, the Web browser 500 displays a typical Web browser's screen 502, which contains a URL 501 that identifies a network device by specifying its IP address. In this example, the screen displays an image and status of a printer. Incidentally, the Web browser 500 displays the Top page data retained by the Web server 401 unless a file name is specified.


[0041] On the other hand, in FIG. 5B, a Web browser 503 displays the screen 505 sent by the Web server 401 when access to the Web server 401 is restricted by the device manager. The image data and character data on the screen 505 makes it possible to notify the Web client 400 clearly that access to the Web server 401 is restricted.


[0042] Typical examples of the Web browsers 500 and 503 include Microsoft Corp.'s Internet Explorer, Netscape Communications Corp.'s Netscape Communicator, etc.


[0043] According to this embodiment, if it has been determined to restrict access to the Web server (YES in Step S302), an HTML file (FIG. 5B) that contains information about the restriction on access to the Web server and the reason for the restriction is sent to the Web client (Step S308). Therefore, the HTML file sent to the Web client can notify the user reliably of the restriction on access to the Web server and the reason for the restriction (e.g., maintenance). Besides, if it has been determined to restrict access to the Web server (YES in Step S302) and if the Web client has specified the update date of the data (YES in Step S307), the HTML file (FIG. 5B) that contains information about the restriction on access to the Web server and the reason for the restriction is sent to the Web client (Step S308) without comparing update dates/times of the HTML file (Step S309). This prevents the HTML file cached by the Web browser from being displayed and thus makes it possible to notify the latest reason or the like reliably. If access is not restricted, the amount of display data can be reduced because status information is provided according to the update date.


[0044] Although the above embodiment uses an HTML file to provide device information, it may also use a text file, image file, etc. Besides, although in the above embodiment, a Web server has been installed on a network device, it may also be installed on a computer and send device information to the Web client by playing the role of a proxy server.


[0045] Although a process of restricting access to the Web server has been described in relation to the above embodiment, this process may be written as a program into a storage medium and then be performed through execution of the program read out from the storage medium. Possible candidates for the storage medium include a floppy disk, hard disk, CD-ROM, MO, etc., but the storage medium is not limited to any specific type, and any type can be used as long as it can store the above-mentioned program.


[0046] As described above in detail, the present invention can clearly explain to users the reason for restrictions on access to network devices.


[0047] Also, it is possible to reliably explain to the users the reason for the latest access restriction.


[0048] Besides, it is possible to reduce the amount of display data sent to the users.


Claims
  • 1. A network-connectable device, comprising: judging means for judging whether access by another device should be restricted; and sending means for sending the reason for the access restriction if access by said other device is restricted.
  • 2. The network-connectable device according to claim 1, further comprising: detection means for detecting time information related to the information possessed by said other device, wherein said sending means sends information which indicates the status of said other device according to the time information detected by said detection means, if access by said other device is not restricted.
  • 3. The network-connectable device according to claim 2, wherein said sending means sends information which indicates the reason for the access restriction regardless of the time information sent by said other device if access by said other device is restricted.
  • 4. A network-connectable device, comprising: judging means for judging whether access by another device should be restricted; detection means for detecting time information related to the information possessed by said other device; and sending means for sending the status of said other device according to the judgment made by said judging means and the time information detected by said detection means.
  • 5. The network-connectable device according to claim 4, wherein said sending means sends information which indicates the reason for the access restriction regardless of the time information sent by said other device if access by said other device is restricted.
  • 6. A network system connected with a plurality of computers and a plurality of network devices wherein one of said computers is equipped with a Web client and another one of said computers and one of said network devices are equipped with a Web server, comprising: determination means for determining to restrict access to said Web servers; and notification means for sending data about the restriction on access to said Web server to said Web client if it has been determined to restrict access to said Web server.
  • 7. The network system according to claim 6, wherein if it has been determined to restrict access to said Web server and if said Web client has specified the update date of said data, said notification means sends data about the restriction on access to said Web server to said Web client regardless of whether said data has been updated since the specified update date.
  • 8. The network system according to claim 7, wherein said notification means notifies said Web client of the status of said plurality of network devices.
  • 9. A control method for a network-connectable device, comprising: a judging step of judging whether access by another device should be restricted; and a sending step of sending the reason for the access restriction if access by said other device is restricted.
  • 10. A control method for a network-connectable device, comprising: a judging step of judging whether access by another device should be restricted; a detection step of detecting time information related to the information possessed by said other device; and a sending step of sending the status of said other device according to the judgment made by said judging step and the time information detected by said detection step.
  • 11. A network system connected with a plurality of computers and a plurality of network devices, in which one of said computers is equipped with a Web client and another one of said computers and one of said network devices are equipped with a Web server, comprising: a determination step of determining to restrict access to said Web servers; and a notification step of sending data about the restriction on access to said Web server to said Web client if it has been determined to restrict access to said Web server.
Priority Claims (2)
Number Date Country Kind
2000-176128 Jun 2000 JP
2001-141774 May 2001 JP