If you plan to sue eBay Inc., you’d better know the way to San Jose.

In a growing trend, federal judges are enforcing the “forum selection clause” in eBay’s standard user agreement, which calls for any dispute between eBay and its users to be resolved through a court action filed in Santa Clara County, Calif.