The Navy is urging service members and families to limit online details amid concerns about surveillance and attacks.