| | I create certain pages for my web-site, and I would like to protect them that no one can hack or see their source codes. So, if everybody knows how to do it, please post a reply over here. List of the best ways, I can do it. Thanks. |
|
|
Any one who has access to the web server will have access to your files you store there. Once downloaded or viewed without being parsed by PHP the source code is viewable so there is no way to encrypt your source doe from that.
Any server-side scripting (such as PHP) will never be seen by visitors to your site as long as PHP is running on the server. The HTML output, however, is obviously visible, and there is very little you can do to protect that. All the code must be able to be understood by the browser, and therefore there will be an easy way for a visitor to see the plain HTML source code.
As long as your PHP is well written (clean any user input, sanitise database inputs, etc.) then you should have nothing to worry about.
All right! But some web-sites has pages like "dsjdsb" or some another symbols at the end of web address. That's looks good.
Because, I link my pages like in HTML. For instance, if you wanna go to the home page, you click on the link "Back", and when you actually pressed it, the user can see the file: "index.php". In other words, I wanna avoid this problem, and that's why I am asking for some protection of the pages. Just list the choices what can be done about it. Because, I link my pages like in HTML. For instance, if you wanna go to the home page, you click on the link "Back", and when you actually pressed it, the user can see the file: "index.php". In other words, I wanna avoid this problem, and that's why I am asking for some protection of the pages. Just list the choices what can be done about it. Hmm? You mean you don't want them to see what kind of server-side script you're running? You might want to look into mod_rewrite for the Apache server. With this, you can make your URLs appear like if the browser is accessing an HTML file, when really it's accessing a PHP or ASP or JSP, etc, script. Either that or give your HTML pages the ability to process PHP scripts.
SO? How you do it?
Try searching for "mod _rewrite" for a tutorial:
search:mod_rewrite search:mod_rewrite tutorial Also try these links for some help: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html http://www.ilovejackdaniels.com/cheat-shee...te-cheat-sheet/
So, that pages might help me? What the "mod_rewrite" exactly do or for what is used?
Try searching for "mod _rewrite" for a tutorial: search:mod_rewrite search:mod_rewrite tutorial Also try these links for some help: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html http://www.ilovejackdaniels.com/cheat-shee...te-cheat-sheet/ Have you read these links/tutorials yet?
Sorry, I will read them now, thanks for reply?!
Latest Entries
Thanks to all of you, it's really lucid right now.
But again, what's the point of obfuscating hos code, if no one can see his PHP source? As Al3x said, PHP is processed by the php parser, and it;s output is sent to a web browser... Internet is kind of a "open source", and it's contents are available to anyone who wants to see them... Even thsi forum can't protect it;s contents, only it's source code, that makes it work... And there's nothing you can do to protect your output, and I actually don't see any reason to... JavaScript protection scripts are stupid and pointless, and only annoy people...
I figure you want to hide your URL page addresses, so people don't see domain.com/page1.php, domain.com/page2.php etc., but only to show domain.com for every page... As people upstairs suggested, look at Apaches mod_rewrite, and the use of .htaccess file... Oh, and another thing... Try to write longer posts, with a bit more detail what you want done, because it's hard for us to guess what you want done... People here take time to help you, the leas you can do is put some time into writing your posts, to help them help you, and anyone else having the same or similar problem...
no problem glad i can help
if u employ both php hiding and obfuscation not only do you get unreadable code but unreadle code with no sign of what language it is either! making it very very difficult for a would be script thief
Thanks. That should help me a lot!!!
take a look at something like this
http://www.raizlabs.com/software/phpobfuscator/ if youre gonna do it i advise you read up a bit about it first because otehrwise see youre code obfuscation might give you a heart attack! lol Here is a sample of what obfuscated code looks like... function FC7321B391B6EF18F0711B835402E91D1($RE91192A00FF990477EE414AD5D708F08) { global $db_prefix; global $R695CD54D1F9CB31C11C71AF5EF74FDDB; $R9E9F3EDB7A84E99A0567F313F4EAC1BA = $RE91192A00FF990477EE414AD5D708F08; $R37A721F3B04CA577A7730084048F2BE3 = array_keys($R695CD54D1F9CB31C11C71AF5EF74FDDB); foreach($R37A721F3B04CA577A7730084048F2BE3 as $R90E8291866BD6CB7ED5089CE7E833D11) { $R9E9F3EDB7A84E99A0567F313F4EAC1BA = str_replace($R90E8291866BD6CB7ED5089CE7E833D11, $db_prefix . $R90E8291866BD6CB7ED5089CE7E833D11 , $R9E9F3EDB7A84E99A0567F313F4EAC1BA); } return $R9E9F3EDB7A84E99A0567F313F4EAC1BA;}. heres another kewl tutorial to hide the fact that your using php altogether! take a peek http://www.phpfreaks.com/forums/index.php/...c,186675.0.html
Recent Queries:-
Keywords : protect, pages,
how? (10) Hello, now this may be a stupid question but i'm very new to php so i need some help. what Please help me im stuck ;-( (5) Hi, i have been working with a wap forum script, translating from russian and fixing errors etc.. I need a way to set hidden input values to the new window. (3) I have 2 main pages Page A(events_locked.php) and Page B(add_attendance.php). Both are php files. PHP pages permission on Apache Server (1) Hello, I want to know what permissions for PHP pages should be given on Apache web server so that (1) suppose i have a page, page.php?part=1 there i have some text fields. user will give input, but Nice tutorial (5) This is a really good tutorial on making php pages that normally appear as (6) We're doing a "Mock" e-commerce site for our project in Web Development and I was wondering how (11) I want to change an include tag (include menu.htm) to include menu.php on all my pages on my (9) This isn't really that urgent but I was wondering, I read somewhere that you can configure you (4) I would like to know how and where to put the code that would block certain pages so people could (2) just wondering if there is a easy safe way to secure some webpages. i have a payment facility on my Access the same class instance over multiple pages (1) Hey everyone. I am having some trouble accessing the same php class instance in more that one page. ?? (9) I know its possible to put many pages inside 1 file. But how? Lets say you have a guestbook with (3) Is there a way to have php act as an iframe? I dont want to have to change every single page when i Looking for protect, pages,
|
|
![]() Protect Pages - HOW? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|