How they regulate the difficulty, I mean, what prevents you from mining ?
It's very simple , such as POW . There is a onece , you need to calculate hash to find this once . If there is not too many miners , the once maybe is very easy to find , but when there are too many miners , the once is very hard to find .