> For the complete documentation index, see [llms.txt](https://docs.raga.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/additional-metrics/guardrails/url-reachability.md).

# URL Reachability

Check if generated URLs are reachable. Ensure AI outputs contain working, valid links.

Tests the reachability of the urls in the model response

**Required arguments**: prompt, response

**Interpretation of results**: Score 1 represents all the urls are valid, and 0 means they're invalid

#### Code Example:

```python
prompt = '''What is the website for Netflix'''
response = '''Here is the official websites for Netflix:
Netflix:(www.netflix.com)'''

evaluator.add_test(
    test_names=["url_reachability_guardrail"],
    data={'prompt':prompt,
          'response': response,

    },

).run()
evaluator.print_results()
```
