Skip to content
Snippets Groups Projects
Commit d69a32d7 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Added custom robot.txt file

parent 6283a591
No related branches found
No related tags found
1 merge request!41Version 2.0.0
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Custom robots.txt file.
### Changed
- Migrated controllers to blueprints (Pylons to Flask).
- UI and webasset upgrades.
- Nosetests changed to pytests.
### Removed
- Support for Python2 removed.
## [1.4.3] - 2022-11-03
### Added
- Added "Musterdatenkatalog" references to RDF
## [1.4.2] - 2022-10-24
## [1.4.1] - 2022-08-17
## [1.4.0] - 2022-08-11
......@@ -53,6 +53,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
rules = [
('/info_page', 'info_page', default.info_page),
('/home', 'start', default.start),
('/robots.txt', 'robots_txt', default.robots_txt),
('/not_found', 'not_found', default.not_found), ]
for rule in rules:
bp_default.add_url_rule(*rule)
......
User-agent: SemrushBot
Disallow: /
User-agent: PetalBot
Disallow: /
User-agent: DataForSeoBot
Disallow: /
User-agent: SEOkicks
Disallow: /
User-agent: *
Disallow: /dataset/rate/
Disallow: /revision/
Disallow: /dataset/*/history
Disallow: /api/
Crawl-Delay: 10
\ No newline at end of file
......@@ -17,3 +17,7 @@ def start():
def not_found():
log.info("views.default::not_found")
toolkit.abort(404)
def robots_txt():
log.info("views.default::robots_txt")
return toolkit.render(u'robots.txt')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment