Google Inc. has added a virus scanning feature to its Gmail Web mail service, complementing the existing virus protection based on blocking certain types of file attachments, such as executables.