spawning-wp
is a WordPress plugin which allows users to decide which types of content on their site is permitted for use with AI training. The plugin provides users with simple toggle switches to opt-out specific content types which may be used to train AI, and also generates a file at the appropriate location which follows the selected rules. Information on ai.txt can be found here. The plugin also allows for users to modify their robot.txt files to exclude the most common ML dataset crawlers.
To build a ZIP file from source, run the following commands:
cd spawning-wp
npm install
npm run build
The output will be a ZIP file named spawning_ai.zip
, and located in the current working directory.
Take the generated ZIP file from the build process, and follow the below steps:
- Log into your WordPress site.
- Navigate to the tab. If you don't see this, please verify your user permissions.
- Click the Add New button.
- Click the Upload Plugin button.
- Select the Choose File prompt. Find the
spawning_ai.zip
file and select it. - Click the Install Now button.
- Once the installation completes, you will see a buttin Activate Plugin.
- You should now have a new tab in your WordPress installation labeled Spawning AI.
- Click this tab to see the ai.txt generation options. The
ai.txt
file will automatically be built and saved to your root path (e.g.https://www.example.com/ai.txt
).
The steps are also available in this video: https://streamable.com/ac00xc
It's easiest to test with a temporary WordPress installation. You could use something like Docker, though this makes it simple to have a temporary testing environment.