owenmelbz/laravel-robots-txt

Laravel 5.x helpers for a semi-automated robots.txt and meta tags
1,118 15
Install
composer require owenmelbz/laravel-robots-txt
Latest Version:0.0.4
License:MIT
Last Updated:Oct 2, 2019
Links: GitHub  ·  Packagist
Maintainer: OwenMelbz

Laravel 5 & 6 robots.txt helper with meta blade directive

An automatically generated robots.txt which automatically discourages indexing of folders, with additional meta tag blade directives for in page exclusions.

Usage

  1. Install via composer composer require owenmelbz/laravel-robots-txt

  2. Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\RobotsTxt\RobotsTxtServiceProvider::class

  3. Add BLOCK_ROBOTS=true to your application environment config e.g .env

  4. Within your <head> area you can include the blade directive @robotsMeta to pull through a noindex, nofollow meta tag.

Configuration

If you publish the package via php artisan vendor:publish --provider="OwenMelbz\RobotsTxt\RobotsTxtServiceProvider" you can use a custom robots.txt template file to include extra rules.

Related Packages

pixeo/laravel-robots

Set the robots.txt content dynamically based on the Laravel app environment.

3,429 0
awcodes/botly

Botly is a Filament plugin to manage your site's robots.txt file directly from a...

1,618 6
verschuur/laravel-robotstxt

Set the robots.txt content dynamically based on the Laravel app environment.

453,522 39
infusionweb/laravel-robots-route

A route for serving a basic robots.txt in Laravel 5.1+, based on configuration s...

2,229 1
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160