Modify magento php script for redirect page only if visited from human and not from bot

Anulowany Opublikowano 5 lat temu Płatność przy odbiorze
Anulowany Płatność przy odbiorze

I have this code:

if(isset($_REQUEST['goto'])){

Mage::log($_SERVER['HTTP_X_REQUESTED_WITH'], null, "[login to view URL]", true);

if(!isset($_SERVER['HTTP_X_REQUESTED_WITH'])){

$product = Mage::getModel('catalog/product')->load($_product->getId());

$url = $product->getResource()->getAttribute('indirizzo_link')->getFrontend()->getValue($product);

Mage::app()->getResponse()->setRedirect($url) ->sendResponse();

return ;

exit;

}

I need that this will work only if page is visited from human and not from google, pinterest (rich pin and bot) and all bot

HTML JavaScript Magento PHP Architektura oprogramowania

Numer ID Projektu: #18639597

O projekcie

3 ofert Zdalny projekt Aktywny 5 lat temu

3 freelancerów złożyło ofertę za €28 w tym projekcie

psubramonian

My Skillsets: ======== > Frameworks: Laravel , Code-igniter, ionic > Web Applications using PHP + MySQLi + API+jQuery > Restful Web services: REST, SOAP > Payment Gateway : Ccavenue, EBS, Paypal, NetBanking > De Więcej

€30 EUR w ciągu 0 dni
(100 Oceny)
6.3
xinglong717

Hello Law, I am a professional NodeJS & ReactJS & Angular expert, having 7+ years’ experience in building medium and big web applications. My development area includes Social dating apps, e-commerce, Administrative Więcej

€23 EUR w ciągu 1 dnia
(68 Oceny)
5.8
parmarhemant

Hello there, I have a solution for you but before proceeding ahead I wanted to discuss some point for the same. I do have the right skills for your project, I'm ready for any demo test so that you can check my skil Więcej

€30 EUR w ciągu 1 dnia
(2 Oceny)
2.0