Port security can be the best method of security incase you do not have a physical control of your devices in the location. Port security will only let group of address/addresses to access the switch securing your network from physical attacks.
Secured ports restrict a port to a user-defined group of stations. When you assign secure addresses to a secure port, the switch does not forward any packets with source addresses outside the defined group of addresses. If you define the address table of a secure port to contain only one address, the workstation or server attached to that port is guaranteed the full bandwidth of the port. As part of securing the port, you can also define the size of the address table for the port.
Command to enable port security
In config mode, use following command to enable port security
switchport port-security
To define allowed mac-addrresses
switchport port-security maximum max_addrs
To set security violation
switchport port-security violation {shutdown | restrict | protect}