Quote:
Originally Posted by TeamPlayer
Great information on helping to avoid spam, though sadly nothing is foolproof. Thanks for posting.
|
I found out a way that is absolutly safe. The html code of the mailto link need to get
converted to javascript, which must be placed into external file.
I use this php code to disable the direct access to the js files
PHP Code:
<?php
$accept =$_SERVER['HTTP_ACCEPT'] ;
$file =$_SERVER['REQUEST_URI'];
if(stristr($accept, 'text') && stristr($file,'.js')){
header("HTTP/1.0 403 Forbidden");
exit;
}
?>
which is executed with the php_value auto_prepend_file .htaccess command. The solution has only one weakpoint, but it is very weak and spambots don't have possibility to have the remedy.
