Skip to content

Commit e304d6f

Browse files
Add robots.txt and .acl to default account and server templates
1 parent 6fa0a89 commit e304d6f

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
# Allow all crawling (subject to ACLs as usual, of course)
3+
Disallow:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ACL for the default robots.txt resource
2+
# Individual users will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#owner>
9+
a acl:Authorization;
10+
11+
acl:agent
12+
<{{webId}}>;
13+
14+
acl:accessTo </robots.txt>;
15+
16+
acl:mode
17+
acl:Read, acl:Write, acl:Control.
18+
19+
<#public>
20+
a acl:Authorization;
21+
22+
acl:agentClass foaf:Agent; # everyone
23+
24+
acl:accessTo </robots.txt>;
25+
26+
acl:mode acl:Read.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
# Allow all crawling (subject to ACLs as usual, of course)
3+
Disallow:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACL for the default robots.txt resource
2+
# Server operators will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#public>
9+
a acl:Authorization;
10+
11+
acl:agentClass foaf:Agent; # everyone
12+
13+
acl:accessTo </robots.txt>;
14+
15+
acl:mode acl:Read.

0 commit comments

Comments
 (0)