کاملترین سیستم دسترسی آزاد به اینترنت با Cloudflare Pages Functions
- تشخیص خودکار نوع سایت (ایرانی، مسدود، gaming، بینالمللی)
- مسیریابی هوشمند بر اساس محتوا
- کش بهینه با TTL متغیر
- Fallback خودکار به DNS providers دیگر
- مسیریابی از طریق 10 edge location جهانی Cloudflare
- بهینهسازی ECS برای هر منطقه
- سایتهای ایرانی: مسیر مستقیم
- سایتهای مسدود: عبور از edge خارجی
- کاهش ping تا 50ms برای gaming
- انتخاب نزدیکترین game servers
- پشتیبانی از Steam، Riot Games، Epic Games
- بهینهسازی real-time برای کاربران ایرانی
- دسترسی مستقیم به سایتهای مسدود
- رابط مرورگر وب کامل
- اصلاح خودکار HTML/CSS/JS
- پشتیبانی از mobile و desktop
- DNS Wire Format کامل
- JSON API سازگار با RFC 8484
- Base64 encoded queries
- پشتیبانی از تمام DoH clients
doh-proxy-iran-pages/
├── functions/
│ └── _middleware.js # کد اصلی Pages Functions
├── index.html # صفحه اصلی
├── browse.html # Web Browser Interface
└── README.md # این فایل
# کلون repository
git clone https://github.com/feizezadeh/doh-proxy-iran-pages.git
cd doh-proxy-iran-pages- وارد Cloudflare Dashboard شوید
- Workers & Pages → Create Application → Pages
- Connect to Git → انتخاب repository
- تنظیمات Build:
- Build command: (خالی)
- Build output directory:
/ - Root directory:
/
- Save and Deploy
- Custom domains → Set up a custom domain
- DNS record اضافه کنید:
CNAME your-domain.com your-project.pages.dev
1. about:config
2. network.trr.mode = 2
3. network.trr.uri = https://your-domain.pages.dev/dns-query
4. Restart Firefox
1. Settings → Privacy and Security → Security
2. Use secure DNS → Custom
3. https://your-domain.pages.dev/dns-query
4. Restart Browser
1. نصب Intra از Google Play Store
2. Custom DNS over HTTPS
3. https://your-domain.pages.dev/dns-query
4. Turn On
1. نصب 1.1.1.1 از Google Play Store
2. Advanced → Connection options → DNS over HTTPS
3. Custom → https://your-domain.pages.dev/dns-query
1. نصب DNSCloak یا 1.1.1.1
2. DNS over HTTPS
3. https://your-domain.pages.dev/dns-query
https://your-domain.pages.dev
GET /dns-query?name=example.com&type=AGET /dns-query?name=steam.com&type=A&gaming=true
GET /dns-query?name=twitter.com&type=A&geo=abroad
GET /dns-query?name=site.com&format=simplePOST /dns-query
Content-Type: application/dns-message
Accept: application/dns-message
[DNS wire format data]GET /proxy?url=https://github.comGET /p/https://twitter.comGET /statusGET /geo-statusGET /speed-testGET /game-servers?game=steamGET /ping-test?target=google.comGET /config# تست basic
curl "https://your-domain.pages.dev/dns-query?name=google.com"
# gaming mode
curl "https://your-domain.pages.dev/dns-query?name=steampowered.com&gaming=true"
# forced geographic routing
curl "https://your-domain.pages.dev/dns-query?name=twitter.com&geo=abroad"# دسترسی به GitHub
curl "https://your-domain.pages.dev/proxy?url=https://github.com"
# دسترسی به Twitter
curl "https://your-domain.pages.dev/p/https://twitter.com"# وضعیت سیستم
curl "https://your-domain.pages.dev/status"
# اطلاعات جغرافیایی
curl "https://your-domain.pages.dev/geo-status"- DNS Latency: 2-50ms معمولی
- Proxy Overhead: 10-30ms اضافی
- Gaming Improvement: 15-50ms کاهش ping
- Cache Hit Ratio: 80-95% معمولی
- Uptime Target: 99.9%
- ECS-based geographic optimization
- Intelligent TTL بر اساس نوع محتوا
- Multi-provider DNS fallback
- Cloudflare edge caching
- Smart routing algorithms
- Cloudflare Pages: 100,000 requests/day (رایگان)
- Function execution: 10ms CPU time/request
- Memory: 128MB per function
- Response size: 25MB maximum
// در functions/_middleware.js
const BLOCKED_SITES = [
// ... سایتهای موجود
'new-blocked-site.com'
]const IRANIAN_SITES = [
// ... سایتهای موجود
'new-iranian-site.ir'
]const GAMING_DOMAINS = [
// ... دامنههای موجود
'new-game-platform.com'
]const GAMING_SERVERS = {
'new-platform': {
regions: [
{
name: 'Dubai',
ip: '1.2.3.4',
ping_estimate: 40,
best_for_iran: true
}
]
}
}const NON_IRAN_EDGES = [
'DXB', 'IST', 'FRA', // ... edge locations
'NEW' // اضافه کردن edge جدید
]# تست manual
curl "https://your-domain.pages.dev/dns-query?name=google.com"
# بررسی status
curl "https://your-domain.pages.dev/status"- بررسی کنید URL مجاز باشد
- فقط سایتهای HTTPS پشتیبانی میشوند
- برخی سایتها frame blocking دارند
- کش مرورگر را پاک کنید
- از mode خصوصی استفاده کنید
- تست کنید:
/speed-test
// در console مرورگر
console.log('Ultimate Proxy Debug Mode');
// تست DNS
fetch('/dns-query?name=google.com')
.then(r => r.json())
.then(console.log);
// تست Geo Status
fetch('/geo-status')
.then(r => r.json())
.then(console.log);- Workers & Pages → Analytics
- نمایش requests، errors، latency
- Usage patterns و geographic data
# Status check script
#!/bin/bash
response=$(curl -s "https://your-domain.pages.dev/status")
if [[ $response == *"operational"* ]]; then
echo "✅ System OK"
else
echo "❌ System Down"
fi- همیشه از HTTPS استفاده کنید
- Browser cache منظم پاک کنید
- از DNS leak test استفاده کنید
- ترافیک خود را monitor کنید
- No logging policy
- تمام traffic رمزگذاری شده
- Geographic routing برای privacy
- Open source و قابل بررسی
- Bug reports در GitHub Issues
- Feature requests خوشآمد
- Security issues: ایمیل مستقیم
- Fork repository
- ایجاد feature branch
- Commit با پیام واضح
- ایجاد Pull Request
# Clone
git clone https://github.com/feizezadeh/doh-proxy-iran-pages.git
# Local development
npx wrangler pages dev
# Testing
curl "http://localhost:8788/dns-query?name=google.com"MIT License - استفاده آزاد برای تمام اهداف
- GitHub Issues: برای bugs و feature requests
- Documentation: این README و comments در کد
- Community: GitHub Discussions
ساخته شده با ❤️ برای کاربران ایرانی
Ultimate Iran Proxy - دسترسی آزاد، امن و سریع به اینترنت جهانی