Whitelisting is a security measure that allows only approved and trusted applications or devices to access certain resources or functionalities, blocking unauthorized access.