FARMINGTON, Maine — Franklin Savings Bank says it has shut down its Web site for the second time in a week because of a malicious code that’s affecting a large number of Internet sites.

Senior Vice President Tim Thompson told the Sun Journal on Wednesday that the Farmington-based bank is changing Web hosting companies and will have its new Web page in operation as soon as possible.

Thompson said the malicious code appears to be widespread on servers of the Web hosting company. He wouldn’t identify the company, but said it hosts hundreds of thousands of Web pages worldwide.

Officials said the bank’s computer security closed the site as a protective measure when it detected the code. They said customer information is safe because the affected site is separate from bank operations.