Skip to content

Commit 87ab54e

Browse files
author
LaAlice
committed
add robots.txt
1 parent 9b10220 commit 87ab54e

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ COPY wait-for-it.sh /wait-for-it.sh
7676
RUN chmod +x /wait-for-it.sh
7777
COPY entrypoint.sh /entrypoint.sh
7878
COPY LocalSettings.php.template /LocalSettings.php.template
79+
COPY robots.txt /var/www/html/w/robots.txt
7980
COPY images /var/www/html/w/images_repo/
8081
ENV MW_SITE_NAME=wikibase-docker\
8182
MW_SITE_LANG=en
@@ -110,4 +111,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
110111
RUN printf '[PHP]\ndate.timezone = "Europe/Berlin"\n' > /usr/local/etc/php/conf.d/tzone.ini
111112

112113
ENTRYPOINT ["/bin/bash"]
113-
CMD ["/entrypoint.sh"]
114+
CMD ["/entrypoint.sh"]

robots.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
User-agent: *
2+
Disallow: /w/index.php?title=Special:
3+
Disallow: /wiki/Special:
4+
Disallow: /w/api.php
5+
Disallow: /w/rest.php
6+
Disallow: /w/load.php
7+
8+
Disallow: /*?action=edit
9+
Disallow: /*?action=history
10+
Disallow: /*?diff=
11+
Disallow: /*?oldid=
12+
Disallow: /*?printable=
13+
Disallow: /*&action=edit
14+
Disallow: /*&action=history
15+
Disallow: /*&diff=
16+
Disallow: /*&oldid=
17+
18+
Disallow: /wiki/Special:EntityData/
19+
Disallow: /w/index.php?title=Special:EntityData

0 commit comments

Comments
 (0)