Resorcinol-formaldehyde aerogel coating was in situ prepared on the surface of basalt fibers. The aerogel coating is uniformly modified onto basalt fibers, and it is very porous according to the characterization by using scanning electron microscopy. An extraction tube was prepared for in-tube solid-phase microextraction by placing the aerogel-coated basalt fibers into a polyetheretherketone tube. To evaluate the extraction performance toward five estrogenic compounds, the tube was connected with high performance liquid chromatography, the important extraction and desorption conditions were investigated. An online analytical method for detection of estrogens was developed and presented low limits of detection (0.005-0.030 µg/L), wide linear ranges (0.017-20, 0.033-20, and 0.099-20 µg/L), good linearity (r>0.9990), and satisfactory repeatability (relative standard deviation<2.7%). The method was successfully applied to detect trace estrogens in real water samples (bottled pure water and bottled mineral water), satisfactory recoveries were ranged from 80 to 125% with two spiking levels of 2 and 6µg/L.