Jump to content

Receiving russian emails from contact us

Recommended Posts

There some of the IP addresses I have captured.

They get past the recommended capture code on this page:  https://www.harrisorganicwine.com.au/shop/contact-us.html  They are all have russian script in them and are arriving after changing the code in ini-custom.inc.php as above.

 Put them in your Banned IP Addresses list if you like.

Meanwhile I have just added Russia as a country (in settings; countries and zones) with the status disabled. Will that make any difference?


Country Name ISO Alpha-2 ISO Alpha-3 ISO Numeric EU Status  
Russia RU RUS 643 Enable

 kindest regards

Duncan Harris

Link to post
Share on other sites

You may have had your list of countries truncated to only a few, or maybe none at all, but a stock install of Cubecart will have "Russian Federation" in the database with those details.

The purpose of having this database table is for purposes other than banning/blocking visitors.

The recent edit to ini-custom.inc.php scans for Cyrillic characters in the UTF-8 scheme.

If possible, reply with a sample of the "russian" characters that are getting through. Specifically, try to post the hex value equivalents of those characters. They may be "russian" but not in the UTF-8 scheme.

Link to post
Share on other sites

This one arrived this morning.

Александр <[email protected]> wrote to Organic Wine Online Shop:---------------Получить AnyDesk для Windows https://anydesk.com/ru/downloads/windows---------------This email is sent from the store's master email address but it is possible to reply directly to the sender using the reply button on your email software. ip address:

Link to post
Share on other sites

Just checking the last of the code.

I have 

if (preg_match('/.*[\x{0400}-\x{04ff}\x{0500}-\x{052f}\x{2de0}-\x{2dff}\x{a640}-\x{a69f}\x{1d2b}-\x{1d78}].*/u', $_POST['contact']['enquiry'])) exit;

instead of 
if (preg_match('#.*[\x{0400}-\x{04ff}\x{0500}-\x{052f}\x{2de0}-\x{2dff}\x{a640}-\x{a69f}\x{1d2b}-\x{1d78}].*#', $_POST['contact']['enquiry'])) exit;

will change and see what happens.

Link to post
Share on other sites

OK, this is what I have.

# Custom initialization commands
# Filename: ini-custom.inc.php
# File location: main CubeCart folder

#  ini_set('memory_limit', '256M');
#  ini_set('max_execution_time', '60');
#  ini_set('error_log', 'error_log');
#  ini_set('log_errors', 'on');



    (isset($_GET['seo_path']) && $_GET['seo_path'] == "register")


    (isset($_GET['_a']) && $_GET['_a'] == "register")








    (!empty($_POST['phone']) && $_POST['phone']=="123456")


   # //preg_match('/[A-Z]\z/',trim($_POST['first_name']))===preg_match('/[A-Z]\z/',trim($_POST['last_name']))

    (ctype_upper(substr(trim($_POST['first_name']),-2)) && ctype_upper(substr(trim($_POST['last_name']),-2)))




) exit; // Kills PHP leaving browser with white screen
if (preg_match('/.*[\x{0400}-\x{04ff}\x{0500}-\x{052f}\x{2de0}-\x{2dff}\x{a640}-\x{a69f}\x{1d2b}-\x{1d78}].*/u', $_POST['contact']['enquiry'])) exit;


Link to post
Share on other sites
  • 2 weeks later...

I have received a few in the last 10 days using the latest code. Here is the latest message.

Subject: Прикладной подход к управлению деловой репутацией компании в интернет. SERM / ORM / HM / PR


Tiffanisog <[email protected]> wrote to Organic Wine Online Shop:--------------- serm репутация rebooster

 удаление отзывов москва serm на яндекс

 серм агентства компании по работе с репутацией serm цена

Репутационный маркетинг от reBooster – это не исключительно зачистка или вброс отзывов для нужных сайтах. В первую очередь – это белые способы работы с репутацией компании и бренда.

Всякий маркетинговый бюджет, вложенный около негативной репутации в узы - это сожженные средства компании!

Link to post
Share on other sites

Please try this one:

if (preg_match('/.*[\u0400-\u04ff\u0500-\u052f\u2de0-\u2dff\ua640-\ua69f\u1d2b-\u1d78].*/', $_POST['contact']['enquiry'])) exit;

But I am not sure if this is PHP's version of the Perl Regex.

Please remind me of the exact version of PHP your site is using.

Edited by bsmither
Link to post
Share on other sites

According to this, it may have actually been not possible to test for unicode codepoints prior to PHP7:


Here is another test to try:

if (preg_match('/.*\p{Cyrillic}.*/u', $_POST['contact']['enquiry'])) exit;

But I think that was already tried.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...