Cell migration is an important process that influences many aspects of health, such as wound healing and cancer, and it is, therefore, crucial for developing methods to study the migration. The scratch assay has long been the most common in vitro method to test compounds with anti- and pro-migration properties because of its low cost and simple procedure. However, an often-reported problem of the assay is the accumulation of cells across the edge of the scratch. Furthermore, to obtain data from the assay, images of different exposures must be taken over a period of time at the exact same spot to compare the movements of the migration. Different analysis programs can be used to describe the scratch closure, but they are labor intensive, inaccurate, and forces cycles of temperature changes. In this study, we demonstrate an optimized method for testing the migration effect, e.g. with the naturally occurring proteins Human- and Bovine-Lactoferrin and their N-terminal peptide Lactoferricin on the epithelial cell line HaCaT. A crucial optimization is to wash and scratch in PBS, which eliminates the aforementioned accumulation of cells along the edge. This could be explained by the removal of cations, which have been shown to have an effect on keratinocyte cell-cell connection. To ensure true detection of migration, pre-treating with mitomycin C, a DNA synthesis inhibitor, was added to the protocol. Finally, we demonstrate the automated optical camera, which eliminates excessive temperature cycles, manual labor with scratch closure analysis, while improving on reproducibility and ensuring analysis of identical sections of the scratch over time.