alex1985
Mar 19 2008, 07:53 AM
| | 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. |
Reply
sonesay
Mar 19 2008, 07:59 AM
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.
Reply
rvalkass
Mar 19 2008, 08:05 AM
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.
Reply
alex1985
Mar 19 2008, 08:18 AM
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.
Reply
truefusion
Mar 19 2008, 01:26 PM
QUOTE(alex1985 @ Mar 19 2008, 04:18 AM)  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.
Reply
alex1985
Mar 19 2008, 03:17 PM
rvalkass
Mar 19 2008, 05:42 PM
alex1985
Mar 21 2008, 12:27 AM
So, that pages might help me? What the "mod_rewrite" exactly do or for what is used?
Reply
jlhaslip
Mar 21 2008, 01:24 AM
QUOTE(rvalkass @ Mar 19 2008, 11:42 AM)  Have you read these links/tutorials yet?
Reply
alex1985
Mar 21 2008, 03:49 PM
Sorry, I will read them now, thanks for reply?!
Reply
Latest Entries
alex1985
Apr 21 2008, 10:03 AM
Thanks to all of you, it's really lucid right now.
Reply
Galahad
Apr 21 2008, 08:36 AM
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...
Reply
roooss
Apr 20 2008, 05:25 PM
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
Reply
alex1985
Apr 20 2008, 03:50 PM
Thanks. That should help me a lot!!!
Reply
roooss
Apr 20 2008, 03:12 PM
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
Reply
Recent Queries:--
php protect gif session rewrite - 741.13 hr back.
-
protect url php - 778.19 hr back.
-
aso actionscript obfuscator old version - 1358.32 hr back.
-
getelementbyname vbscript - 1372.45 hr back.
Similar Topics
Keywords : protect, pages,
- Simple Javascript And Password System
How to protect your pages with password (5)
How To Protect Your Email Account
(6) Hi... members /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
Today, I'll give this instruction how to protect your email from intruders, hackers, and
viruses. 1. Check your email account every day. If you found anything that you inspect them as
viruses, hacks, and intruders, immediately delete this email, otherwise, I don't know then. 2.
Please in your computer, install the antivirus (recommended) that supports the e-mail scanning
feature, this will ensures that your email account is not filled with spams, hacker's mess....
Pagination
? (3) People they create the databases in which like the news stories are placed. Then that news stories,
they are placed on certain page to be displayed and readable by other users on the web-site. How
people do that thing paging, like you can see bottom, whenever, you go to Any CMS engines. Need the
concept how you can create, 1, 2 or 3 pages, then next and back buttons, last and beginning page.....
Php--> Content-only Pages
Create easy to edit php pages. (9) Description Learn to create easy to edit content-only pages with php. By parsing your layout into
your pages, you can reduce file sizes and files will become much neater. Try it out Ok, lets
start by creating a file called template.php. CODE <?php
//--------------------------------- //Layout top section //---------------------------------
$top = <<< html <!-- include HTML header code here --> <body>
INSERT CODE FOR [b]TOP[/b] OF LAYOUT HERE. html;
//--------------------------------- //Layout bottom sec....
Some Pages On My Site Won't Even Load..
(6) Ever since today, my site has been working just fine. I'm maintaining the amount of points I
need, and the server status has been and still is fine. However, a while ago I tried to access my
site and it wasn't loading. When I loaded the root URL, it worked fine though. I went to the
file manager and noticed that the file I was trying to previously access was .php, and the index
file at my root URL was .html. I deleted the index.html file and made a index.php file, then tried
loading it again. Safari gave me the following message: QUOTE Safari can’t ope....
Site Error For Php Pages
Needs to Be Fixed Immediately (6) My site has been using Qupis for over a month now, and a few of my pages are php files. My site has
been operating properly until today. My html pages are working properly, but all of my php pages
are giving me the following errors. QUOTE Warning: Unknown: open_basedir restriction in effect.
File(/home/disneyre/public_html/info.php) is not within the allowed path(s): (1) in Unknown on line
0 Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 Fatal
error: Unknown: Failed opening required '/home/disneyre/public_html/info.php&....
2 Pages Into One
how? (10) Hello, now this may be a stupid question but i'm very new to php so i need some help. what
i'm wanting to do is combine 2 pages in to one. like for example the install.php for
invisionpower board it starts with one page and you click continue and it gives you a whole new page
but if you look at the url you are still using the install.php file but it has somethinglike "?a=2"
at the end. how can i do this. Thanks....
Php Pages Problem [resolved]
Please help me im stuck ;-( (5) Hi, i have been working with a wap forum script, translating from russian and fixing errors etc..
but now im stuck, the problem is with the pages while viewing a forum.. Let me explain.. the pages
are set to show ten topics per page which all works fine as you can see in these screenshots: page
1: page 2: The problem occurs when there are PINNED topics (with the redish folder), it will
show ten topics but also the pinned ones on page one, and the "Next" link will appear before it
should leading to a blank page where there should be topics but they are still on th....
Relationship Advice
tricks to protect your heart hehe (4) hey /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> everybody
is in love with love but most of us have suffered from break ups before, I never imagined love could
hurt so much until my ex, and now I prefer being single... I hate crying, I hate missing someone, I
hate being miserable and am sure you do too,lol so lets just help each other here.... One thing to
avoid is parent problem believe me,its the hardest... If you're going out with someone and his
parents are totally against it, try getting away from the relationship especi....
Pages Url Set Up Problem
(5) ok so... im in cpanel making new pages for my website.. (ending the names in .html and saving them
as an html document) but every now and then my pages, such as this one
http://www.have-heart.trap17.com/staff.html will not work if you place the WWW. after the http://
only if you type in http://have-heart.trap17.com/staff.html is there anyway to fix that?
without going in to all my pages and changing the navigation for each page?? ps.it happens both
ways,, somethings i wont be able to acess certain pages if it begins with \
http://have-heart.trap17.com/....
Best Way To Protect Html Form Fields
Looking for suggestions on how to protect form fields during user inpu (3) My working example is here http://sonesay.trap17.com/application.php The form submits to itself
and stores what ever the user inputs into session variables. Thats all fine and I have validation
checks for it, I wanted to add more and I remember comming across a site where they would lock from
fields to prevent any changes if the information was already supplied and validated. I'm looking
to build something similar but cant seem to figure out how to get that same effect at this time.
Heres my program logic so far application.php includes('application_content.....
Php An Js Window.open Pages Trouble.
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.
Page A takes a post var from another page(not Page B ) and then used to query for displaying records
in a mysql datase. This variable has set as a session variable because there is 1 <script
LANGUAGE="JavaScript"> window.name="main_index"; function openFormWindow() {
OpenWindow=window.open("add_attendance.php", "newwin", "height=250,
width=400,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no"); var x =
getElementByName("form1"); x.target="newwin"; x.s....
What Is C++ Server Pages?
(1) QUOTE C++ Server Pages (CSP) is a Web Engine for advanced Web Application Development, that uses
blended Markup Language / C++ scripts ( such as HTML/C++, XML/C++, WML/C++ etc.) Similar to ASP and
JSP, it provides a great easiness in creating web pages with dynamic content, as well as complex
business applications. However, instead of Java, Javascript or VBscript, it uses C++. This
brings some significant advantages: Incredibly high processing efficiency. Benchmarks have shown a
range of 80 to 250 times higher processing speed than ASP. The use of pure C++ all....
Protect Public Computers With Windows Steadystate
(1) QUOTE This article series will focus on “Windows SteadyState” – a completely free toolkit from
Microsoft that helps administrators take control of shared access computers running Windows XP. This
article series will include a short introduction to the possibilities we get with Windows
SteadyState (WSS). We will look at the new version compared to older versions, system requirements,
Windows Disk Protection (WDP). If you have ever managed shared access computers, like computers in
schools, public libraries, Internet cafes, kiosk machines, etc, you probably know how h....
Problem With Firefox, Latest Version, Not Loading Pages
any ideas? (2) Hi all Ive had this problem for a little while now, i cant say exactly when but it started with
sites such as youtube and has spread out from there really, the biggest culprits are youtube and
myspace. The issue is that if i was on youtube and wanted to watch a video i would obviously click
the link, firefox would then show the loading bar and my page loading timer would start but it would
never actually begin loading, the status bar would say "loading" or if i clicked the link again it
would show "stopped" yet the loading bar would be there. Needless to say the loadin....
Php Pages Permission On Apache Server
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
PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
folder? ....
How To Get All Pages To Be Indexed
Bot question (3) I use the .co.nr url shortening service from freedomain.co.nr But when I submit my site to google,
only the homepage of my blog is shown in the search results. I can't get my individual posts to
be indexed. Can I do something?....
Making Custom Error Pages With Cpanel
Not working properly (4) I set up the custom error pages using CPanel, but they aren't working properly. I get the
standard error code. CODE The requested URL was not found on this server. Additionally, a 404
Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Plust that little bit on the end. Am I doing something wrong or is it something that needs to be
handled by an admin?....
Still Getting Old Pages
:( (6) I tried clearing my cache, i even did it manually but still I am getting all pages /sad.gif"
style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> I made a new topic cuz i
can't see the old one due to loading of an old page /sad.gif" style="vertical-align:middle"
emoid=":(" border="0" alt="sad.gif" />. What i did, i pressed delete files in the internet options,
i enterd the temperorary internet files manually and deleted everything but Iam still getting old
pages /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> What do....
Pages Not Found?
(2) Hi all, i'm having trouble finding my webpages, right now its just text and a login doodlie
thing, but i access my files by visiting the page, so i can't see my changes as they happen Has
this happen to anyone else, any thoughts, etc?....
How Do I View My Site?
What are the links to my pages?? (4) This may be sort of a Noob question but..... How on earth do I view my webpages?? I logged into my
control panel and uploaded my webpages(html and php) but what are the links to the?? (I mean
mysite.qupis.com/myfile.html or something like that) Pleez help me mates. /sad.gif"
style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> /sad.gif"
style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> /sad.gif"
style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> My site is
madmax.qupis.com Need help!!....
Adding Accessibility Features To Your Pages
Using the :active/:focus pseudo-class (0) Here is a tip for its use on your site. Using CSS to tell your visitors where they are on your site
can be fairly complicated depending on the method you use. The CSS Specifications have defined a
"pseudo-class" for the link which currently has 'focus' and another pseudo-class for the
'active' state. They can be used to tell your visitors where their cursor is on the page
and you do that be altering the CSS for the link which currently has the focus and those which are
being activated. The ' active' state only occurs momentarily while the ....
Do You Want To Use Php Code In Your Html Pages?
Within two minutes you will! (9) Whilst searching around for help to setup cutenews blog I came across a way to use php in html pages
- lo and behold it works! so I thought I'd share it with you all (Unfortunately I can't
remember the site so I wrote this up a couple of minutes after I did it:) ). This method requires a
web server with apache installed. So, luckily for us all this covers the whole of Trap17... even
Qupis /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Just
to make the point, this is in no way a difficult task and it doesn't requir....
Data Access Pages ?
Help or Assistance with creating a data access page to collect data fr (1) QUOTE Hello All. I'm looking for some advise or assistance with getting a web page/access
page running so that i can have the page online and collect the data live into my database for
Project Management... Currently I'm developing a database using M$ Access, and need to
have staff data enter sales information directly into a web form that can be linked to a database?
I've looked at using a M$ Front page web form with data collected into a .CSV text file and
extracting the data but i need to be able to let the staff review and update the data....
Dynamic Php Pages
Nice tutorial (5) This is a really good tutorial on making php pages that normally appear as
www.domainname.com/links.php appear as www.domainname.com/index.php?page=links
http://nuwen.com/tutorials/php-dynamic-pages ....
How Can I Protect An Online Article Or Another Digital Creation From Being Copied?
(11) -if i sent the page or an article about it to several online media or news websites this might prove
the ideea was mine? Just putting a © mark on the page would be enough to say it's copyrighted or
i must do anything to get the right to tell it's copyrighted and thus protected by something?....
Fired For Internet Browsing
New precedent may protect you... (6) http://apnews.myway.com//article/20060424/D8H6CTO80.html In short, a New York judge has ruled
that a Department of Education employee could not be fired for using the Internet while at work. It
could set precedent for further rulings and even save some jobs. A lot of people do waste their time
browsing the web when they should be productive - there's no denying that. But some employees do
use (not abuse) their Internet access wisely, and firing them would be unflinchingly autocratic. Of
course, this does not protect anyone from using the web for illegal purposes,....
Custom 404 Error Pages
A Tutorial On How To Make Custom 404 Error Pages (17) I've seen a tutorial on here and no offense but it was horrific, this is the real way you do a
404 Error Page. Make a file called: htaccess.txt Open it up and put this: CODE ErrorDocument
404 /myerrorpage.html You will need to change myerrorpage.html to whatever your page is called.
Also when you upload this file to your server you need to rename it to: .htaccess Yes, the dot is
before the words. You need to do this on the server because on Windows you cannot do that!....
Actionscript Obfuscator Lite Edition
The best free tool to protect your actionscripts (3) ActionScript Obfuscator Lite Edition http://www.genable.com/aso/asolite.html With this tool
you can encrypt your actionscripts, so, it will be harder for someone copy your work. If you want
to by a great tool for this purpose, try this tool (also google it): FlashIncrypt....
Test Your Php Pages W/o Upload/internet
complete *working* guide on how to test your php pages (55) In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
provided does not work, so I decided to make my own tutorial with working links. The program that I
will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....
Looking for protect, pages,
|
|
Searching Video's for protect, pages,
|
advertisement
|
|