deterrent

noun
UK /dɪˈter.ənt/
US /dɪˈtɝː.ənt/

Something that makes you not want to do something.

The bright light is a deterrent to burglars.


OTHER MEANINGS

2. A thing that stops someone from acting, especially by fear of consequences.

The guard dog acts as a deterrent against intruders.

3. A military force or weapon that discourages an enemy from attacking.

The country built up its defenses as a deterrent.

4. Having the power to discourage or prevent something.

The school has a deterrent policy against bullying.