Cloaking typically involves the use of scripts or software that can detect whether the email is being viewed by an ESP or a human user. Based on this detection, the content or URLs are dynamically altered. Some common methods include IP delivery, user-agent detection, and JavaScript redirects.