Current location: Hot Scripts Forums » General Web Coding » JavaScript » this guy thinks no one can get his code


this guy thinks no one can get his code

Reply
  #1 (permalink)  
Old 11-23-03, 09:39 PM
code one code one is offline
New Member
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
this guy thinks no one can get his code

go here and figure out how to view his source:

http://www.code4ever.com/try3/index.php

ps, this is not me this time.

code one
Reply With Quote
  #2 (permalink)  
Old 11-24-03, 09:52 AM
jkblaze jkblaze is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
<html><div><body><noscript><center><b>Please enable javascript to view this page...</b></center></noscript><iframe src="direct.php" style="display:none;"></iframe></body></div></html>



thats what i got
Reply With Quote
  #3 (permalink)  
Old 11-25-03, 03:55 PM
eddyvlad eddyvlad is offline
Wannabe Coder
 
Join Date: Sep 2003
Location: In The Bloody Pits Of Hell
Posts: 160
Thanks: 2
Thanked 0 Times in 0 Posts
The code is in direct.php but if you try to view it, it'll detect that it's not inside a frame and will redirect you to code.php.

Code for index.php
Code:
<html><div><body><noscript>
<center><b>
Please enable javascript to view this page...
</b></center>
</noscript>
<iframe src="direct.php" style="display:none;">
</iframe></body></div></html>
Code for direct.php
Code:
<html>
<head></head>
<script type="text/javascript">
if (self.parent.frames.length == 0){
self.parent.location = 'code.php';
}
</script>
<body>
<CENTER>
<B>
This code is HIDDEN!!! You might as well not even try to view it... ;)
<B>
<CENTER>
</html>
Code for Code.php
PHP Code:

if($_SERVER['REFFERER'] == TRUE){

echo 
"<html><head></head><body><CENTER><B>TRY AGAIN!!!! :P</B></CENTER></body></html>";
}
else{
echo 
"Notta... ;)";

I guess that's about it.
My website code however is very hard to reach.... with IE 5 >
You can just right click on my website using NS.
All this hidden codes isn't foolproof. As long as you can see it in a webrowser, you can see the code.
__________________
Mr. Brown Eyes
Reply With Quote
  #4 (permalink)  
Old 11-27-03, 02:28 PM
CarnieLtd CarnieLtd is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
If you are using critical code that you don't want someone to see don't use just javascript use something more secure like asp.net or cgi. Store you hidden code in the locked directory that is only access by a local machine and have the compiler use what it needs. This is how you truly can hide your code . (To some extent hackers can get you though)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code to edit a text file mdhall Script Requests 12 12-23-10 04:03 AM
protecting code in PHP ckb PHP 12 01-02-04 08:53 AM
incorrect code, plz show me real code darkcarnival PHP 4 11-21-03 02:40 PM
perl/cgi newbie. hangman.cgi script adding html-like code on web and other trouble Arowana Perl 12 11-13-03 02:24 PM
Validation code for site membership kNIGits The Lounge 1 07-28-03 02:41 AM


All times are GMT -5. The time now is 11:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.