The photoionization of hydrogen atom confined by a spherical barrier in ultrashort laser pulses is studied. The spectrum of confined hydrogen atom is worked out by employing finite basis set method based on B-spline as well as B-polynomial representation of wavefunction. Effect of confinement on spectra is studied and the effect of pulse parameters and confinement on photoexcitation and ionization is particularly stressed on.