-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed query parameters not being considered for robots.txt evaluation
- Loading branch information
Showing
7 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Test robots.txt with query parameters are considered correctly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Terminal42\Escargot\Subscriber\RobotsSubscriber] [URI: https://www.terminal42.ch/foobar?with-a-query=true (Level: 1, Processed: yes, Found on: https://www.terminal42.ch/, Tags: disallowed-robots-txt)] Added the "disallowed-robots-txt" tag because of the robots.txt content. | ||
[class@anonymous:EscargotTest] [URI: https://www.terminal42.ch/foobar?with-a-query=true (Level: 1, Processed: yes, Found on: https://www.terminal42.ch/, Tags: disallowed-robots-txt)] Do not request because it was disallowed by the robots.txt. | ||
[Terminal42\Escargot\Escargot] Finished crawling! Sent 1 request(s). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Successful request! URI: https://www.terminal42.ch/ (Level: 0, Processed: yes, Found on: root, Tags: none). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
https://www.terminal42.ch/robots.txt | ||
|
||
HTTP/2.0 200 OK | ||
content-type: text/plain; charset=UTF-8 | ||
|
||
User-agent: * | ||
Disallow: /*?* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
https://www.terminal42.ch/ | ||
|
||
HTTP/2.0 200 OK | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<a href="https://www.terminal42.ch/foobar?with-a-query=true">Link</a> | ||
</body> | ||
</html> |