I'm looking for a script to parse (yahoo,bing,google) keywords from the
cgi.http_referer variable preferrably done using CF's or a Java RegEx.
Is there such a beast?
TIA, Che
This does (at least) Google. Shouldn't be too difficult to extrapolate the
others...
<cfloop index="thisarg" list="#cgi.HTTP_REFERER#" delimiters="?&">
<cfif ListFirst(thisarg, "=") is "q" and ListLen(thisarg, "=") is 2>
<!--- then user searched for URLDecode(ListLast(thisarg, '=')) --->
<cfbreak>
</cfif>
</cfloop>
----- Excess quoted text cut - see Original Post for more -----