473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to hide my link(passwor)

30
This script is dedicate to send sms from your page, using smsaccounts.
You have help me to do it!
Can you help me now to hide my link (because in link is my password)?
is this possible with JavaScript

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3. <script>
  4. function updateHREF() {
  5. document.getElementById('theLink').href = 'https://myaccount.smsdiscount.com/clx/sendsms.php?'+ 'username=artxcenter.com'+'&password=mypass'+'&from=artxcenter.com' +'&to='+ document.forms[0].to.value + '&text='+ document.forms[0].text.value;
  6. }
  7. </script>
  8. <form>
  9. <input type="text" name="to" onchange="updateHREF();">
  10. <input type="text" name="text" onchange="updateHREF();">
  11. <input type="text" name="fieldThree">
  12.  
  13. <a id="theLink" href="javascript:alert('Please enter some values.');void('');">test me</a>
  14. </form>
  15. </body>
  16. </html>
Jun 7 '07 #1
2 1245
acoder
16,027 Expert Mod 8TB
No, you can't hide anything client-side. Even if it's not in the URL, someone could just view the source.
Jun 8 '07 #2
gits
5,390 Expert Mod 4TB
hi ...

on clientside you can't do this ... like acoder said. and as a recommendation: never do auth-things on clientside ... always call a service or whatever you want to call it on the server side ... the client always gets your javascript-code and it may be always locally modified by the user ... so avoid everything that may be security-critical like building sql-queries, pass usernames and passwords etc. ...

try to find an other solution for this ... never, never do it ;) its evil ... and you may wonder what the guys may do with such code ... probably its your mysql-password too or whatever ... don't rely on the fact that most users don't be able to use what they get ;) ... if some could ... you may be send to hell by them ...

of course i'm exaggerating ... but i have to mention it ... and bring it to your attention ...

kind regards ...
Jun 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Michael Lamb | last post by:
Hello! I am having trouble passwor protecting a page! i want a simple script that will allow me to have more than one 'account' but will also hide the destination page within the script. Any...
3
by: Barbara Alderton | last post by:
I'm writing a small ASP.NET app (written in VB.NET). It starts off with a Login screen It contains a drop-down box for the username, a textbox for the password and a link button for the sign on ...
7
by: julianmlp | last post by:
Let me talk briefly about how I manage user autentication: 1) As usual, I've a form with User & Passwor 2) If the data matches the Database (users table), I create a Sesion ID (sessions table),...
0
by: joe | last post by:
I posted a report to reporting server, and link the report to asp.net reportviewer i link the report to the reportviewer by Me.ReportViewer1.ServerReport.ReportServerUrl = New...
20
by: Lennart Anderson | last post by:
I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk to each other. Everything seems to work OK when dealing with databases but as soon as I use a php-script that use $_server...
5
by: phobia1 | last post by:
Hi to all I can make a presentation of fixed images easily in Flash. I want to ask if its possible to do it dynamically from a database? Regards F
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.