-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TIKA-4153 -- revert changes to robots.txt detection and add unit test…
… for robots file starting with comments (cherry picked from commit 7825b59)
- Loading branch information
Showing
3 changed files
with
20 additions
and
10 deletions.
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
11 changes: 11 additions & 0 deletions
11
...-standard/tika-parsers-standard-package/src/test/resources/test-documents/testRobots2.txt
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,11 @@ | ||
# elevate robots begin | ||
# robots.txt, added by the Elevate plugin for WordPress | ||
# file version: 1 | ||
User-agent: * | ||
Disallow: /wp-admin/ | ||
Disallow: /readme.html | ||
Disallow: /trackback/ | ||
Allow: /wp-admin/admin-ajax.php | ||
Allow: /wp-content/uploads | ||
Sitemap: https://blahdeblah.com/sitemap.xml | ||
# elevate robots end |