Rye is a hamlet in the civil parish of Odiham, in the Hart district of Hampshire, England. The hamlet lies near the A287 road between Odiham and Farnham. The hamlet is made up of a large farm and a common. Its nearest town is Hook approximately four miles (six kilometres) away although it lies two miles (three kilometres) closer to Odiham.