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 PostI don't think this is possible. Encryption might be an idea but that's very very doubtful.
Jump to PostYou 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.
Jump to PostOne way I can think of which can prevent a novice computer literate person is by using a No Right Click Java Script.
This method can only slow down a person from viewing your source as there are many other way to get the source.
Also you may want …
Jump to Postlol, that one won't work.. you can still see it with View --> page source :D
That is why I said it will only slow a person down.:P
All 16 Replies
Cerberus 17 Junior Poster
MB1765 0 Newbie Poster
Cerberus 17 Junior Poster
MB1765 0 Newbie Poster

iamthwee
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.