Hi , 

 * <[EMAIL PROTECTED]> wrote from a remote bunker :
> >* <[EMAIL PROTECTED]> wrote from a remote bunker :
> >>--- Ashok Kumar <[EMAIL PROTECTED]> wrote:
> >>>How to block some body using wget and download all
> >>>my
> >>>webserver files.
> >>>     
> >>>
> >>Crude way (in Apache):
> >>
> >>Order Deny,Allow
> >>BrowserMatch "wget" using_wget=1
> >>Deny from env=using_wget
> >>Allow all
> >>   
> >
> >What if someone uses --user-agent option to wget ?.
> > 
> This is exactly what I wanted to ask.
> I am not sure whether it is possible to set a different user agent in 
> the wget.

You can, see below..

(lines may wrap)
        
root@ghost> wget --user-agent=Mozilla localhost/index.html
root@ghost> tail -n 1 access_log 
127.0.0.1 - - [06/Jul/2002:17:06:14 +0530] "GET /index.html HTTP/1.0" 200 231 "-" 
"Mozilla"

root@ghost> wget localhost/index.html
root@ghost> tail -n 1 access_log 
127.0.0.1 - - [06/Jul/2002:17:08:36 +0530] "GET /index.html HTTP/1.0" 200 231 "-" 
"Wget/1.7"

cheers
dushyanth
-- 
If at first you don't succeed, call it version 1.0

http://symonds.net/~dushy


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Got root? We do.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to