The country's top court ruled that such advertisements violate the Pre-Conception and Pre-Natal Diagnostic Techniques (Prohibition of Sex Selection) Act of 1994.
The three companies have also been asked to update their 'terms of service' to include this order.
Further hearings about this issue will be held in February.
In December, the Supreme Court had made its displeasure known over the central government's inability to restrict online content that violates the nation's rules.
Sex determination, though illegal, is still practised in India, which is grappling with a severe male-female ratio. According to UN data, India's sex ratio has been on a steady decline: from 976 girls to every 1,000 boys in 1961, the figure for the girls has come down to 918.
Prime Minister Narendra Modi has spoken on this issue several times, most recently during a rally in Haryana. US president Barack Obama, during his 3-day visit to India, also said that the growth of a nation depends on the growth of the female population.
Stay updated on the go with Times of India News App. Click here to download it for your device.