473,714 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

robotparser behavior on 403 (Forbidden) robot.txt files

I just discovered that the "robotparse r" module interprets
a 403 ("Forbidden" ) status on a "robots.txt " file as meaning
"all access disallowed". That's unexpected behavior.

A major site ("http://www.aplus.net/robot.txt") has their
"robots.txt " file set up that way.

There's no real "robots.txt " standard, unfortunately.
So it's not definitively a bug.

John Nagle
Jun 27 '08 #1
1 2095
I just discovered that the "robotparse r" module interprets
a 403 ("Forbidden" ) status on a "robots.txt " file as meaning
"all access disallowed". That's unexpected behavior.
That's specified in the "norobots RFC":


- On server response indicating access restrictions (HTTP Status
Code 401 or 403) a robot should regard access to the site
completely restricted.

So if a site returns 403, we should assume that it did so
deliberately, and doesn't want to be indexed.
A major site ("http://www.aplus.net/robot.txt") has their
"robots.txt " file set up that way.
You should try "http://www.aplus.net/robots.txt" instead,
which can be accessed just fine.

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Dave Opstad | last post by:
Take a look at this snippet: >>> class L(list): .... def __init__(self, v): .... super(L, self).__init__(v) .... def __setitem__(self, key, value): .... print key.indices(len(self)) .... >>> v = L(range(10)) >>> v
by: DaKoadMunky | last post by:
<CODE> #include <iostream> using namespace std; int Foo(int x,int y) { int result = x; result*=y; result+=y;
by: Layne L via DotNetMonster.com | last post by:
Trying to install a .NET application on a Windows 2003 Server ( .NET v1.1) and for any . aspx file get the following error: 403.1 Forbidden: Execute Access Forbidden The application has worked fine on XP systems and multiple Windows 2000 servers. This is what I have tried so far: -Verified Execute Permissions on both Default Web Site and the application's
by: Graham | last post by:
Hi, One of our clients sites has a files directory that stores different types of files: doc, pdf, xls. Every now and again we get an error email with the following info: PATH: /files/Timeline_of_Deception.doc PLATFORM: Unknown BROWSER: Unknown 0.0
by: Axel Dahmen | last post by:
Hi, in one of my pages I want to return "403 Forbidden" to the client depending on some logic in my .aspx code-behind. So I set "Response.Status = 403". But apparently IE seems to ignore the status and displays the page as usual. When I cancel the output using Response.End(), nothing is displayed on the browser, but actually what I'm expecting is this usual white page showing the "Forbidden ask your administrator..." text.
by: PK9 | last post by:
I am receiving the following error in Visual Studio 2003: "the web server reported the following error when attempting to create or open the web project HTTP/1.1 403 Access Forbidden" I am receiving this error when opening a web project that I created on another machine. I have a development machine on which I created an ASP.NET application. By default, it was created in inetpub/wwwroot. I copied this source code (including the...
by: Rajesh S R | last post by:
Can anyone tell me what is the difference between undefined behavior and unspecified behavior? Though I've read what is given about them, in ISO standards, I'm still not able to get the difference. For example: Consider the following code: a = i; We say that the above expression statement produces undefined
by: John Nagle | last post by:
Python's "robots.txt" file parser may be misinterpreting a special case. Given a robots.txt file like this: User-agent: * Disallow: // Disallow: /account/registration Disallow: /account/mypro Disallow: /account/myint ...
by: John Nagle | last post by:
For some reason, Python's parser for "robots.txt" files doesn't like Wikipedia's "robots.txt" file: False The Wikipedia robots.txt file passes robots.txt validation, and it doesn't disallow unknown browsers. But the Python parser doesn't see it that way. No matter what user agent or URL is specified; for that robots.txt file, the only answer is "False". It's failing in Python 2.4 on Windows and 2.5 on Fedora Core.
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.