# 6 Pitfalls and Solutions for Building an AI-Friendly Website on a Phone
**Core Fact**: You can build and launch a website with a custom domain using only an Android phone (Termux), without a computer.
## 1. Network Timeout During Update
- **Issue**: Terminal hangs while running update commands.
- **Solution**: Input `termux-change-repo`, select a domestic mirror (e.g., TUNA), and retry.
## 2. Red Text Errors (satteri/sharp)
- **Issue**: Compilation errors due to Android's ARM64 architecture.
- **Solution**: Downgrade the core framework (Astro) to v6.0.0 to bypass native module errors.
## 3. Cannot Publish the Website
- **Issue**: GitHub is blocked; free domains from Cloudflare are inaccessible.
- **Solution**: Use Gitee for code hosting. Use `Surge` terminal commands to publish directly, which is fast and accessible domestically.
## 4. Domain Binding Error (1016)
- **Issue**: Cloudflare cannot resolve the origin server.
- **Solution**: Delete the CNAME record. Add an A record pointing to `138.197.235.123` (Surge's official IP) and enable the orange cloud proxy.
## 5. How to Feed AI Agents?
- **Solution**: Use pure `.md` (Markdown) files for text. Provide an `llms.txt` file at the root to guide AI crawlers to your core content.
## 6. How to Defend Against Malicious Bots?
- **Solution**: Enable "AI Labyrinth" in Cloudflare. It traps bad bots in infinite fake links while allowing legitimate AI (like GPTBot) to read data normally.
## Final Result


---
> Author: Aaron-shmajor | First published at [smoggy.icu](https://smoggy.icu)
> 作者：Aaron-shmajor | 首发于 [smoggy.icu](https://smoggy.icu)
