Protecting a PHP File

Thread Solved

Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Protecting a PHP File

 
0
  #1
Oct 4th, 2008
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!!!
Last edited by FlashCreations; Oct 4th, 2008 at 2:44 pm.
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1
Reputation: billchalmers is an unknown quantity at this point 
Solved Threads: 1
billchalmers billchalmers is offline Offline
Newbie Poster

Re: Protecting a PHP File

 
1
  #2
Oct 4th, 2008
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/
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: Protecting a PHP File

 
0
  #3
Oct 5th, 2008
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?
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 524
Reputation: Will Gresham is on a distinguished road 
Solved Threads: 86
Sponsor
Will Gresham's Avatar
Will Gresham Will Gresham is offline Offline
Posting Pro

Re: Protecting a PHP File

 
1
  #4
Oct 5th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: Protecting a PHP File

 
0
  #5
Oct 6th, 2008
Cool! Thanks for the help!!
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC