Proxy là một máy chủ trung gian giữa thiết bị của bạn và Internet. Khi sử dụng Proxy, mọi kết nối của bạn sẽ đi qua máy chủ Proxy, giúp:
| Loại | Đặc điểm | Phù hợp với |
|---|---|---|
| IPv4 Tĩnh (Share) | IP dân cư Việt Nam (Viettel/FPT/VNPT), dùng chung 3 người, không giới hạn băng thông | MMO, Social Media, SEO, chơi game |
| IPv4 Tĩnh (Private) | IP dân cư dùng riêng 100%, ổn định cao | Game, tài khoản quan trọng, livestream |
| Datacenter VN | IP datacenter tốc độ cao, ổn định cực tốt | Chơi game, tool tốc độ cao |
| Proxy US (Mỹ) | IP datacenter Mỹ, phù hợp truy cập dịch vụ quốc tế | TikTok US, Facebook Ads, Google Ads |
| Proxy Xoay | IP thay đổi liên tục mỗi lần request, key API sử dụng đơn giản | Scraping, automation, kiểm tra SEO |
Cách 1: Dùng Extension (Khuyên dùng)
HTTP123.45.67.89)8080)Cách 2: Cài đặt hệ thống Windows
IP:Port:Username:PasswordIP:Port:User:Pass rồi paste trực tiếp!
Sử dụng proxy với cURL:
curl -x http://user:pass@IP:Port https://api.ipify.org
Hoặc với SOCKS5:
curl --socks5 user:pass@IP:Port https://api.ipify.org
import requests
proxies = {
"http": "http://user:pass@IP:Port",
"https": "http://user:pass@IP:Port"
}
r = requests.get("https://api.ipify.org",
proxies=proxies)
print(r.text) # IP proxy
const axios = require('axios');
const HttpsProxyAgent = require(
'https-proxy-agent'
);
const agent = new HttpsProxyAgent(
'http://user:pass@IP:Port'
);
axios.get('https://api.ipify.org', {
httpsAgent: agent
}).then(res => console.log(res.data));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"https://api.ipify.org");
curl_setopt($ch, CURLOPT_PROXY,
"http://IP:Port");
curl_setopt($ch, CURLOPT_PROXYUSERPWD,
"user:pass");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,
true);
echo curl_exec($ch);
curl_close($ch);
Bước 1: Mua gói Proxy Xoay (Ngày/Tuần/Tháng)
Bước 2: Vào trang "Proxy đã mua" để lấy Key
Bước 3: Sử dụng Key để lấy IP proxy mới:
GET https://tainguyenfb.com/api/rotating-proxy.php?key=KEY_CUA_BAN
Bước 4: Mỗi lần gọi API trên, bạn sẽ nhận được một IP proxy mới.
| Tham số | Giá trị | Mô tả |
|---|---|---|
nhamang | Viettel, FPT, VNPT, Random | Chọn nhà mạng (mặc định: Random) |
tinhthanh | ID tỉnh/thành | Lọc theo khu vực (0 = tất cả) |
# Python - Lấy proxy xoay mới
import requests
key = "KEY_CUA_BAN"
url = f"https://tainguyenfb.com/api/rotating-proxy.php?key={key}&nhamang=Random"
res = requests.get(url).json()
proxy_ip = res.get("proxyhttp", "")
print(f"Proxy mới: {proxy_ip}")
# Sử dụng proxy
proxies = {"http": f"http://{proxy_ip}", "https": f"http://{proxy_ip}"}
r = requests.get("https://api.ipify.org", proxies=proxies)
print(f"IP hiện tại: {r.text}")
curl -x http://user:pass@IP:Port https://api.ipify.org
IP:Port:Username:Password123.45.67.89:8080:user123:pass456