Detecting generator’s access on it’s creating artifacts

Shifter Static will access your site with User-Agent of ShifterGenerator/{version} when it’s creating artifact.

You can detect WordPress is running, or Shifter is generating artifact with using this User-Agent.

For example, you can set function $_SERVER['HTTP_USER_AGENT'] which contains above User-Agent, on PHP scripts.

if ( isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'ShifterGenerator') !== false ) {

    // some processes
    // while Shifter is generating artifacts

} else {

    // some processes
    // while Shifter is not generating artifacts


Take the Next Step

Get started on your website today with Shifter. Try out our free plan and take the first step towards building the perfect website for you and your visitors.

Copyright © 2023 DigitalCube

A product by

Check out our other products