403 Forbidden connecting from Unity

Status
Not open for further replies.

ktdevelo

New Member
Messages
2
Reaction score
0
Points
1
Hi

I've been developing an app in Unity (I know, not the most optimal choice but it's what I have experience in) that connects to a server to retrieve information.
I was using a php api to connect the app to a SQL database, however, recently I've started to receive 403 errors when connecting. The error does not occur when loading the php files via a web browser.

Here's a link to reference:
http://ktbrownnose.x10host.com/PHP/login.php

The expected result is a blank page with the words "Login failed." when loading the php file this way.

After some research the most likely cause of the problem is that an admin has changed some settings to block Unity from connecting. All my php files have the permissions set to 0644.

Forum posts have told me I should contact customer support and customer support has told me to go to the forums.

Thanks for any help in advance.
 

lylex10h

Active Member
Messages
982
Reaction score
71
Points
28
The free shared MySQL servers do not accept outside connections.
 

ktdevelo

New Member
Messages
2
Reaction score
0
Points
1
I'm not connecting to the SQL server outside. Im using PHP files, hosted by x10Hosting, that retrieve required data and 'display' it on a web page. The Unity software then reads the text displayed. Simplified, the only connection to the SQL server is from the locally stored PHP. Also, this was working previously.
My suspicion is that the unity connection was flagged by the security.
The issue is not that the PHP cannot reach the server. Unity is failing to connect to the PHP files completely.
This being said I appreciate your input.

If it helps I can provide an example PHP script to show what I mean.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
I'd say it's to do with what's in the request, like the user agent.
 
Status
Not open for further replies.
Top