| | |
Receive an Email Every time the Googlebot comes to your site!
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
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/
Similar Threads
- Receive Email in vb.net 2005 (VB.NET)
- Re: It has been over 45 days since googlebot visited my site, what shoudl I do? (Search Engine Optimization)
- It has been over 45 days since googlebot visited my site, what shoudl I do? (Search Engine Optimization)
- Receive Email using Ms-Access and Outlook (MS Access and FileMaker Pro)
- How do i Send and Receive Email with Attachment (Visual Basic 4 / 5 / 6)
| Thread Tools | Search this Thread |



