Williams, who has done two stints in rehab himself, is concerned for the well being of the 20-year-old.
"Miley's got the world talking and looking at her. And the spotlight that's now upon her is rehab-making. It has a detrimental effect on your psyche. I've had a similar light shine on my direction and it f***s you up - for a long time," femalefirst.co.uk quoted him as saying.
The 39-year-old star believes Miley, who shot to fame on Disney TV show “Hannah Montana”, is fighting against the showbiz industry and trying to break away from her father Billy Ray Cyrus.
He said: "She's a kid who looks as though she's rebelling against her father and rebelling against the industry that put her in a Hannah Montana-shaped box."
Photos: Shah Rukh Khan, Shweta Bachchan at Karan Johar's book launch
Photos: Sunny Deol with sons Karan and Rajvir at Mumbai airport
Photos: 10 beautiful moments that capture winter around the world
Photos: Karisma Kapoor, Preity Zinta, Shraddha Kapoor at Mumbai airport
Spotted: Anushka Sharma and Diljit Dosanjh at Mumbai studio