Preventing or detecting unlawful acts