•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 331,470 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,031 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Would you like to know when the Google spider or any other spider comes by your site? Well now you can with this handy snippet. It will send you an email for everypage it visits.
<cfif CGI.Http_User_Agent CONTAINS "googlebot"> <cfmail from="info@yoursite.com" to="you@yoursite.com" subject="The Googlebot came to call" server="smtp.mailserver.com"> Google has visited #CGI.Script_Name# </cfmail> </cfif> Put this in your application.cfm file in the root of your site. Then every page it visits you get an email, be sure to change the following code to yours; info@yoursite.com = your email you@yoursite.com = your email smtp.mailserver.com = your mail server ex. mail.yourdomain.com You can even change the script to alert you to other visits by other spiders, all you need is a list of other bots! Try this list; http://www.robotstxt.org/wc/active/html/
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)