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

Cancelled Posted 5 years ago Paid on delivery
Cancelled Paid on delivery

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 Software Architecture

Project ID: #18639597

About the project

3 proposals Remote project Active 5 years ago

3 freelancers are bidding on average €28 for this job

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 More

€30 EUR in 0 days
(100 Reviews)
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 More

€23 EUR in 1 day
(68 Reviews)
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 More

€30 EUR in 1 day
(2 Reviews)
2.0