Dynadot โ€” .com Transfer

Help with View Source

Spaceship Spaceship
Watch
Impact
4,273
I was wondering if there is a code or command
that stops the View Source from showing.

On a website I'm working on there is a contact form, and the first line
has all the swear words in it.

It starts like this
function smutEngine(element) // detects smut words entered into forms and replaces them with #@&*%! etc.

followed by all the words you need soap for :)


How can I hide/conceal this?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
1
•••
Yep, you can possibly use a HTML encrypter but this can never fully hide it either (since it can just be de-encrypted)

You can never disable the "View Source" option. Perhaps there's a limited way of disabling it in one paricular browser (probably not, I'd be guessing) - however the way the internet works makes it impossible to truly hide your source.

The only way to hide this is to do the form validation via PHP (i.e. a server-side technology). That way, none of the form validation will show to the client.
 
0
•••
That works perfect, thanks...
hopefully it won't affect the script :tu:

I really only needed the "swear words" covered...and so far so good.

I never knew this tool existed - it's great!

---------- Post added at 05:53 PM ---------- Previous post was at 05:35 PM ----------

**UPDATE**

It did affect the script, I had to change it back - would it be easier if it was the whole page?

Or is this something that can't work within a Form Function?
 
0
•••
have you tried encrypting different sections, like maybe encrypting the whole form section?

any other error messages / code / info you could provide might be helpful too.
 
0
•••
Thanks shockie I just sent you a PM with the info.
 
0
•••
replied. should be an easy fix by "hiding" it in external file.
 
0
•••
Thanks I'll give it a try :)
 
0
•••
I know this is long shot. But if you are using server side scripting language like PHP / ASP then it would be much better to detect the words on submit event. So that words never show up in source anywhere. If they are found then the IF statement will do what it needs to do. :)
 
1
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back