Noninvasive lung drug delivery is critical for treating respiratory diseases. Pluronic-based copolymers have been used as multifunctional materials for medical and biological applications. However, the Pluronic F127-based hydrogel is rapidly degraded, adversely affecting the mechanical stability for prolonged drug release. Therefore, this study designed two thermosensitive copolymers by modifying the Pluronic F127 terminal groups with carboxyl (ADF127) or amine groups (EDF127) to improve the viscosity and storage modulus of drug formulations. β-alanine and ethylenediamine were conjugated at the terminal of Pluronic F127 using a two-step acetylation process, and the final copolymers were characterized using 1H nuclear magnetic resonance (1H NMR) and Fourier-transform infrared spectra. According to the 1H NMR spectra, Pluronic F127 was functionalized to form ADF127 and EDF127 with 85 % and 71 % functionalization degrees, respectively. Rheological studies revealed that the ADF127 (15 wt%) and EDF127 (15 wt%) viscosities increased from 1480 Pa.s (Pluronic F127) to 1700 Pa.s and 1800 Pa.s, respectively. Furthermore, the elastic modulus of ADF127 and EDF127 increased, compared with that of native Pluronic F127 with the addition of 5 % mucin, particularly for ADF127, thereby signifying the stronger adhesive nature of ADF127 and EDF127 with mucin. Additionally, ADF127 and EDF127 exhibited a decreased gelation temperature, decreasing from 33 °C (Pluronic F127 at 15 wt%) to 24 °C. Notably, the in vitro ADF127 and EDF127 drug release was prolonged (95 %; 48 h) by the hydrogel encapsulation of the liposome–Bdph combined with mucin, and the intermolecular hydrogen bonding between the mucin and the hydrogel increased the retention time and stiffness of the hydrogels. Furthermore, ADF127 and EDF127 incubated with NIH-3T3 cells exhibited biocompatibility within 2 mg/mL, compared with Pluronic F127. The nasal administration method was used to examine the biodistribution of the modified hydrogel carrying liposomes or exosomes with fluorescence using the IVIS system. Drug accumulation in the lungs decreased in the following order: ADF127 > EDF127 > liposomes or exosomes alone. These results indicated that the carboxyl group-modified Pluronic F127 enabled well-distributed drug accumulation in the lungs, which is beneficial for intranasal administration routes in treating diseases such as lung fibrosis.