Confinement measures at the beginning of the COVID-19 pandemic imposed major changes on the global population. The aim of this study was to explore the level to which the public adhered to protective guidelines by adopting the most appropriate behaviors at that time (such as hand washing with soap and using sanitizer gel) and to identify the determinants of these behaviors. A purposive sample of 1013 individuals was invited and voluntarily participated in the online survey. The questionnaire collected information on demographic data, hand washing, risk perception, anxiety (through the S = Anxiety scale of STAI) and risky-choice framing. Results showed increased levels of anxiety, a moderate perception of the risk of catching coronavirus and increased adoption of protective behaviors, such as handwashing and cleaning surfaces with disinfectant/antiseptic products. Multiple ordinal logistic regression models showed that being female, more educated and cleaning home with disinfectant / antiseptic products predicted handwashing with soap. Additionally, having an increased perception of getting the coronavirus, being older and cleaning the home with disinfectant / antiseptic products predicted handwashing with antiseptics. Public health interventions should take into consideration the unified cleaning pattern and the combined effect of sociodemographic variables and risk perception on the adoption of protective behaviour in the context of a health crisis which is out of people's control.