Bursa Bilgisayar

Linux Wget Kullanımını Engelleyen Siteler İçin Çözüm

Bazı sitelerin koruma sistemleri User-Agent değeri boş olan ya da tanınmayan istekleri engellemektedir. Özellikle Linux komut satırından işlem yapan wget gibi programlar bu basit engellere takılabilir. Engelleme tarafından kullanılan özellik genelde User-Agent değerine göre yapıldığı için bu tip engellemeler için kullanılacak programa geçerli bir user-agent değeri atanarak engel aşılabilir.

Klasik Wget Kullanımını Engelleyen Yapılandırma

[root@seclabs tmp]# wget http://www.example.com/201112031813.cap
–2011-12-04 13:42:23– http://www.example.com/201112031813.cap
Resolving www.example.com… 1.2.3.4
Connecting to www.example.com|1.2.3.4|:80… connected.
HTTP request sent, awaiting response… 403 Forbidden
2011-12-04 13:42:24 ERROR 403: Forbidden.

Bu basit engeli aşmak için Wget’e geçerli bir user-agent parametresi verilmelidir.

Wget’e User-Agent Parametresi Vererek Engeli Aşma

[root@seclabs tmp]# wget http://www.example.com/201112031813.cap –user-agent=”Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6″
–2011-12-04 13:43:00– http://www.example.com/201112031813.cap
Resolving www.example.com… 1.2.3.4
Connecting to www.example.com|1.2.3.4|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 25595319 (24M) [text/plain]
Saving to: `201112031813.cap’

100%[=============================================================>] 25,595,319 990K/s in 26s

2011-12-04 13:43:26 (971 KB/s) – `201112031813.cap’ saved [25595319/25595319]

Related posts

18 thoughts on “Linux Wget Kullanımını Engelleyen Siteler İçin Çözüm

  1. It’s a pity you don’t have a donate button! I’d most certainly donate to this superb blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this website with my Facebook group. Chat soon!|

  2. I am really enjoying the theme/design of your site. Do you ever run into any web browser compatibility problems? A few of my blog audience have complained about my website not operating correctly in Explorer but looks great in Chrome. Do you have any recommendations to help fix this issue?|

  3. I’ll right away grab your rss feed as I can not in finding your email subscription link or e-newsletter service. Do you’ve any? Kindly let me realize so that I could subscribe. Thanks.|

  4. This site was… how do you say it? Relevant!! Finally I’ve found something that helped me. Kudos!|

  5. Oh my goodness! Awesome article dude! Thank you, However I am having difficulties with your RSS. I don’t know why I am unable to subscribe to it. Is there anybody having similar RSS problems? Anybody who knows the answer will you kindly respond? Thanx!!|

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

 Characters available