Securing doors and windows