We show that for every smooth generic projective hypersurface X⊂Pn+1, there exists a proper subvariety Y⊊X such that codimXY≥2 and for every non constant holomorphic entire map f:C→X one has f(C)⊂Y, provided °X≥2n5. In particular, we obtain an effective confirmation of the Kobayashi conjecture for threefolds in P4.