Search engines can penalize sites they discover using black or gray hat methods, either by lowering their ranking or removing their records from their databases entirely.