Skip to content

mikestecker/detect_spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Detect Spider EE2 Plugin

Lightweight PHP plugin for EE2 that detects a search engine crawlers using PHP.

This is my first time writing any any sort of plugin for EE. I'm not a very strong PHP guy so go easy on me :-) Please post any suggestions, changes, bugs, requests, etc to GitHub issues.


Installation

Download and unzip the archive. Create a folder called detect_spider, place the file pi.detect_spider.php inside the folder and upload the detect_spider folder to /system/expressionengine/third_party/.

Basic Usage

Check if any crawlers

{exp:detect_spider} - returns true or false

Conditional check for a crawler

{if '{exp:detect_spider}'}
  I am a search crawler
{if:else}
  I am a normal visitor
{/if}

About

Lightweight PHP plugin for EE2 that detects a search engine crawlers using PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages