Hello to every body who visit this thread
I want to prevent view source(html tags & javascript scripts) of the page with php. I've studied php manual withuot any success how can I do it? Is it possible
MB1765 0 Newbie Poster
Recommended Answers
Jump to Post— Cerberus 17I don't see how you can hide the source that gets sent to the client browser. Code within the PHP tags would be processed at the server end anyway. So data such as database login wouldn't be sent to the client machine anyway.
Jump to Post— Cerberus 17I don't think this is possible because your web browser requires the source and viewing the source code is a function of the browser.
Is there any particular reason you need to do this?
Jump to Post— Member #46692I don't think this is possible. Encryption might be an idea but that's very very doubtful.
Jump to Post— stymiee 111You can't reliably do it. If someone wants it they will get it. If you don't want people to have it, don't put it on thew web.
FYI, your javascript is not special. If you can write it, so can anyone else who knows javascript. Hiding it is pointless.
All 16 Replies
Cerberus 17 Junior Poster
MB1765 0 Newbie Poster
Cerberus 17 Junior Poster
MB1765 0 Newbie Poster
Member #46692
stymiee 111 He's No Good To Me Dead Team Colleague
dezignwork 1 Newbie Poster
ProgrammersTalk 11 Junior Poster in Training
ashneet 0 Junior Poster
ProgrammersTalk 11 Junior Poster in Training
ashneet 0 Junior Poster
stymiee 111 He's No Good To Me Dead Team Colleague
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
ProgrammersTalk 11 Junior Poster in Training
dr4g 25 Junior Poster
MB1765 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.