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

# Host Verification

> About verifying Hosts on LoadForge

LoadForge requires that you add and verify hosts before you can run tests against them. This is to prevent users from running tests against websites or services that they do not own.

The process is very quick and requires either a simple meta tag or a file placed in your application's public directory.

<Note>
  **But why???** We do this to prevent LoadForge from being used to DoS other websites. It helps prove you own the website or application.
</Note>

## Meta Tag

The meta tag we use is called `loadforge-site-verification`, and it needs to be placed in the header of your website or application. For APIs, this is often not appropriate, and the File method is recommended.

The final meta tag looks like this (with your unique verification code):

```html example.html theme={null}
<meta 
    name="loadforge-site-verification" 
    content="8ee17273640295c9b40ae854f510a82d29824e91[..]" 
/>
```

## File Verification

The file check sends a request to your webserver for the file `loadforge.txt`. If your site is `https://test.com`, then you would need to ensure that `https://test.com/loadforge.txt` is accessible.

Once this file is returned with the verification string we provide, the test will pass.

The file must contain your verification code, the same as seen in the meta tag example. The code for the meta tag and the file is always identical.

## DNS Verification

You may also verify your ownership with a DNS TXT record called `loadforge-site-verification`.
It must exist under the host you are trying to validate. For example, `loadforge-site-verification.loadforge.com` must contain your account validation key as the value.

### Lookup Example

<CodeGroup>
  ```shell nslookup theme={null}
  ❯ nslookup
  > set type=txt
  > loadforge-site-verification.loadforge.com
  [..]

  Non-authoritative answer:
  loadforge-site-verification.loadforge.com       text = "8ee17273640295c9[..]"
  ```

  ```shell dig theme={null}
  ❯ dig loadforge-site-verification.loadforge.com TXT
  > loadforge-site-verification.loadforge.com
  [..]
  loadforge-site-verification.loadforge.com. 300 IN TXT "8ee172736402[..]"
  ```
</CodeGroup>

## Automatic Validation

We use the same verification tag for your account, regardless of the host. This means you can always use the meta tag or file we provide on any of your applications.

This also simplifies adding hosts through the API, as you will know their validation code in advance.

Additionally, if you validate `example.com`, we will automatically validate any subdomains under that domain, such as `dev.example.com`, when you add them.

## Alternative Validation

If you need to validate your domain manually, you can [contact us](https://loadforge.com/contact) or email [support@loadforge.com](mailto:support@loadforge.com). You will be required to prove ownership.
