Asking a woman her age isn’t just impolite — it can get you sued.

An unnamed actress is demanding $1 million from Amazon.com, accusing the company’s popular movie Web site, IMDb, of revealing her age by using her credit-card information.

The actress, who filed the federal suit in Seattle as “Jane Doe,” says she was keeping her age a secret because if Hollywood producers knew how old she was, she’d get fewer roles.

“In the entertainment industry, youth is king,” the suit says.

“If one is perceived to be ‘over-the-hill,’ i.e. approaching 40, it is nearly impossible for an up-and-coming actress, such as the plaintiff, to get work.”

The woman’s exact age isn’t listed in the suit. It says she is living in Texas.

She claims in the suit that IMDb, which is owned by Amazon, got her private information in 2008, when she subscribed to the site’s pay service, IMDbPro.

“Shortly after subscribing to IMDbPro, plaintiff noticed that her legal date of birth had been added to her public profile … revealing to the public that the plaintiff is many years older than she looks,” the suit says.

,