Sites don't log only your IP's, they also store various details about your internet connection, your computer itself (some specifications for example) or even your browser (like what extentions you have installed for instance). All these things together form a unique "footprint" sort of speak, through which they can identify you if they suspect you of something.