I don't want to view soures by other peoples, help me?? I using phpBB2.04, can I add code to where ?
Printable View
I don't want to view soures by other peoples, help me?? I using phpBB2.04, can I add code to where ?
Do you mean that you don't want other people to be able to viiew your php source code?
If that is the case I would have thought that other people would not be able to view it without making any changes.
Wow ! I like it , too
I'm beginning to find this thread a little too surreal for me...
kevin85, what do you like too?
I have a questions as datahackervn,too ? securing my links when they click right mouse?
Okay, I think I know what we're talking about here - Right click, view source yeah?
I could be wrong, but it is almost impossibe to hide the HTML source unless you do some clever mucking around with javascript - there has been something written on AO about that before, but I can't seem to find it.
However this tutorial may help http://www.antionline.com/showthread...hreadid=239611 since it has some info on disabling right click in javascript
However if you are writing in PHP you can't see the PHP source, only the HTML it has created so you shouldn't worry.
In most cases it is perfectly acceptable to have the HTML viewable since this reveals very little which could be a security risk if care is taken in designing the Server Directories and permissions on them.
Why do need to hide the source?
ok ! thank ,
You could attempt to disable view source using javascript. The problem with this however is that they can simply do a view source through the menu, or disable javascript. There is no good way to keep anyone from seeing your html 'source'.....period.
you can't stop them from viewing it but you can make it so they wont be able to understand it - there is a way of scrambling the html so that the browser can still read and understand it but the average person will have a hell of a time trying to - but I can't remember the address for it >_<Quote:
There is no good way to keep anyone from seeing your html 'source'.....period.
will keep looking and if i come up with it will post it
v_Ln
use the javascript 'unescape' function*(document.write(unescape) together with 'diasble right clicks'.
This will prevent 'novice' users to view your source.
To really prevent users to see what takes place you need some sort of server side scripting.
They will still be able to view to html source however no mather what precautions you take.
Try this [url]http://javascript.internet.com/passwords/character-encoder.html[url]
It converts any inserted text into ASCII, which is then interpreted by the browser. When someone goes to check the source, they will see nothing but numbers. There is something similar on the same site: [url]www.javascriptsource.com[url]. But I could'nt find it at the time.
Hope this helps considering you are using PHP.
Again, there is no good way to keep people from seeing your html source....period. Client side scripts that you add can be easily turned off, removed, or gotten around through alternative means (such as saving the file and opening it in a text editor, going through the menu's, etc).
Any programs you use to encode your html source must also come with ways to decode the html. This is used with client side scripting usually....and is also just as easy to get around. By having it client side people can figure out the algorithm used to encode the html and decode it. Also the encoding is usually fairly weak anyways and can be easily broken.
Any html you send to a user has to be readable by the browser. Therefore any attempts you make to hide the html are going to be weak and in the end pointless.
oh ,yes i think disable right click mouse isn't the best , because they can still view source from View menu, i like http://javascript.internet.com/passw...r-encoder.html
thank Zetaphor