Booking Form POST Requests Blocked by Security Verification – carpdiexpert.in

Website URL

https://carpdiexpert.in/

Error Message

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

Other Information

Subject: Booking Form POST Requests Blocked by Security Verification – carpdiexpert.in

Hello InfinityFree Support Team,

I am facing a persistent issue with my website https://carpdiexpert.in/ hosted on InfinityFree.

My booking form submits data to https://carpdiexpert.in/save-booking.php using a JavaScript fetch() POST request. Instead of receiving the JSON response from my PHP script, the server returns an HTML security verification page containing /aes.js, slowAES.decrypt(), and a redirect to save-booking.php?i=1.

As a result, my booking form cannot process the server response correctly, and customers may be unable to submit bookings.

Details of the issue:

  • Website: https://carpdiexpert.in/
  • Affected endpoint: /save-booking.php
  • Request method: POST
  • Expected response: JSON from my PHP script
  • Actual response: HTML security verification page with an AES JavaScript challenge
  • Additional testing: A simple URL-encoded POST to /test-post.php works, but the booking submission is still affected.
  • Website platform: PHP on InfinityFree free hosting

I understand that InfinityFree recently addressed security issues involving PHP POST requests. However, the problem persists on my website.

Could you please investigate whether the hosting security layer, request verification, or server configuration is intercepting these POST requests before they reach my PHP script?

Please let me know if any specific configuration changes or troubleshooting steps are required.

Thank you for your assistance.

Regards,
CARPDI EXPERT

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

That HTML is the browser security check, and the request was stopped before it reached save-booking.php. This article describes what that page looks like, and why a fetch() expecting JSON gets it instead:

The check needs a browser that can run JavaScript and keep the __test cookie. The same article says AJAX calls within your own domain work fine. Cross-domain requests, tools like cURL, and anything else that isn’t a real browser session on your site can’t pass it.

So the question is where you got that response. Did it show up in your browser’s developer tools, in the Network tab for a real visitor’s booking submission? Or did it come from something outside a normal browser session, like cURL, Postman, a test script or another site calling your endpoint?

If it’s from a real browser, please also tell me the exact address of the page the form is on and the URL your fetch() calls. For example, the page might be on www.carpdiexpert.in while the fetch goes to carpdiexpert.in, or the other way round. Those count as different origins, so the cookie wouldn’t carry over.

Website URL

https://carpdiexpert.in/

Error Message

Request URL
https://carpdiexpert.in/save-booking.php
Request method
POST
Status code
200 OK
Remote address
[64:ff9b::b91b:8664]:443
Referrer policy
strict-origin-when-cross-origin
cache-control
no-cache
connection
keep-alive
content-encoding
br
content-type
text/html
date
Fri, 23 Oct 2026 03:36:01 GMT
expires
Thu, 01 Jan 1970 00:00:01 GMT
server
openresty
transfer-encoding
chunked
vary
Accept-Encoding
accept
/
accept-encoding
gzip, deflate, br, zstd
accept-language
en-GB,en-US;q=0.9,en;q=0.8,mr;q=0.7
connection
keep-alive
content-length
301
content-type
application/x-www-form-urlencoded; charset=UTF-8
cookie
_ga=GA1.1.499998076.1791727866; sc_is_visitor_unique=rx9692532.1792434770.E2CCEDA7E640437B895B0941C2D4DED1.2.2.2.2.2.2.2.2.2; _clck=pfyxb8%5E2%5Egaj%5E0%5E2483; _clsk=pp7n9a%5E1792725658878%5E1%5E1%5El.clarity.ms%2Fcollect; _ga_WTW0PDSMVQ=GS2.1.s1792725657$o8$g0$t1792725661$j56$l0$h0; __test=8f53a05b605537f17c8f4509cc215b76
host
carpdiexpert.in
origin
https://carpdiexpert.in
referer
https://carpdiexpert.in/booking.html
sec-ch-ua
“Google Chrome”;v=“155”, “Chromium”;v=“155”, “Not(A:Brand”;v=“24”
sec-ch-ua-mobile
?1
sec-ch-ua-platform
“Android”
sec-fetch-dest
empty
sec-fetch-mode
cors
sec-fetch-site
same-origin
user-agent
Mozilla/5.0 (Linux; Android 16; Pixel 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36

Other Information

Subject: Repeated AES verification challenge on PHP POST requests — carpdiexpert.in

Hello InfinityFree Support,

My website https://carpdiexpert.in is experiencing a repeated JavaScript/AES verification challenge when submitting POST requests to save-booking.php.

The booking form uses JavaScript fetch() to send a same-origin POST request to:

https://carpdiexpert.in/save-booking.php

The browser has successfully created the __test cookie, and the cookie is included in the POST request. However, the server continues returning the AES verification HTML instead of executing the PHP endpoint and returning JSON.

Observed request details:

  • Request method: POST
  • HTTP status: 200 OK
  • Server: openresty
  • Response Content-Type: text/html
  • Expected response: application/json
  • The response contains /aes.js, sets __test, and redirects to save-booking.php?i=1.
  • The issue occurs in Chrome during a real browser session.

This prevents my CARPDI EXPERT booking system from processing submissions correctly. The browser reports an invalid JSON response because it receives the verification HTML.

Could you please investigate why the verification challenge keeps recurring despite the __test cookie being present? Please check whether the hosting security layer or POST-request protection is interfering with PHP execution on my account.

I have not modified the database code to work around this issue.

Thank you.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

The security check on your site isn’t meant to block this request. The article below says same-domain JavaScript requests, like your fetch() from booking.html to save-booking.php, work normally. It also says that when the response contains aes.js, the request was stopped by the security system and never reached your PHP code.

Here is the article on the browser security system:

Your report has the __test cookie being sent and the challenge still coming back. I couldn’t find anything that explains that, so I need to know whether it happens every time or only sometimes.

Can you open the site in a private browser window, load booking.html fresh, and submit the form once? Then tell me whether that first submit returns JSON or the challenge HTML, and whether a second submit does the same.

If a fresh window works and your normal browser doesn’t, the problem is probably in the cookies that browser has stored for your domain, not in your code.

I also found a topic from earlier this month with the same symptom, a fetch() POST returning the aes.js page:

It has no answer I can point to, so it doesn’t tell us the cause here.

Please don’t make multiple topics for the same problem. It won’t help you get a quicker answer.

also please remember that everyone here (excluding admin) is a volunteer, so we don’t promise to reply in any specific timeframe.

Are you raising the request from within the site? or from an external site\app?

The security system is designed to block external (non-browser) requests. So that could be the problem

Also the security system is a little more clever than just looking for the test__ cookie.

Website URL

https://carpdiexpert.in/

Error Message

When the JavaScript booking form sends a request to “/save-booking.php”, the server returns an HTML security challenge containing “/aes.js” and a “__test” cookie instead of the expected JSON response

Other Information

Hello InfinityFree Support,

My website https://carpdiexpert.in is experiencing a persistent problem with its booking system.

When the JavaScript booking form sends a request to “/save-booking.php”, the server returns an HTML security challenge containing “/aes.js” and a “__test” cookie instead of the expected JSON response.

The problem occurs on both the first and second submissions in Chrome Incognito.

Opening “save-booking.php” directly confirms that PHP executes and returns a JSON response for an invalid request method.

Could you please investigate whether your security protection is intercepting requests to this endpoint and advise how to resolve the issue while keeping the appropriate security protections enabled?

Thank you.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Which exact address is the page with the booking form loaded from, and which URL does the fetch() call use? For example, is it https://carpdiexpert.in/... or a www. version, and is the fetch() URL relative or absolute?

The security check only passes a request if the browser already has the __test cookie for that same address. The knowledge base article says same-domain JavaScript requests work normally, so the form page and the endpoint should share one hostname. If your incognito window shows the challenge even on the second submission, the cookie may not be reaching that request.

Here’s the article on how the check works:

It also says the check can’t be turned off for a single file, so it can’t be excluded for save-booking.php.

This looks like the request to save-booking.php is being intercepted by a Cloudflare security challenge rather than reaching the PHP endpoint normally.

The fact that the response contains /aes.js and sets a __test cookie instead of returning the expected JSON is a strong indication that some security layer is challenging the request.

Since the PHP file works when accessed directly and returns the expected JSON response for an invalid request method, the PHP code itself doesn’t seem to be the main issue.

I’d check the Cloudflare dashboard for the domain, particularly:

  • Security Events / Security Analytics to see whether the POST request is being challenged or blocked

  • WAF / custom rules

  • Bot Fight Mode or other bot protection

  • Any rules applying specifically to /save-booking.php

  • Whether the request is being challenged because of the POST method, AJAX/fetch request, or request headers

I wouldn’t recommend disabling all security protections just to make it work. Ideally, identify the specific rule triggering the challenge and create a narrowly scoped exception for the legitimate booking endpoint if necessary.

The browser Network tab should also make this easier to confirm: inspect the POST request to /save-booking.php and check the response headers/body and status code. If the response is Cloudflare’s challenge rather than your application’s JSON, then the request is definitely being intercepted before your PHP script handles it.

Please do not mislead people. OP does not use Cloudflare at all, and /aes.js is our own security system and there’s nothing to configure.

Now same-site requests should be allowed so it is probably a code issue which has something to do with how the request is sent.

Just linking your previous post on the exact same topic, incase it contains any information you’ve not included here:

Just general guidance for the future. Creating multiple posts wont help you get a better or quicker answer.

I merged your topics.

The issue is strange and I haven’t gotten around to diving into it yet. But next time, if your question isn’t resolved and it’s been a while since you got a reply, please just respond to the original topic instead of asking the same question again in a fresh topic.

I finally dug into this, and I found some behavior that I wasn’t even aware of. Your website itself worked fine for me when using a normal browser (I had to create few bookings to test, you’ll want to delete those), but I found something interesting while prodding it.

I just learned that the __test cookie is not a static value that’s the same for everyone. It seems to vary based on request data, at least including the User Agent.

And that matters, because the request data you shared before includes the user agent Mozilla/5.0 (Linux; Android 16; Pixel 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36. However, that’s NOT a real phone, it’s a Chrome browser with the Developer Tools open and emulation mode enabled with the Google Pixel 10 device preset.

So if you open the booking.html page first, then open the Developer Tools with emulation mode enabled, the POST request will fail because your User Agent has changed and the __test cookie is no longer valid.

Does this match what you’re doing? If so, please try and see if you can reproduce this issue when:

  • You enable Developer Tools first, then refresh and then try to submit the form?
  • You try to submit the form with Developer Tools disabled (or at least emulation mode disabled)?
  • You are testing the website from an real phone?