code_junkie

PHP “Wrong referrer” error when submitting a mail form

Nov 12th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. Wrong referrer (referring site). For security reasons the form can only be used, if the referring page is part of this website.
  2.  
  3. Note for the Admin: Please add the name of your server to the referrer variable in the index.php configuration file: mywebsite.com
  4.  
  5. $referring_server = 'http://www.mywebsite.com, scripts';
  6.  
  7. $referring_server = 'yourdomain.com';
  8.  
  9. $script_root = './';
  10.  
  11. $referring_server = 'http://www.mywebsite.com, scripts';
  12. $allow_empty_referer = 'yes'; // (yes, no)
  13.  
  14. $language = 'en'; // (see folder 'languages')
  15.  
  16. $ip_banlist = '';
  17.  
  18. $ip_address_count = '0';
  19. $ip_address_duration = '48';
  20.  
  21. $show_limit_errors = 'yes'; // (yes, no)
  22.  
  23. $log_messages = 'no'; // (yes, no)
  24.  
  25. $text_wrap = '65';
  26.  
  27. $show_error_messages = 'yes';
  28.  
  29. $attachment = 'no'; // (yes, no)
  30. $attachment_files = 'jpg, gif,png, zip, txt, pdf, doc, ppt, tif, bmp, mdb, xls, txt';
  31. $attachment_size = 100000;
  32.  
  33. $path['logfile'] = $script_root . 'logfile/logfile.txt';
  34. $path['upload'] = $script_root . 'upload/'; // chmod 777 upload
  35. $path['templates'] = $script_root . 'templates/';
  36.  
  37. $file['default_html'] = 'form.tpl.html';
  38. $file['default_mail'] = 'mail.tpl.txt';
  39.  
  40. 'txt_additional' => 'Additional', // {txt_additional}
  41. 'txt_more' => 'More' // {txt_more}
  42.  
  43. );
Add Comment
Please, Sign In to add comment