How to Host Websites & Block Ads on a Cracked Screen Android
or Unbrick Your Life: Give Your Old Phone a Job as a 24/7 Privacy Server
One-Line Flow:
Turn your old Android into a 24/7 ad-blocking, web-hosting, battery-backed home server that laughs at Raspberry Pi prices.
Who Is This For?
- The “why is a Pi $150 now??” broke-but-brilliant 1Hacker.
- The “I have 4 old Androids in my drawer” collector.
- The “I want Pi-hole, servers, automation, but I also want rent money” realist.
- The “free > paid” enthusiast who loves hacks that feel mildly illegal.
If your phone charges → it works.
If your phone is cracked → it still works.
If it turns on → congratulations, you have a server.
Why This Is Awesome
- $0 hardware — you literally already own it.
- Built-in UPS — power cuts? lol, battery go brrrr.
- Fast storage — no more SD-card corruption nightmares.
- Silent — unlike your CPU-frying PC.
- Low power — runs 24/7 for pocket change.
- Beginner-safe — no soldering, no boards, no tears.
It’s the smartest recycling you’ll ever do.
Dumb Mode Dictionary (Because Tech Bros Overcomplicate Everything)
-
Private DNS:
A secret door where you tell Android “use this DNS for everything.” -
Dynamic DNS (DDNS):
Gives your ever-changing home IP a permanent nickname on the internet. -
Port Forwarding:
Telling your router, “Yo, when someone knocks here, send it to my phone.” -
SSH:
Remote control for nerds — manage your phone from your PC like a hacker. -
Termux:
Your phone pretending it’s a Linux computer. -
Termux Wake Lock:
Makes the phone stay awake like it just had three espressos. -
BusyBox:
The Linux survival kit Android forgot to include. -
Rooting:
Unlocks god mode. Also unlocks god mode levels of danger. -
ACC (Advanced Charging Controller):
The bouncer that tells your battery, “Stop charging at 80%, don’t die on me.” -
Web Server:
A thing that shares files/websites. Yes, your old phone can run one.
Stop Buying Raspberry Pis! Turn Your Old “Junk” Android into a $0 Home Lab With Built-In UPS
The Problem
Raspberry Pi kits are now priced like luxury handbags.
Meanwhile your old Android is sitting there with RAM, storage, Wi-Fi, and a battery like:
“Pick me, damn it.”
Why Android > Raspberry Pi?
| Feature | Raspberry Pi | Old Android Phone |
|---|---|---|
| Cost | ~$100+ | $0 |
| UPS | Buy separately | Battery included |
| Screen | Needs HDMI | Touchscreen built-in |
| Storage | Slow SD card | Fast UFS |
Initial Setup (The Foundation)
Install Termux
Get it from F-Droid, not Play Store.
Run:
pkg update && pkg upgrade
Enable Remote Access
Run these in Termux:
pkg install opensshpasswdsshd
Now you can SSH from your PC to your phone’s IP.
Ad Blocking (The Fastest W)
Private DNS Hack
Go to:
Settings → Network → Private DNS → Hostname
Enter:
dns.adguard.com
Boom — ads across apps, browsers, Smart TVs… gone.
For root users → AdAway (next-level blocking).
Hosting a Web Server (The Easy Way)
Local Web/File Server
Run:
python -m http.server 8080
Anyone on your Wi-Fi can open your phone’s files in a browser.
Access from the Internet (Optional)
- Create DDNS on DuckDNS or No-IP
- Forward port 8080 (or SSH port) on router
- Your phone is now globally accessible

(Also: protect it like your bank account.)
Keeping It Running 24/7 (The Hard Truth Section)
Prevent Android From Killing Your Server
Android LOVES killing background processes.
Fix it:
- Run:
termux-wake-lock - Disable battery optimization for Termux + Termux:Boot
- In Developer Options: enable Stay Awake
Real Battery Management
If plugged in 24/7:
- Rooted: use ACC → keep charge 40–80%
- Non-root: use a smart plug + Tasker / Home Assistant to cycle charging
Your battery will live longer than your motivation.
Advanced Options (Root Unlocks Beast Mode)
- Install BusyBox → real Linux toolset
- Remove bloatware → more RAM & battery
- Run more background services reliably
- Better storage access, better automation, better everything
Root transforms this from “hack” to “actual server.”
Bonus Project Ideas (For Overachievers)
DIY Surveillance Camera
Use built-in camera + Frigate.
Self-Hosted Cloud
Radicale / WebDAV for private sync.
Tiny Game Server
Host older/lightweight games for LAN parties.
DNS Analytics Hub
Spy on your own smart home
(you will regret seeing what your TV contacts at 3AM).
Real Downsides (Don’t Cry Later)
- Phones overheat under heavy load → throttling
- OTG hard drives disconnect randomly → corruption
- Exposing your server to the internet = use strong passwords or die
Server Mode Checklist (Print This)
- Stay Awake ON
- Battery optimization OFF
- Termux:Boot installed
- Wakelock enabled
- Dynamic DNS set
- Port forwarding configured
- Charge limiter active
Conclusion
Your “old useless phone” is actually a tiny Linux server screaming for a comeback.
Before you spend money you don’t have…
Check your damn drawer.
!