recaptcha dont work

#1
Hello

I have problem with recaptcha
I use openlitespeed 1.5.2 with directadmin control panel

Code:
LiteSpeed/1.5.2 Open
    module versions:
    modpagespeed 2.2-1.11.33.4
    cache 1.61
    modinspector 1.1
    uploadprogress LSIAPI_VERSION_STRING
    mod_security 1.1
 (built: Fri Jun 21 20:33:31 UTC 2019)
    module versions:
    modpagespeed 2.2-1.11.33.4
    cache 1.61
    modinspector 1.1
    uploadprogress LSIAPI_VERSION_STRING
    mod_security 1.1
I change in file httpd-lsrecaptcha.conf

Code:
lsrecaptcha  {
  enabled                 1
  siteKey                 thisourkey
  secretKey               thisoursecret
  type                    2
  maxTries                3
  allowedRobotHits        3

  botWhiteList  {
# google.com
  }
  regConnLimit            15000
  sslConnLimit            10000
}
Put in .htaccess file

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
RewriteRule .* - [E=verifycaptcha]
and restart litespeed server
but captcha dont work
Also tried to make these settings in the user's personal virtualhost, also does not work.
 
#7
When i change
regConnLimit to 1
and
sslConnLimit to 1
Then Captcha work fine, but work for all sites.
Rewrite rule with [E=verifycaptcha] don't work when change regConnLimit and sslConnLimit to 1000
 
#8
Apologies for the late reply.

To clarify, these are two ways to toggle reCAPTCHA.

The regConnLimit and sslConnLimit check the number of concurrent visitors to each VHost on a single worker process. Upon crossing the threshold, new visitors should redirect to reCAPTCHA.

The rewrite rule is a second toggle. When OLS sees the rewrite rule, it checks if the visitor has already completed the reCAPTCHA. If not, it should redirect.

Given that reCAPTCHA worked fine with the conn limit, it sounds like it is specifically an issue with the rewrite rule toggle.

Can you confirm that the rewrite rule properly matches the page you are visiting? If so, I'd like to see the debug log for a request that should have redirected to reCAPTCHA. You can use the conn limit 1000 + rewrite rule combination.
 
#9
Last openlitespeed 1.5.3

.htaccess file contain

<IfModule LiteSpeed>
RewriteEngine On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(UA)$
RewriteRule .* - [E=verifycaptcha]
</IfModule>

Debug log

Code:
2019-07-22 11:23:12.001416 [DEBUG] [GEO] LookUp of 91.216.106.24
2019-07-22 11:23:12.001493 [DEBUG] [GEO] defaultEnv 1 DBs, default DBs: 3
2019-07-22 11:23:12.001520 [DEBUG] [GEO] defaultEnv - logical DB: COUNTRY_DB
2019-07-22 11:23:12.001542 [DEBUG] [GEO]    Try to add GEOIP_COUNTRY_CODE COUNTRY_DB/country/iso_code
2019-07-22 11:23:12.001584 [DEBUG] [GEO] parseEnvLine: GEOIP_COUNTRY_CODE COUNTRY_DB/country/iso_code
2019-07-22 11:23:12.001621 [DEBUG] [GEO] FIRST env! GEOIP_COUNTRY_CODE=COUNTRY_DB/country/iso_code DB #0
2019-07-22 11:23:12.001652 [DEBUG] [GEO] addEnv db #0 (of 1) n_env: 0, add GEOIP_COUNTRY_CODE=/country/iso_code
2019-07-22 11:23:12.001667 [DEBUG] [GEO]    Try to add GEOIP_COUNTRY_NAME COUNTRY_DB/country/names/en
2019-07-22 11:23:12.001676 [DEBUG] [GEO] parseEnvLine: GEOIP_COUNTRY_NAME COUNTRY_DB/country/names/en
2019-07-22 11:23:12.001688 [DEBUG] [GEO] Env FOUND! GEOIP_COUNTRY_NAME=COUNTRY_DB/country/names/en DB #0
2019-07-22 11:23:12.001698 [DEBUG] [GEO] addEnv db #0 (of 1) n_env: 1, add GEOIP_COUNTRY_NAME=/country/names/en
2019-07-22 11:23:12.001711 [DEBUG] [GEO]    Try to add GEOIP_CONTINENT_CODE COUNTRY_DB/continent/code
2019-07-22 11:23:12.001720 [DEBUG] [GEO] parseEnvLine: GEOIP_CONTINENT_CODE COUNTRY_DB/continent/code
2019-07-22 11:23:12.001764 [DEBUG] [GEO] Env FOUND! GEOIP_CONTINENT_CODE=COUNTRY_DB/continent/code DB #0
2019-07-22 11:23:12.001907 [DEBUG] [GEO] addEnv db #0 (of 1) n_env: 2, add GEOIP_CONTINENT_CODE=/continent/code
2019-07-22 11:23:12.001938 [DEBUG] [GEO]    Try to add GEOIP_COUNTRY_CONTINENT COUNTRY_DB/continent/code
2019-07-22 11:23:12.001970 [DEBUG] [GEO] parseEnvLine: GEOIP_COUNTRY_CONTINENT COUNTRY_DB/continent/code
2019-07-22 11:23:12.001983 [DEBUG] [GEO] Env FOUND! GEOIP_COUNTRY_CONTINENT=COUNTRY_DB/continent/code DB #0
2019-07-22 11:23:12.001994 [DEBUG] [GEO] addEnv db #0 (of 1) n_env: 3, add GEOIP_COUNTRY_CONTINENT=/continent/code
2019-07-22 11:23:12.002098 [DEBUG] [GEO] LookUp Worked!
2019-07-22 11:23:12.002124 [DEBUG] DNS reverse lookup: [91.216.106.24]: volly.oberhost.comio�
2019-07-22 11:23:12.002137 [DEBUG] New client info. Check if AC_CAPTCHA: 0, Check if CIF_PENDING_CAPTCHA: 0
2019-07-22 11:23:12.002196 [DEBUG] [*:80] New connection from 91.216.106.24:43608.
2019-07-22 11:23:12.002263 [DEBUG] NtwkIOLink::setLink called pInfo is m_pClientInfo 0x1dc4680,  m_pCrypto (nil), m_pServerAddrInfo 0x1ece470, m_remotePort 43608
2019-07-22 11:23:12.002345 [DEBUG] resetEvtcb calling resetEvtcbTail on this 0x1ece530
2019-07-22 11:23:12.002370 [DEBUG] [T0 void EvtcbQue::resetEvtcbTail(evtcbtail_t*)] session 0x1ece538 tail (nil) sn 1 set Tail to NULL
2019-07-22 11:23:12.002382 [DEBUG] [T0 HttpSession::HttpSession()] sess seq now 21
2019-07-22 11:23:12.002409 [DEBUG] [91.216.106.24:43608] onInitConnected(): HSPS_START -> HSPS_READ_REQ_HEADER
2019-07-22 11:23:12.002421 [DEBUG] [T0 virtual int HttpSession::onInitConnected()] sess seq now 21
2019-07-22 11:23:12.002432 [DEBUG] resetEvtcb calling resetEvtcbTail on this 0x1ece530
2019-07-22 11:23:12.002463 [DEBUG] [T0 void EvtcbQue::resetEvtcbTail(evtcbtail_t*)] session 0x1ece538 tail (nil) sn 2 set Tail to NULL
2019-07-22 11:23:12.002736 [DEBUG] [91.216.106.24:43608] concurrent conn: 1
2019-07-22 11:23:12.002801 [DEBUG] [91.216.106.24:43608] NtwkIOLink::handleEvents() events=1!
2019-07-22 11:23:12.002826 [DEBUG] [91.216.106.24:43608] HttpSession::onReadEx(), state: 1!
2019-07-22 11:23:12.002857 [DEBUG] [91.216.106.24:43608] Run State: HSPS_READ_REQ_HEADER
2019-07-22 11:23:12.002869 [DEBUG] [91.216.106.24:43608] readToHeaderBuf().
2019-07-22 11:23:12.002893 [DEBUG] [91.216.106.24:43608] Read from client: 578
2019-07-22 11:23:12.002905 [DEBUG] [91.216.106.24:43608] Read 578 bytes to header buffer.
2019-07-22 11:23:12.002976 [DEBUG] [91.216.106.24:43608] processHeader() returned 0, header state: 3.
2019-07-22 11:23:12.003006 [DEBUG] [91.216.106.24:43608] readToHeaderBuf(): HSPS_READ_REQ_HEADER -> HSPS_NEW_REQ
2019-07-22 11:23:12.003024 [DEBUG] [91.216.106.24:43608] processNewReq(), request header buffer size: 582, header used: 582, processed: 582.
2019-07-22 11:23:12.003038 [DEBUG] [91.216.106.24:43608] Headers: GET / HTTP/1.1
Host: cyber.oberhost.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:67.0) Gecko/20100101 Firefox/67.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Cookie: csrftoken=LsVZ8ppyRNmGA7i74fN1L4Be1lg8OGID65QYF9lTOp2v3vSSR3q2qmMO2AV62hm0; sessionid=hk961hz797ah1c0pl4l47e3h73elyhtn
Upgrade-Insecure-Requests: 1
If-Modified-Since: Wed, 10 Jul 2019 09:35:08 GMT
If-None-Match: "2d5-5d25b14c-3208242;gz"
Cache-Control: max-age=0

2019-07-22 11:23:12.003073 [DEBUG] [91.216.106.24:43608] New request: Method=[GET], URI=[/], QueryString=[], Content Length=0
2019-07-22 11:23:12.003098 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] getVHostAccess, acl returned access 1
2019-07-22 11:23:12.003223 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [RECAPTCHA] Concurrent Stats reg: 1, ssl: 0
2019-07-22 11:23:12.003298 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [RECAPTCHA] VHost Refs 1(volatile)
2019-07-22 11:23:12.003370 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processNewReqInit(): HSPS_NEW_REQ -> HSPS_HKPT_HTTP_BEGIN
2019-07-22 11:23:12.003432 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [HTTP_BEGIN] run Hook function for [Module:cache] session=0x1ece538
2019-07-22 11:23:12.003502 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [HTTP_BEGIN] [Module:cache]  session=0x1ece538 ret 0
2019-07-22 11:23:12.003557 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] runEventHkpt(): HSPS_HKPT_HTTP_BEGIN -> HSPS_HKPT_RCVD_REQ_HEADER
2019-07-22 11:23:12.003594 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] runEventHkpt(): HSPS_HKPT_RCVD_REQ_HEADER -> HSPS_PROCESS_NEW_REQ_BODY
2019-07-22 11:23:12.003654 [DEBUG] [91.216.106.24:43608] NtwkIOLink::suspendRead()...
2019-07-22 11:23:12.003695 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] HttpSession::reqBodyDone().
2019-07-22 11:23:12.003747 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] reqBodyDone(): HSPS_PROCESS_NEW_REQ_BODY -> HSPS_HKPT_RCVD_REQ_BODY
2019-07-22 11:23:12.003788 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processNewUri(): HSPS_PROCESS_NEW_URI -> HSPS_VHOST_REWRITE
2019-07-22 11:23:12.003869 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processVHostRewrite(): HSPS_VHOST_REWRITE -> HSPS_CONTEXT_MAP
2019-07-22 11:23:12.003943 [DEBUG] [91.216.106.24:43608] Find context with URI: [/], location: [/home/cyber.oberhost.com/public_html/].
2019-07-22 11:23:12.004007 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processContextMap(): HSPS_CONTEXT_MAP -> HSPS_CONTEXT_REWRITE
2019-07-22 11:23:12.004168 [DEBUG] [GEO] getGeoEnv: GEOIP_COUNTRY_CODE
2019-07-22 11:23:12.004245 [DEBUG] [GEO] parseEnv
2019-07-22 11:23:12.004285 [DEBUG] [GEO] parseEnv, db: COUNTRY_DB
2019-07-22 11:23:12.004350 [DEBUG] [GEO] check_entry_data_list: key: (null)
2019-07-22 11:23:12.004387 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.004439 [DEBUG] [GEO] Map count: 3
2019-07-22 11:23:12.004492 [DEBUG] [GEO] Map[1 of 3] key_child: /continent
2019-07-22 11:23:12.004527 [DEBUG] [GEO] check_entry_data_list: key: /continent
2019-07-22 11:23:12.004579 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.004615 [DEBUG] [GEO] Map count: 3
2019-07-22 11:23:12.004667 [DEBUG] [GEO] Map[1 of 3] key_child: /continent/code
2019-07-22 11:23:12.004702 [DEBUG] [GEO] Found key /continent/code, env: GEOIP_CONTINENT_CODE
2019-07-22 11:23:12.004752 [DEBUG] [GEO] extractString
2019-07-22 11:23:12.004806 [DEBUG] [GEO]    -> new string: EU
2019-07-22 11:23:12.004842 [DEBUG] [GEO] Env found: db #0 /continent/code=GEOIP_CONTINENT_CODE=EU
2019-07-22 11:23:12.004893 [DEBUG] [GEO] check_entry_data_list: key: /continent/code
2019-07-22 11:23:12.004945 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.004985 [DEBUG] [GEO] Map[2 of 3] key_child: /continent/geoname_id
2019-07-22 11:23:12.005036 [DEBUG] [GEO] check_entry_data_list: key: /continent/geoname_id
2019-07-22 11:23:12.005073 [DEBUG] [GEO] initial type: 6
2019-07-22 11:23:12.005173 [DEBUG] [GEO] Map[3 of 3] key_child: /continent/names
2019-07-22 11:23:12.005246 [DEBUG] [GEO] check_entry_data_list: key: /continent/names
2019-07-22 11:23:12.005299 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.005344 [DEBUG] [GEO] Map count: 8
2019-07-22 11:23:12.005397 [DEBUG] [GEO] Map[1 of 8] key_child: /continent/names/de
2019-07-22 11:23:12.005449 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/de
2019-07-22 11:23:12.005486 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.005538 [DEBUG] [GEO] Map[2 of 8] key_child: /continent/names/en
2019-07-22 11:23:12.005573 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/en
2019-07-22 11:23:12.005624 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.005660 [DEBUG] [GEO] Map[3 of 8] key_child: /continent/names/es
2019-07-22 11:23:12.005711 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/es
2019-07-22 11:23:12.005765 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.005800 [DEBUG] [GEO] Map[4 of 8] key_child: /continent/names/fr
2019-07-22 11:23:12.005860 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/fr
2019-07-22 11:23:12.005913 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.005950 [DEBUG] [GEO] Map[5 of 8] key_child: /continent/names/ja
2019-07-22 11:23:12.006001 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/ja
2019-07-22 11:23:12.006053 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.006099 [DEBUG] [GEO] Map[6 of 8] key_child: /continent/names/pt-BR
2019-07-22 11:23:12.006204 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/pt-BR
2019-07-22 11:23:12.006274 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.006365 [DEBUG] [GEO] Map[7 of 8] key_child: /continent/names/ru
2019-07-22 11:23:12.006446 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/ru
2019-07-22 11:23:12.006524 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.006606 [DEBUG] [GEO] Map[8 of 8] key_child: /continent/names/zh-CN
2019-07-22 11:23:12.006687 [DEBUG] [GEO] check_entry_data_list: key: /continent/names/zh-CN
2019-07-22 11:23:12.006743 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.006796 [DEBUG] [GEO] Map[2 of 3] key_child: /country
2019-07-22 11:23:12.006833 [DEBUG] [GEO] check_entry_data_list: key: /country
2019-07-22 11:23:12.006884 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.006918 [DEBUG] [GEO] Map count: 3
2019-07-22 11:23:12.006969 [DEBUG] [GEO] Map[1 of 3] key_child: /country/geoname_id
2019-07-22 11:23:12.007011 [DEBUG] [GEO] check_entry_data_list: key: /country/geoname_id
2019-07-22 11:23:12.007076 [DEBUG] [GEO] initial type: 6
2019-07-22 11:23:12.007138 [DEBUG] [GEO] Map[2 of 3] key_child: /country/iso_code
2019-07-22 11:23:12.007220 [DEBUG] [GEO] Found key /country/iso_code, env: GEOIP_COUNTRY_CODE
2019-07-22 11:23:12.007273 [DEBUG] [GEO] extractString
2019-07-22 11:23:12.007311 [DEBUG] [GEO]    -> new string: UA
2019-07-22 11:23:12.007373 [DEBUG] [GEO] Env found: db #0 /country/iso_code=GEOIP_COUNTRY_CODE=UA
2019-07-22 11:23:12.007411 [DEBUG] [GEO] check_entry_data_list: key: /country/iso_code
2019-07-22 11:23:12.007462 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.007514 [DEBUG] [GEO] Map[3 of 3] key_child: /country/names
2019-07-22 11:23:12.007551 [DEBUG] [GEO] check_entry_data_list: key: /country/names
2019-07-22 11:23:12.007602 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.007637 [DEBUG] [GEO] Map count: 8
2019-07-22 11:23:12.007688 [DEBUG] [GEO] Map[1 of 8] key_child: /country/names/de
2019-07-22 11:23:12.007724 [DEBUG] [GEO] check_entry_data_list: key: /country/names/de
2019-07-22 11:23:12.007775 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.007810 [DEBUG] [GEO] Map[2 of 8] key_child: /country/names/en
2019-07-22 11:23:12.007861 [DEBUG] [GEO] Found key /country/names/en, env: GEOIP_COUNTRY_NAME
2019-07-22 11:23:12.007914 [DEBUG] [GEO] extractString
2019-07-22 11:23:12.007950 [DEBUG] [GEO]    -> new string: Ukraine
2019-07-22 11:23:12.008034 [DEBUG] [GEO] Env found: db #0 /country/names/en=GEOIP_COUNTRY_NAME=Ukraine
2019-07-22 11:23:12.008079 [DEBUG] [GEO] check_entry_data_list: key: /country/names/en
2019-07-22 11:23:12.008178 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.008237 [DEBUG] [GEO] Map[3 of 8] key_child: /country/names/es
2019-07-22 11:23:12.008289 [DEBUG] [GEO] check_entry_data_list: key: /country/names/es
2019-07-22 11:23:12.008334 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.008388 [DEBUG] [GEO] Map[4 of 8] key_child: /country/names/fr
2019-07-22 11:23:12.008425 [DEBUG] [GEO] check_entry_data_list: key: /country/names/fr
2019-07-22 11:23:12.008517 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.008598 [DEBUG] [GEO] Map[5 of 8] key_child: /country/names/ja
2019-07-22 11:23:12.008651 [DEBUG] [GEO] check_entry_data_list: key: /country/names/ja
2019-07-22 11:23:12.008751 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.008788 [DEBUG] [GEO] Map[6 of 8] key_child: /country/names/pt-BR
2019-07-22 11:23:12.008839 [DEBUG] [GEO] check_entry_data_list: key: /country/names/pt-BR
2019-07-22 11:23:12.008876 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.008927 [DEBUG] [GEO] Map[7 of 8] key_child: /country/names/ru
2019-07-22 11:23:12.008962 [DEBUG] [GEO] check_entry_data_list: key: /country/names/ru
2019-07-22 11:23:12.009055 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.009126 [DEBUG] [GEO] Map[8 of 8] key_child: /country/names/zh-CN
2019-07-22 11:23:12.009200 [DEBUG] [GEO] check_entry_data_list: key: /country/names/zh-CN
2019-07-22 11:23:12.009256 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.009293 [DEBUG] [GEO] Map[3 of 3] key_child: /registered_country
2019-07-22 11:23:12.009350 [DEBUG] [GEO] check_entry_data_list: key: /registered_country
2019-07-22 11:23:12.009387 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.009465 [DEBUG] [GEO] Map count: 3
2019-07-22 11:23:12.009562 [DEBUG] [GEO] Map[1 of 3] key_child: /registered_country/geoname_id
2019-07-22 11:23:12.009617 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/geoname_id
2019-07-22 11:23:12.009653 [DEBUG] [GEO] initial type: 6
2019-07-22 11:23:12.009688 [DEBUG] [GEO] Map[2 of 3] key_child: /registered_country/iso_code
2019-07-22 11:23:12.009739 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/iso_code
2019-07-22 11:23:12.009776 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.009828 [DEBUG] [GEO] Map[3 of 3] key_child: /registered_country/names
2019-07-22 11:23:12.009862 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names
2019-07-22 11:23:12.009913 [DEBUG] [GEO] initial type: 7
2019-07-22 11:23:12.009956 [DEBUG] [GEO] Map count: 8
2019-07-22 11:23:12.010009 [DEBUG] [GEO] Map[1 of 8] key_child: /registered_country/names/de
2019-07-22 11:23:12.010061 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/de
2019-07-22 11:23:12.010135 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010218 [DEBUG] [GEO] Map[2 of 8] key_child: /registered_country/names/en
2019-07-22 11:23:12.010271 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/en
2019-07-22 11:23:12.010331 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010369 [DEBUG] [GEO] Map[3 of 8] key_child: /registered_country/names/es
2019-07-22 11:23:12.010421 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/es
2019-07-22 11:23:12.010457 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010492 [DEBUG] [GEO] Map[4 of 8] key_child: /registered_country/names/fr
2019-07-22 11:23:12.010542 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/fr
2019-07-22 11:23:12.010578 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010629 [DEBUG] [GEO] Map[5 of 8] key_child: /registered_country/names/ja
2019-07-22 11:23:12.010665 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/ja
2019-07-22 11:23:12.010716 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010752 [DEBUG] [GEO] Map[6 of 8] key_child: /registered_country/names/pt-BR
2019-07-22 11:23:12.010803 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/pt-BR
2019-07-22 11:23:12.010841 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.010893 [DEBUG] [GEO] Map[7 of 8] key_child: /registered_country/names/ru
2019-07-22 11:23:12.010946 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/ru
2019-07-22 11:23:12.010994 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.011060 [DEBUG] [GEO] Map[8 of 8] key_child: /registered_country/names/zh-CN
2019-07-22 11:23:12.011113 [DEBUG] [GEO] check_entry_data_list: key: /registered_country/names/zh-CN
2019-07-22 11:23:12.011203 [DEBUG] [GEO] initial type: 2
2019-07-22 11:23:12.011262 [DEBUG] [GEO]     -> UA
2019-07-22 11:23:12.011333 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processContextRewrite(): HSPS_CONTEXT_REWRITE -> HSPS_HKPT_URI_MAP
2019-07-22 11:23:12.011400 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] preUriMap check serving by static url file cache: 0
2019-07-22 11:23:12.011440 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [URI_MAP] run Hook function for [Module:cache] session=0x1ece538
2019-07-22 11:23:12.011692 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [CACHE] CacheKey data: URI [cyber.oberhost.com:80/], QS [], Vary Cookie [_lscache_vary;], Private Cookie [csrftoken=LsVZ8ppyRNmGA7i74fN1L4Be1lg8OGID65QYF9lTOp2v3vSSR3q2qmMO2AV62hm0;sessionid=hk961hz797ah1c0pl4l47e3h73elyhtn;], IP [91.216.106.24]
2019-07-22 11:23:12.011809 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [CACHE] Public hash, hash: [a8eda1355adf7f06]
2019-07-22 11:23:12.011854 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [CACHE] Private hash, hash: [c965a0e85b89148f]
2019-07-22 11:23:12.011978 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [Module:Cache]checkAssignHandler lookUpCache, myData 0x1ecb1b0 entry (nil) state 0.
2019-07-22 11:23:12.012046 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [Module:Cache]checkAssignHandler Add Hooks.
2019-07-22 11:23:12.012084 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [URI_MAP] [Module:cache]  session=0x1ece538 ret 0
2019-07-22 11:23:12.012188 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] runEventHkpt(): HSPS_HKPT_URI_MAP -> HSPS_FILE_MAP
2019-07-22 11:23:12.012252 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] runEventHkpt(): HSPS_FILE_MAP -> HSPS_FILE_MAP
2019-07-22 11:23:12.012348 [DEBUG] [91.216.106.24:43608] Check Symbolic link for [/home/cyber.oberhost.com/public_html/index.html] is successful, access to target [/home/cyber.oberhost.com/public_html/index.html] is granted
2019-07-22 11:23:12.012432 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processContextPath() returned 0.
2019-07-22 11:23:12.012495 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processFileMap(): HSPS_FILE_MAP -> HSPS_CHECK_AUTH_ACCESS
2019-07-22 11:23:12.012551 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] processContextAuth(): HSPS_CHECK_AUTH_ACCESS -> HSPS_HKPT_HTTP_AUTH
2019-07-22 11:23:12.012588 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] runEventHkpt(): HSPS_HKPT_HTTP_AUTH -> HSPS_AUTH_DONE
2019-07-22 11:23:12.012641 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] smProcessReq(): HSPS_AUTH_DONE -> HSPS_BEGIN_HANDLER_PROCESS
2019-07-22 11:23:12.012700 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] handlerProcess(): HSPS_BEGIN_HANDLER_PROCESS -> HSPS_WEBSOCKET
2019-07-22 11:23:12.012738 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] getVHostAccess, acl returned access 1
2019-07-22 11:23:12.012800 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] HttpSession::CGroup don't activate, type: NOT CGI vHost: 0x1e85680, vHost->enableCGroup: NO, config.getCGroupAllow: YES
2019-07-22 11:23:12.012891 [DEBUG] readyCompressed() compressMode 1
2019-07-22 11:23:12.012998 [DEBUG] readyCompressed() path /tmp/lshttpd/swap/f/3/9b38bb1d8c7e67f54668acfca58177.lsz statGz 0 retGz 0
2019-07-22 11:23:12.013065 [DEBUG] [91.216.106.24:43608] readyCacheData(1, 1) return 0
2019-07-22 11:23:12.013159 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] endResponse( 1 )
2019-07-22 11:23:12.013227 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] endResponseInternal()
2019-07-22 11:23:12.013281 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] Response header finished!
2019-07-22 11:23:12.013328 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [RECV_RESP_HEADER] run Hook function for [Module:cache] session=0x1ece538
2019-07-22 11:23:12.013393 [DEBUG] [cache] enable_hook, enable 0, num indices 1, return 0
2019-07-22 11:23:12.013467 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [Module:Cache]createEntry abort, code 1.
2019-07-22 11:23:12.013505 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [RECV_RESP_HEADER] [Module:cache]  session=0x1ece538 ret 0
2019-07-22 11:23:12.013541 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] HttpSession::flush()!
2019-07-22 11:23:12.013599 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] sendRespHeaders()
2019-07-22 11:23:12.013663 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] Resp headers, status: 17, total: 3, removed: 0, unique:3, has hole: 0, buffer size: 89
2019-07-22 11:23:12.013718 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     ETag: "2d5-5d25b14c-3208242;gz"
2019-07-22 11:23:12.013754 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     Date: Mon, 22 Jul 2019 08:23:11 GMT
2019-07-22 11:23:12.013806 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     Server: LiteSpeed
2019-07-22 11:23:12.013844 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] Resp headers, status: 17, total: 3, removed: 0, unique:3, has hole: 0, buffer size: 89
2019-07-22 11:23:12.013899 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     ETag: "2d5-5d25b14c-3208242;gz"
2019-07-22 11:23:12.013989 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     Date: Mon, 22 Jul 2019 08:23:11 GMT
2019-07-22 11:23:12.014073 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com]     Server: LiteSpeed
2019-07-22 11:23:12.014223 [DEBUG] [91.216.106.24:43608] NtwkIOLink::flush...
2019-07-22 11:23:12.014288 [DEBUG] [91.216.106.24:43608] NtwkIOLink::flush buffered data ...
2019-07-22 11:23:12.014401 [DEBUG] [91.216.106.24:43608] Written to client: 142
2019-07-22 11:23:12.014458 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] Set the HSS_COMPLETE flag.
2019-07-22 11:23:12.014517 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] mark HSS_COMPLETE.
2019-07-22 11:23:12.014600 [DEBUG] [T0 evtcbnode_s* EvtcbQue::getNodeObj(evtcb_pf, const evtcbtail_t*, long int, void*)] returning pObj 0x1e9fb90 session 0x1ece538 tailnode (nil)
2019-07-22 11:23:12.014655 [DEBUG] [T0 evtcbnode_s* EvtcbQue::schedule(evtcb_pf, const evtcbtail_t*, long int, void*, bool)] sched evtq cb for session 0x1ece538 sn 2
2019-07-22 11:23:12.014708 [DEBUG] [T0 void EvtcbQue::schedule(evtcbnode_s*, bool)(null)] Obj=0x1e9fb90 Session=0x1ece538 lParam=2 pParam=(nil) cb=0x553762 seq=21 slot=21 sn=2
2019-07-22 11:23:12.014751 [DEBUG] [T0 void EvtcbQue::schedule(evtcbnode_s*, bool)] locking event slot 21
2019-07-22 11:23:12.014787 [DEBUG] [T0 void EvtcbQue::schedule(evtcbnode_s*, bool)] schedule cb for session 0x1ece538 tail (nil) seq 21 slot 21 sn 2
2019-07-22 11:23:12.014838 [DEBUG] [T0 void EvtcbQue::schedule(evtcbnode_s*, bool)] 0x1e9fb90 appended
2019-07-22 11:23:12.014874 [DEBUG] [T0 void EvtcbQue::schedule(evtcbnode_s*, bool)] Tail for session 0x1ece538 slot 21 was (nil) set to 0x1e9fb90
2019-07-22 11:23:12.014930 [DEBUG] [T0 void EvtcbQue::run(evtcbtail_t*)] slot 21 run session 0x1ece538
2019-07-22 11:23:12.014969 [DEBUG] [T0 void EvtcbQue::run(evtcbtail_t*)] pushed pObj 0x1e9fb90 onto m_curRunQ, new size 0, pObj->m_pSession 0x1ece538, tailnode 0x1e9fb90 tailnode session 0x1ece538 slot 21
2019-07-22 11:23:12.015048 [DEBUG] [T0 void EvtcbQue::run(evtcbtail_t*)] appending 1 evtq cbs for session 0x1ece538 tail 0x1e9fb90 sn 2, setting tail to NULL
2019-07-22 11:23:12.015101 [DEBUG] [T0 void EvtcbQue::appendCur(TDLinkQueue<evtcbnode_s>*)] append 1 evtq to m_curRunQ
2019-07-22 11:23:12.015138 [DEBUG] [T0 void EvtcbQue::runCur()] locking runQ
2019-07-22 11:23:12.015219 [DEBUG] [T0 void EvtcbQue::runCur()] locked runQ
2019-07-22 11:23:12.015254 [DEBUG] [T0 void EvtcbQue::runCur()] calling pop_front on m_curRunQ, pre pop size 1
2019-07-22 11:23:12.015416 [DEBUG] [T0 void EvtcbQue::runCur()] popped pObj 0x1e9fb90 from m_curRunQ, new size 0, pObj->m_pSession 0x1ece538
2019-07-22 11:23:12.015469 [DEBUG] [T0 void EvtcbQue::runCur()] unlocked runQ
2019-07-22 11:23:12.015509 [DEBUG] [T0 void EvtcbQue::runOne(evtcbnode_s*)(null)] Obj=0x1e9fb90 Session=0x1ece538 lParam=2 pParam=(nil) cb=0x553762 seq=21 slot=21 sn=2
2019-07-22 11:23:12.015584 [DEBUG] [T0 int EvtcbQue::removeSessionCb(evtcbtail_t*)] session 0x1ece538 seq 21 slot 21 tailnode NULL!
2019-07-22 11:23:12.015659 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] HttpSession::nextRequest()!
2019-07-22 11:23:12.015715 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] calling removeSessionCb on this 0x1ece530
2019-07-22 11:23:12.015751 [DEBUG] [T0 int EvtcbQue::removeSessionCb(evtcbtail_t*)] session 0x1ece538 seq 21 slot 21 tailnode NULL!
2019-07-22 11:23:12.015784 [DEBUG] [91.216.106.24:43608] NtwkIOLink::flush...
2019-07-22 11:23:12.015871 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [HTTP_END] run Hook function for [Module:cache] session=0x1ece538
2019-07-22 11:23:12.015927 [DEBUG] [91.216.106.24:43608#cyber.oberhost.com] [HTTP_END] [Module:cache]  session=0x1ece538 ret 0
2019-07-22 11:23:12.015964 [DEBUG] [T0 void HttpSession::nextRequest()] sess seq now 21
2019-07-22 11:23:12.016014 [DEBUG] [T0 int EvtcbQue::removeSessionCb(evtcbtail_t*)] session 0x1ece538 seq 21 slot 21 tailnode NULL!
2019-07-22 11:23:12.016067 [DEBUG] [91.216.106.24:43608-1] nextRequest(): HSPS_WEBSOCKET -> HSPS_READ_REQ_HEADER
2019-07-22 11:23:12.016115 [DEBUG] [T0 void EvtcbQue::recycle(evtcbnode_s*)(null)] Obj=0x1e9fb90 Session=0x1ece538 lParam=2 pParam=(nil) cb=0x553762 seq=21 slot=21 sn=3
2019-07-22 11:23:12.016190 [DEBUG] [T0 void EvtcbQue::runCur()] locking runQ
2019-07-22 11:23:12.016245 [DEBUG] [T0 void EvtcbQue::runCur()] locked runQ
2019-07-22 11:23:12.016280 [DEBUG] [T0 void EvtcbQue::runCur()] calling pop_front on m_curRunQ, pre pop size 0
2019-07-22 11:23:12.016339 [DEBUG] [T0 void EvtcbQue::runCur()] NULL pop_front on m_curRunQ, size after pop 0
2019-07-22 11:23:12.016374 [DEBUG] [T0 void EvtcbQue::runCur()] unlocked runQ
2019-07-22 11:23:12.016426 [DEBUG] [*:80] 1 connections accepted!
 
#10
Thank you.

It looks like there may be something wrong with handling the RewriteCond result. If you remove the condition and just keep the RewriteRule, will it redirect to reCAPTCHA?
 
#11
My apologies, I think I see the problem - it looks like the code where reCAPTCHA rewrites are processed is missing. I will get this looked at, this is definitely a bug.

Apologies for the inconvenience - thank you for the report.
 

David

Active Member
#14
Sorry I missed this message. And I just released 1.5.4 without this bug fixed.
I am debug it now, will update you once I have it fixed.
Thanks for your report.
 
#15
Hello,

Sorry for posting in such an old topic, but I'm having the same problem. My .htaccess rule is not working properly with lsrecaptcha.

I did the same tests and got the same result. Captcha shows when I change the connection limit to "1", but when trying to use .htaccess to activate it, it never works.

Rule:
Code:
RewriteCond %{REQUEST_URI} /wp-login.php
RewriteRule .* - [E=verifycaptcha]
I tried commenting out the condition, same result
 
Top