Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_allowsWithAllowOverridingDisallow (0.26 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java

            assertFalse(robotsTxt.allows("/admin/secret.html", "MyBot"));
            assertTrue(robotsTxt.allows("/public/", "MyBot")); // Not disallowed
        }
    
        public void test_allowsWithAllowOverridingDisallow() {
            // Test that allow takes precedence over disallow
            RobotsTxt robotsTxt = new RobotsTxt();
    
            Directive directive = new Directive("MyBot");
            directive.addDisallow("/admin/");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top