We have investigated a new approach to the use of optical scanning microscopy for the measurement of refractive index profiles in optical waveguides. Besides the novelty in performing the scan of the optical beam, instead ofthat of the sample, a new technique is used for collecting the reflected beam. It consists in deviating the reflected beam just after the reflection takes place, so that no spurious reflections overlap in the detection branch, giving rise to unwanted background and noise. The feasibility of this approach for cleaved optical fibers is demonstrated, while in the case of polished planar optical waveguides, the polishing creates surface problems that affect the index profile.