So you've submitted your site and you are thinking "I wish I could know when the DMOZ editor visits my site." For those who submit to dmoz and your site is not already listed on dmoz, I wrote a little PHP code this morning so that if a DMOZ editor visits your site, you can receive an email notifying you. Some points: 1) It assumes the dmoz editor clicked your link from the dmoz editor's screen and thus checks the HTTP_REFERER variable for "dmoz" If they enter your site any other way, it probably won't work. 2) If your site is already listed in dmoz and you are trying to get an additional link, then users clicking on your original link will trigger the email. At best, it's good for sites that are not previously listed, though you could modify the code to exclude taking action if the referer matches the url you have a current listing. 3) Requires your page be PHP, or add the following line to your .htaccess file: AddType application/x-httpd-php .php .html .htm Code (markup): Most likely you would place this in your index page. Here is the code: <? $referer = strtolower($_SERVER['HTTP_REFERER']); if(strstr($referer, 'dmoz')) { $my_email = "email@yourdomain.com"; //set your email here $ip = GetEnv('REMOTE_ADDR'); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: " . $my_email . "\r\n"; $to = $my_email; $subject = "** A DMOZ EDITOR HAS VISITED YOUR SITE **"; $message = "<p>A dmoz editor has arrived at your site!</p>"; mail($to, $subject, $message, $headers); } ?> Code (markup): Feel free to suggest improvements. Hope you find it useful.
Sadly for you, it's common practice for editors to cut and paste URLs in the address bar when editing so that their IP address, and information about the city in which they live, does not show up in webmaster's logs.
LOL. I will be getting so many emails during the day. The sites in my sig. that are not listed in DMOZ, get quite a good traffic from DMOZ, for awhile in second place after Google but sites that are listed in DMOZ get none.
Umm... cutting and pasting URLs won't hide your IP address or the city you live it. It will cause the HTTP_REFERER variable to be blank though, and that's about it. A easier way than all the copying and pasting is to just get a decent web browser that allows you to turn off referers or to spoof them.
Of course, but they cannot know that you are the ODP's envoy. You can be anybody. My browser doesn't spoof, I'm not into these shenanigans. So I unfaillingly cut and pasted URLs, in that golden era when all my queues were religiously set back to ZERO, every single day. ;-)