PluginProbe
Vimeography: Vimeo Video Gallery WordPress Plugin / 2.2
Vimeography: Vimeo Video Gallery WordPress Plugin v2.2
2.4.9 2.4.8 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.8.1 0.6.9 0.6.9.1 0.6.9.2 0.7 0.8 All 103 releases
vimeography / lib / robots.php

robots.php in Vimeography: Vimeo Video Gallery WordPress Plugin 2.2, at lib/robots.php

26 lines 624 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if ( ! defined( 'ABSPATH' ) ) exit;
5
6 class Vimeography_Robots {
7
8 public function __construct() {
9 add_action( 'do_robots', array($this, 'vimeography_block_robots') );
10 }
11
12 /**
13 * Adds the VIMEOGRAPHY_ASSETS_URL to the virtual robots.txt restricted list.
14 * Fired when the template loader determines a robots.txt request.
15 *
16 * @access public
17 * @static
18 * @return void
19 */
20 public static function vimeography_block_robots() {
21 $blocked_asset_path = str_ireplace(site_url(), '', VIMEOGRAPHY_ASSETS_URL);
22 echo 'Disallow: '.$blocked_asset_path."\n";
23 }
24
25 }
26