473,385 Members | 1,356 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,385 software developers and data experts.

Hide javascript from client? i think i've done it!

Hello all,

I belive i found a way to hide javascript from the client.. i use php.. page referral and sessions to restrict access, run the code and then run a fake code to clean the script file.

I've already done some tests and didn't found a way to view the javascript code.

if anyone want's to give it a try, i made a testpage just for that purpose: http://prtg.eu/lockedscript/testpage/

on the scriptfile i have a line that says:
Expand|Select|Wrap|Line Numbers
  1. // Here is the code you need to proof you where here --> ######
if you can view the script, tell me that code and how did you found your way around the protection to view the script.
May 26 '11 #1
6 2438
Dormilich
8,658 Expert Mod 8TB
that one?
Expand|Select|Wrap|Line Numbers
  1. /// ACCESS Granted http://prtg.eu/l// JavaScript Document
  2. // ########################################
  3. // # #################################### #
  4. // # # lockedscript 1.0 # #
  5. // # ######################################
  6. // # # Programer: Nelson Campos # #
  7. // # # Mail: thessnake@gmail.com # #
  8. // # # Website: www.prtg.eu # #
  9. // # ######################################
  10. // ########################################
  11. // Now if you can see this than you found a way around this lock..
  12. document.write('<br />');
  13. document.write('Can you find my script? i\'m around here somewhere!');
  14. document.write('<br />');
  15. // Here is the code you need to proof you where here --> 085609
FireBug > Script > lockedscript.php
May 26 '11 #2
any particular configuration on firebug? i have firebug too and it doesn't show the script..
May 26 '11 #3
Dormilich
8,658 Expert Mod 8TB
probably a combination of previously inactivated Javascript, empty cache, first visit and luck.
May 26 '11 #4
i found some problems in the session vars wich are not working has supposed.. for the moment any tests made on the website might not work.. when i correct that ill post here again ather implement better security
May 26 '11 #5
new security setting have been implemented, including a bug that has been solved on IE..

Dormilich: would you like to try and mimic that last shoot?

everyone else can try access the javascript file and tell how and give the new proof code
May 26 '11 #6
Expand|Select|Wrap|Line Numbers
  1. /// ACCESS Granted http://prtg.eu/l// JavaScript Document
  2. // ########################################
  3. // # #################################### #
  4. // # # lockedscript 1.0 # #
  5. // # ######################################
  6. // # # Programer: Nelson Campos # #
  7. // # # Mail: thessnake@gmail.com # #
  8. // # # Website: www.prtg.eu # #
  9. // # ######################################
  10. // ########################################
  11. // Now if you can see this than you found a way around this lock..
  12. document.write('<br />');
  13. document.write('Can you find my script? i\'m around here somewhere!');
  14. document.write('<br />');
  15. // Here is the code you need to proof you where here --> 0632609/2
Jun 29 '11 #7

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

Similar topics

10
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> ...
6
by: Dung Ping | last post by:
If saving Javascript and CSS code as external files, access to them will be more difficult. Extra efforts are needed to open those files. Please verify. Also, I've heard Java and Visual Basic...
3
by: John M | last post by:
Hello, In Visual Studio .NET 2003, How can I use javascript/vbscript (client code & server code) from ASPX page, javascript is an external file, (MyJavascriptCode.js). Need sample code,...
0
by: Fredrik Melin | last post by:
Spin-off of my other thread about CType of classes between assemblies... My project, both Form based for windows client and WEB based for a web application. Crystal Class is needed by Invoice...
2
by: Frank | last post by:
Hi, Newbie wondering if it is possible to call an ASP.NET 2.0 WebService from javascript that isn't served up on the same server? For example, I would like to call the WebService using an...
4
Coldfire
by: Coldfire | last post by:
I know javascript code executes at client end i.e. at browser, BUT is there any way to hide ur javascript functionality?
8
by: Ciaran | last post by:
I have a piece of code that I'd rather google's spider did not follow. Is this possible please?
4
by: OldDrunkenSailor | last post by:
So I used a puzzle that I made in a CS class and integrated it into a new site that I made for my University's tennis club. My professor saw it and asked that I take down the puzzle because it is...
6
by: mic123 | last post by:
Other than not using them...?
47
by: SOLAV | last post by:
This is the only working way to completely hide your JavaScript code from the client just like PHP or ASP code. Here we'll need the help of PHP. Here is the code: index.php...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.