An image forming apparatus includes: a communication interface accessing
Web addresses; a memory for storing predetermined addresses; a first
determination unit for determining whether the image forming apparatus is
in a first state that access of the image forming apparatus is limited to
the predetermined addresses or a second state that the image forming
apparatus is permitted to access any addresses; a second determination
unit for determining whether a designated address is included in the
predetermined addresses, when the image forming apparatus is in the first
state; and a permission unit for giving to the communication interface
permission to access the designated address, when the designated address
is included in the predetermined addresses.