Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Parser? #3

Open
rb2k opened this issue Jul 12, 2010 · 2 comments
Open

Error in Parser? #3

rb2k opened this issue Jul 12, 2010 · 2 comments

Comments

@rb2k
Copy link
Contributor

rb2k commented Jul 12, 2010

This is what I do:
ruby-head > bla = Robots.new("test")
=> #<Robots:0x000001008743c0 @user_agent="test", @parsed={}>
ruby-head > bla.allowed?("http://lacostarecords.net/")
=> false

This is the robots.txt
# Block a bot that was causing issues by ignoring Disallow lines below
User-Agent: OmniExplorer_Bot
Disallow: /

# Block hotlinking of music files by projectplaylist.com due to perceived user bandwidth theft
User-agent: projectplaylist-directlink
Disallow: /

# Block all bots from the core Homestead site
User-agent: *
Disallow: /~site/Scripts_ElementMailer
Disallow: /~site/Scripts_ExternalRedirect
Disallow: /~site/Scripts_ForSale
Disallow: /~site/Scripts_HitCounter
Disallow: /~site/Scripts_NewGuest
Disallow: /~site/Scripts_RealTracker
Disallow: /~site/Scripts_Track
Disallow: /~site/Scripts_WebPoll

it should return true, shouldn't it?

@rb2k
Copy link
Contributor Author

rb2k commented Jul 13, 2010

same for http://pokerstarpro.net/robots.txt

User-agent: *
Disallow: /site/
Disallow: /common/forsale/
Disallow: /common/roar/redir
Disallow: /common/roar/results.htm
Disallow: /common/advertise/advertising.htm

User-Agent: MJ12bot
Disallow:   /

User-agent: ShopWiki
Disallow: /

@rb2k
Copy link
Contributor Author

rb2k commented Jul 21, 2010

ok, seems that the different capitalization in User-Agent (User-agent) might be killing the parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant