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]

18 Responses to “Linux Wget Kullanımını Engelleyen Siteler İçin Çözüm”

Sayfalar: « 7 6 5 4 3 2 [1] Show All

  1. 5
    filipino dating Says:

    I want to know where exactly to paste the code on my template in my blog so that the ‘Digg It’ Button shows up for each and every post of mine.. . Also If I want to show how many diggs I got on one of my blog post where do I show it? Where exactly do I put the code? And where do I get the code from? Thanks for helping me with this..

  2. 4
    UK payday loan Says:

    Right here is the perfect blog for everyone who really wants to understand this topic. You know so much its almost tough to argue with you (not that I personally will need to…HaHa). You certainly put a new spin on a subject which has been written about for years. Excellent stuff, just excellent!

  3. 3
    love Says:

    How can I import my blog to another gmail account?

  4. 2
    asian dating site Says:

    How do I start a blog and own the domain?

  5. 1
    Darwin Elkayam Says:

    I just want to tell you that I am new to weblog and really loved this web blog. Almost certainly I’m want to bookmark your blog post . You definitely come with perfect writings. Appreciate it for revealing your web-site.

Sayfalar: « 7 6 5 4 3 2 [1] Show All

Leave a Reply

 Characters available