It would be legal for your employer to impose a penalty condition like this, so long as it was written into your contract or staff handbook when you first started work with your employer.
If your employer is seeking to introduce a condition like this, it would count as a change of contract. See our section on contract changes for more information.
Just One More Click: Doggy drama about staying safe online at work.