Is it recommended to disable curl and wget to disallow anyone from accessing my websites using those commands?
Or is it needed for some search engines to access my websites?
What are your recommendations regarding curl and wget?
feedback
|
|
Depends what you want to do, and why - you could implement a ban based on user-agent, that's the easiest way, but it won't stop a determined "scraper", but then little will. It may be that enforcing referrer checks could achieve what you want as well. Google certainly doesn't scrape with a curl-ush or wget-ish useragent, so it shouldn't affect that. What web server are you using? Why are you trying to achieve this? These answers whill help us help you :) | |||||||||||||||||
feedback
|
|
As everybody has noted, doing this is nearly impossible and trying gains you nothing. Don't waste your time. You will only hurt yourself by trying to limit access methods. If your goal is to distribute content, welcome to the web. If it's not, fighting it is a losing battle. If you have subscription content, consider proper methods including user authentication. Edit: Since the questioner here has reiterated that this is about "security concerns", I thought it might be helpful to explain the pieces. The tools Think of yourself as an artist painting a picture. Your job is to get the picture right, not limit your viewers by saying anybody wearing glasses is not allowed to view your paintings. It just doesn't make sense. | ||||
|
feedback
|
|
There is no security concern associated with using curl or wget. Methinks you are misinformed. A web browser's (Be it IE, Firefox, Chrome, Safari, Webkit, etc.) entire purpose is to download and present the contents of web pages from a http server. curl's and wget's purpose is to download files from a http server. That's the major difference; the command-line tools just don't display your page graphically...) As others have said, you could block by userAgent, but it's a losing battle... It's not actually going to solve anything. | ||||
|
feedback
|
|
The only way to block a particular HTTP client is to identify it from the agent string it provides in the HTTP request headers, and as this can easily be faked there is little point - anyone wanting to use wget or curl to scrape data from your site will do so by providing a different agent string (perhaps telling it to imitate Internet Explorer). | |||
|
feedback
|
|
disable curl, I think it would cannot reading your website by search engines like google .. because the curl functions to read, view and retrieve content. correct this if wrong | |||
|
feedback
|