cdeese8 Posted March 1, 2019 Share Posted March 1, 2019 Might you know of any sneaky ways, or creative things I can do to stop this? Can you please tell me how to prevent, block and disable any non-English letters? Specifically, I think it would be great to prevent letters from the Cyrillic script (Russian Alphabet). Literally, every spam ticket I get is from Mother Russia. I know there is form captcha, but I don't want to use any services related to google or even the baked in WHMCS. The less steps a visitor has to do to get support the better. Thanks for your time, https://en.wikipedia.org/wiki/Russian_alphabet https://docs.whmcs.com/Spam_Control don't see anything here don't see anything for search query: site:whmcs.community block russian letters still doing R&D for search operator: bootstrap 3 input field validation block russian letters 0 Quote Link to comment Share on other sites More sharing options...
bear Posted March 1, 2019 Share Posted March 1, 2019 Perhaps make support tickets for logged in users only (since visitors need only pre-sales "support" I'd guess), and presales tickets use at least CAPTCHA (easily defeated, though). -1 Quote Link to comment Share on other sites More sharing options...
cdeese8 Posted March 1, 2019 Author Share Posted March 1, 2019 20 minutes ago, bear said: Perhaps make support tickets for logged in users only (since visitors need only pre-sales "support" I'd guess), and presales tickets use at least CAPTCHA (easily defeated, though). Anything else come to mind? How do you block non-English letters from the pre-sales contact form that is shown to logged out users? Yea I agree, CAPTCHA isn't very good and often worthless. The CloudFlare protected websites that display captcha for example are a pain in the butt and i almost always just close the website. Also, I've noticed if you are not using a Chrome browser, you will get SOOOO many more "captcha requests" just b/c you are not using the actual google browser. A joke ehh? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 1, 2019 Share Posted March 1, 2019 48 minutes ago, cdeese8 said: Anything else come to mind? How do you block non-English letters from the pre-sales contact form that is shown to logged out users? i'd agree with @bear about making them login first - but if you're not going to do that, then you could edit the contact.tpl template and use a HTML5 pattern... <input type="subject" name="subject" value="{$subject}" !class="form-control" id="inputSubject" pattern="[^аоуиеёэюяыбвгджзйклмнпрстфхцчшщ]+" oninvalid="this.setCustomValidity('Do not enter Russian characters')" oninput="setCustomValidity('')" /> although in order to make the pattern work, you need to disable the form-control class on the element... that disrupts the styling a bit, but you would just need to recreate the form-control class in a custom.css, call it something else and use that class in this element... the above is tested as working on v7.4.2 (which if you're still using v7.4.1 is the closest dev i've got to it)... JS/jQuery validation hooks could be an alternative too. 1 Quote Link to comment Share on other sites More sharing options...
cdeese8 Posted March 5, 2019 Author Share Posted March 5, 2019 Friggin brilliant. I remember reading about the pattern just before I went to bed. Thanks for giving that extra oomph of effort and providing a rich response. VERY HELPFUL!! TYSIR. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.