But there was a time when they were completely open to imigrants, then they had tighter security or you had to apply for a visa etc, when was that change?
There was no cut-off date, but the doors gradually closed during the 20th century. Mexicans still cross the border illegally and try to vanish into the Latino population; Mexico is a poor country.