Some countries may allow adding spikes or barbed wire to a fence. But adding such deterrents may be illegal if it causes injury to animals or even trespassers. In general, it’s not advisable to use spikes as a fence security measure. You can opt for more humane alternatives like prickly shrubs or automatic water sprays. Or you may consult a pet fencing expert for effective deterrents that abide by local council laws.