diff --git a/src/shared/components/instances.tsx b/src/shared/components/instances.tsx index 1071817..23490db 100644 --- a/src/shared/components/instances.tsx +++ b/src/shared/components/instances.tsx @@ -406,6 +406,14 @@ export class Instances extends Component { } } + isOpenInstance(i: any): boolean { + return !( + i.site_info.site_view.local_site.registration_mode !== "Open" || + i.site_info.site_view.local_site.captcha_enabled || + i.site_info.site_view.local_site.require_email_verification + ); + } + buildInstanceList() { let instances = instance_stats.stats.instance_details; const recommended = RECOMMENDED_INSTANCES; @@ -430,6 +438,9 @@ export class Instances extends Component { ); } + // Filter out all open instances (often used by bots) + instances = instances.filter(i => !this.isOpenInstance(i)); + // Sort if (this.state.sort == RANDOM_SORT) { instances = sortRandom(instances);