php scripte proxy gömülebilir mi?
3
●406
- 04-08-2010, 17:06:13merhaba. get_content yaptığım bir site ip'mi yasakladı. scriptime proxy gömme imkanım var mı?
- 04-08-2010, 17:14:09php ile aram pek iyi değil. satın aldığım bir bot var ama hedef sitesi ip mi banlamış. bunu çözmek istiyorum. eklemem gereken kod nedir?
- 04-08-2010, 17:24:52örnek
<? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.ornek.com'); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY, 'proxyadresi:port'); curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'kullanici:sifre'); $data = curl_exec(); curl_close($ch); ?>