Jump to content

secure php admin page


Reaper0167

Recommended Posts

I'm looking to create a secure page that will pretty much show what is in my databse. This page will also allow me to edit what is in the database(delete,modify,etc.) What would the be the best way to secure this from other members reaching this page? I was thinking

 

-check ip, if ip is mine let me in, if not, no entry

-check session member name, same as above

 

I really need to have this page secure so all the other members could not go in and delete anything.

 

Any ideas?

 

 

Link to comment
https://forums.phpfreaks.com/topic/194457-secure-php-admin-page/
Share on other sites

This is why they created phpmyadmin ;)

 

Creating that from within your app would be fairly pointless unless it could be super simple. Phpmyadmin does it all.

 

Saying that, to answer your question:

 

-) yep, checking ip is a good security measure which is basically fool proof if every single request must be accompanied by the correct ip or ip range.

 

You wouldn't even need to create a session with the above solution, and if you did, you would then be checking a session (which can be fooled) as oppose to an absolute ip which can't be fooled.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.