Switchport protected is syntax used for Layer 2 ports - this command stops direct traffic inside VLAN between 2 and more ports.
Switchport block is syntax used for Layer 2 ports - this command is protecting ports from unicast/multicast traffic from unknown source.