hi
i'm getting plagued by spammers using spambots, including some cp spam that i just recieved, so i desperately need to prevent spambots. I'm no programmer but i've done a little script where i link to my script with for example:
http://mydomain.com/email.php?webmaster
i then have an email table in my database with email addresses corresponding to in this example webmaster. The script includes the following code:
Quote:
<?php
$result = mysql_query("select * from email WHERE emailcode LIKE '$QUERY_STRING'");
if ($result)
{
while ($row = mysql_fetch_array($result))
{
$contact = $row["emailadd"];
}
mysql_free_result($result);
header( "Location: mailto:$contact\n\n" );
}
?>
|
I know i'm probably using a sledgehammer to crack a nut but i need to do something.
my problem is that when you click that link above it opens an email ok, but also opens a blank white page. what i need to do is either get the blank white page to automatically click back to the page where the link was clicked, or alternatively if i use target="_blank" close the white webpage whilst leaving the origional page and email still open.
If anyone knows how to do that or an alternative method it would be appreciated

although my description probably isn't to clear. I'm aware this will probably only stop spambots that crawl my page btw (at least i hope it will )
thanks in advance
Roly