> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stopmodreposts.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Hosts.txt

> Get all sites on the StopModReposts blocklist in the hosts.txt format.

<Info>
  You can find a full overview of game blocklists [here](https://github.com/StopModReposts/Illegal-Mod-Sites/tree/master/lists). To requests sites from the `minecraft.yml` list, use `minecraft` as the game identifier.
</Info>


## OpenAPI

````yaml GET /{game}/hosts.txt
openapi: 3.0.3
info:
  title: StopModReposts Sites API
  description: >-
    API for retrieving lists of websites that redistribute mods illegally.
    Supports multiple formats including JSON, XML, YAML, and various blocklist
    formats.
  version: 1.0.0
  contact:
    name: StopModReposts
    url: https://stopmodreposts.org
servers:
  - url: https://api.stopmodreposts.org
    description: Production server
security: []
paths:
  /{game}/hosts.txt:
    get:
      summary: Get hosts file for a specific game
      parameters:
        - $ref: '#/components/parameters/game'
      responses:
        '200':
          description: Hosts file format
          content:
            text/plain:
              example: 0.0.0.0 example.com
components:
  parameters:
    game:
      name: game
      in: path
      required: true
      description: The identifier of the game (e.g., 'minecraft')
      schema:
        type: string

````