How does imdb.com generate revenue?

It's owned by Amazon.com, which sells films. If you look up a specific film such as "True Grit" (1969), there is a link on the right of the page that takes you to Amazon.com to buy it.