Jump to content
MakeWebGames

Recommended Posts

Posted

Hey there.

I have a question about the MySQL.php file,

Isn't it possible someone can include the file from your website (In this case the mysql.php) and then use it to connect to your database?

Is it possible to stop this?

I.e hotlink protection maybe?

Thanks.

Posted

From the top of my head,maybe you could have some-sort of identification- code which will need to be verified before the file is allowed to be executed?

Posted

Yeah, I was thinking of that, but I don't want to edit ALL of my files, I don't fancy that ATM,

Is it possible to check the URL that it's running at and die / continue from there,

i.e if the URL is my domain then it can run, else die.

Posted (edited)

Relocate it out of the public root then set and change the permission to the file. You will also need to change any page that includes that file, by adding the correct path to it.

Edited by lucky3809
  • 5 months later...

Join the conversation

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

Guest
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...