Licson Lee says to YSITD
Switch(config)# interface range gi0/x-y Switch(config-if-range)# switchport port-security Switch(config-if-range)# switchport port-security mac-address sticky Switch(config-if-range)# switchport port-security maximum 1 Switch(config-if-range)# switchport port-security violation restrict