| | |
Protecting a PHP File
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hello Everyone,
I have a little problem with my PHP script. I have created a very detailed system using PHP and wish to upload it to a computer running XAMPP on my network. Because the file will be uploaded to a normal computer all of my PHP files will be accessible to anyone with the password to this computer. There are certain people that have access to this computer that would be nosy and want to look at/modify my code. Anyway, long story short, I would like a way to password protect the file when trying to acess it directly from the host computer, but still allow users on the network to use the file (ie. View the home page the PHP produces). I realize that this sounds really paranoid, but the server is not physically in my house so I have no way of knowing who accesses the computer (A few do on a regular basis). If you know of a way to do this, please post.
Thanks so much everyone!!!
I have a little problem with my PHP script. I have created a very detailed system using PHP and wish to upload it to a computer running XAMPP on my network. Because the file will be uploaded to a normal computer all of my PHP files will be accessible to anyone with the password to this computer. There are certain people that have access to this computer that would be nosy and want to look at/modify my code. Anyway, long story short, I would like a way to password protect the file when trying to acess it directly from the host computer, but still allow users on the network to use the file (ie. View the home page the PHP produces). I realize that this sounds really paranoid, but the server is not physically in my house so I have no way of knowing who accesses the computer (A few do on a regular basis). If you know of a way to do this, please post.
Thanks so much everyone!!!
Last edited by FlashCreations; Oct 4th, 2008 at 2:44 pm.
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 1
Remove all windows user priviledges for the file except for the web server user, in IIS this would be IUSR_MACHINENAME, you could also look at obfuscating the file, there are a few open source php obfuscation programs about like POBS http://pobs.mywalhalla.net/
Good idea!! Just one question. I was thinking that if there was a special account on the computer (XP) then that would mean that the account would have to auto load with XP so XAMPP was always running. Is there any way to automate this?
The best way would be to obfuscate the code prior to uploading it to the server PC, by doing this there is no alterations needed to the operating system/accounts. Also, look at http://www.raizlabs.com/software/phpobfuscator/ since this one would probably require little change to your source code to get this working. Providing the server is running PHP5 this would be the easiest option.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
![]() |
Similar Threads
- Compile PHP (PHP)
- Introducing EchoQuiet (Community Introductions)
- Password Protecting the add page (PHP)
- C-Dilla - Macrovision spyware (Viruses, Spyware and other Nasties)
- Password Protection from a txt.file (HTML and CSS)
- cannot find server - Microsoft Internet Explorer afterdownloading Win Service pack 2 (Networking Hardware Configuration)
- security problem (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: user/admin interaction
- Next Thread: Php logout
| Thread Tools | Search this Thread |
.htaccess ajax alerts apache api array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email emptydisplayvalue error explodefunction file files folder form forms function functions google hack href htaccess html htmlspecialchars image include insert integration ip java javascript joomla keywords limit link login loop mail menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect regex remote script search securephp server sessions shot sms soap source space sql subscription syntax system table tutorial update upload url validation validator variable video web xml youtube





