View Single Post
  #5 (permalink)  
Old 04-01-2008, 10:54 AM
Bagi Zoltán's Avatar
Bagi Zoltán Bagi Zoltán is offline
Boss Cart consultant
1152 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 12
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,594
Thanks: 4
Thanked 26 Times in 13 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

Quote:
Originally Posted by TeamPlayer View Post
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.
__________________
Time may come when you will need a shopping cart
digitális mérleg keresőoptimalizálás
Reply With Quote