Prevent bots from using buy now buttons
This commit is contained in:
parent
b57deab66e
commit
4841ec38ce
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use Utils;
|
|||
use View;
|
||||
use Auth;
|
||||
use URL;
|
||||
use Crawler;
|
||||
use Exception;
|
||||
use Validator;
|
||||
use App\Models\Invitation;
|
||||
|
|
@ -229,6 +230,10 @@ class OnlinePaymentController extends BaseController
|
|||
|
||||
public function handleBuyNow(ClientRepository $clientRepo, InvoiceService $invoiceService, $gatewayType = false)
|
||||
{
|
||||
if (Crawler::isCrawler()) {
|
||||
return redirect()->to(NINJA_WEB_URL, 301);
|
||||
}
|
||||
|
||||
$account = Account::whereAccountKey(Input::get('account_key'))->first();
|
||||
$redirectUrl = Input::get('redirect_url', URL::previous());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue