battlefleet updated

This commit is contained in:
Rory Hinnen
2026-05-11 07:25:44 -05:00
parent 0c918d6f9b
commit 4c47e691dd
32 changed files with 156 additions and 67 deletions
+27
View File
@@ -0,0 +1,27 @@
//
// Robots.swift
// IgniteSamples
// https://www.github.com/twostraws/Ignite
// See LICENSE for license information.
//
import Foundation
import Ignite
/// An example custom robots.txt configuration file, blocking certain paths
/// from Google and Bing, and everything from ChatGPT.
struct Robots: RobotsConfiguration {
var disallowRules: [DisallowRule]
init() {
let paths = [
"/wp-admin"
]
disallowRules = [
DisallowRule(robot: .google, paths: paths),
DisallowRule(robot: .bing, paths: paths),
DisallowRule(robot: .chatGPT)
]
}
}