Support the ongoing development of Laravel.io →
Requests Forms Architecture
Last updated 2 years ago.
0

Hi dcolumbus,

Fore example put all your ajax request in a group prefixed by api. After that put on the robots.txt :

Disallow: /api/*

If you don't want change your route just put all your ajax request on your robots.txt:

Disallow: /ajax_process_register

If you want you can generate the robots.txt in php and dynamize the content like you want:

 Route::get('robots.txt', ['as' => 'robots', 'uses' => 'SitemapController@robot']);
0

Thanks for responding @mfrancois,

I was thinking of doing something similar, I was just curious what the communities take was on it.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

dcolumbus dcolumbus Joined 29 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.