Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Created January 4, 2016 17:02
Show Gist options
  • Save JamoCA/3f5757c0a5dc52089b1e to your computer and use it in GitHub Desktop.
Save JamoCA/3f5757c0a5dc52089b1e to your computer and use it in GitHub Desktop.
Identify WebCEO Bot Request - Block unwanted page requests from automated Competitor Metrics & Backlink Spy (They don't provide a way for sites to opt-out or use WebCEO-specific robots.txt rules.)
<cfscript>
/* 1/4/2016 Identify WebCEO Bot Request (https://www.webceo.com/webceo-bots.htm)
Block unwanted page requests from automated Competitor Metrics & Backlink Spy (They don't provide
a way for sites to opt-out or use WebCEO-specific robots.txt rules.)
*/
function isWebCEO(){
return YesNoFormat(ListFind("97.107.131.214,69.164.220.17,69.164.220.10,69.164.208.136,69.164.208.68,97.107.135.120,97.107.135.14,69.164.212.131,97.107.133.236,97.107.131.160", CGI.Remote_Addr) OR Findnocase("seo-audit-check-bot", CGI.http_User_Agent) OR Findnocase("online-webceo-bot", CGI.http_User_Agent));
}
</cfscript>
<cfif isWebCEO()>
<!--- sorry, no content for you --->
<cfcontent type="text/html; charset=UTF-8">
<cfheader statuscode="403" statustext="Forbidden">
<cfabort>
</cfif>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment