SAN FRANCISCO — LinkedIn Corp. has resolved its dispute with an upstart recruiting firm it accused of using spambots to infiltrate the professional networking site and scrape user data.

Under a settlement agreement submitted for court approval Friday, Robocog Inc. will pay LinkedIn $40,000 and destroy all information it illicitly obtained from the site within 30 days. Robocog, which operates under the name HiringSolved, has also agreed not to circumvent the social networking site’s security measures or extract data for commercial purposes.