Gathering detailed insights and metrics for robots-txt-guard
Gathering detailed insights and metrics for robots-txt-guard
Gathering detailed insights and metrics for robots-txt-guard
Gathering detailed insights and metrics for robots-txt-guard
npm install robots-txt-guard
92.5
Supply Chain
77.6
Quality
80.5
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
44 Commits
2 Forks
7 Watching
4 Branches
5 Contributors
Updated on 02 Aug 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0.7%
2,104
Compared to previous day
Last week
23.2%
14,901
Compared to previous week
Last month
19.4%
58,295
Compared to previous month
Last year
9.3%
597,452
Compared to previous year
5
Validate urls against robots.txt rules. Configure with output from robots-txt-parse
1var guard = require('robots-txt-guard'); 2 3var robotsTxt = guard({ 4 groups: [{ 5 agents: [ '*' ], 6 rules: [ 7 { rule: 'allow', path: '/' } 8 ] 9 }, { 10 agents: [ 'googlebot', 'twitterbot' ], 11 rules: [ 12 { rule: 'disallow', path: '/tmp/*' }, 13 { rule: 'disallow', path: '/temporary/*' }, 14 { rule: 'noindex', path: '/temporary/*' } 15 ] 16 }] 17}); 18 19robotsTxt.isAllowed('Googlebot', '/tmp/abc'); // false 20robotsTxt.isAllowed('mozilla', '/tmp/abc'); // true 21robotsTxt.isAllowed('googlebot-news', '/home.html'); // true 22 23robotsTxt.isIndexable('googlebot', '/tmp/*'); // true 24robotsTxt.isIndexable('googlebot', '/temporary/*'); // false
The latest stable version of the package.
Stable Version
1
7.5/10
Summary
robots-txt-guard Inefficient Regular Expression Complexity vulnerability
Affected Versions
< 1.0.2
Patched Versions
1.0.2
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/11 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More