will redirect the realpage.html to page.html if there are no frames on the page
the no right click script will make sure if anyone right clicks in that frame on the page.html page it will block it
i hope this helps
Simply viewing the code, I know, will reveal what you want to get to. I've also heard of some javascript command you can type into your address bar to disable the javascript on that page.
But this guy says he can also do it via PHP. Anyone ever heard of that?
You can't do it with php. There might be some sort of trick to prevent the page from being accessed directly (though nothing I can think of), and all the frames and no-right-click scripts in the world won't pretect you from Firefox with javascript disabled and the This Frame->View Source right-click menu.
Kids, kids... you tried your best, and you failed miserably; the lesson is: never try.
He may be referring to redirecting your browser based on referers.
Look, it's uber simple to circumnavigate any anti-view source method. Because the fact is, if the browser doesn't receive the source then it can't do a damnable thing. If your browser gets the source, so can you the user, because you just downloaded it! Now, there is a very effective way of doing this.
(If you're on windows, click Start -> Run and type in 'cmd' if you're on Windows XP or 'command' for earlier windows. Basically we want to get the command prompt). Now say we want the source for say, page.html on example.com (example.com/page.html). We type:
Code:
telnet example.com 80
and then our HTTP request
Code:
GET /page.html HTTP/1.0
Hit enter twice. The server sends you the page's contents, and it's plaintext.
Now I've seen stupider designs, which send an encrypted page and use Javascript to decrypt them. Now there's a very easy way to overcome these. Mozilla Firefox has a tool called "DOM Inspector" in which you can view every current element in the document. For the browser to understand the JS encryption, it has to be decrypted and useable by the browser. The DOM Inspector shows the decrypted document. So, simply on the page you want click Tools -> DOM Inspector Highlight the HTML node, right click, and select "Copy XML". Now paste it wherever you want, this is the source of the document.
If frames are being used its always simple enough to find the real page.
You should be fair though. I mean they will not have completely failed in their endeavour to hide the source. Ok, so they might have failed to prevent a human from getting it, but no search engine will ever index them, so that's at least a partial victory for their "security" efforts.
You should be fair though. I mean they will not have completely failed in their endeavour to hide the source. Ok, so they might have failed to prevent a human from getting it, but no search engine will ever index them, so that's at least a partial victory for their "security" efforts.
The encrypted ones, yes. I mainly did that because I've seen numerous "companies" selling "HTML Source Encryption". Bogus, each time I find a company, I send them the source code of their demonstration page and call them bogus. I'm doing my part for a free world.
Why people try to hide what they make is beyond me. It's like a shop setting up and stacking all the shelves, then locking all the windows and doors in case someone tries to come in.
i cant totally block the source its impossible, but i can do this, my thing in the tutorial section gives more protection than just the original no righ click script, but then you can just disable javascript so that wont work, now the average person wont no what to do so that doesnt matter so if they want your source they will get it.... ok besides diisabled javascript you can use a site that fetches HTML, i made one, though i tryied to make it so it wouldnt work , the $_SERVER['PHP_SELF'] would equal the right thing because all php scripts are executed on the server, so therefore that method of checking wether the address was correct wont work
Mozilla Firefox has a tool called "DOM Inspector" in which you can view every current element in the document. For the browser to understand the JS encryption, it has to be decrypted and useable by the browser. The DOM Inspector shows the decrypted document. So, simply on the page you want click Tools -> DOM Inspector Highlight the HTML node, right click, and select "Copy XML". Now paste it wherever you want, this is the source of the document.
That reminds me... I can't seem to get DOM Inspector back...
I can't find it in the Tools menu, and reinstalling Firefox doesn't give me the option to install it, and it's not an extension...
(Nevermind, fixed)
Last edited by Zarel; 09-29-2005 at 09:33 PM.
IE 6 renders Acid 2 like Opera 3.6. IE 7 renders Acid 2 like Opera 4. Firefox 1.5 renders Acid 2 like Opera 8. And Opera 9 renders Acid 2 correctly.
Need I say more?
That reminds me... I can't seem to get DOM Inspector back...
I can't find it in the Tools menu, and reinstalling Firefox doesn't give me the option to install it, and it's not an extension...
I haI lost the DOM Inspector as well, but that was back with a 0.9 version of Firefox. Unistalling firefox, and deleting the profile directory, and then reinstalling fixed it for me. The option to install DOM inspector was no longer disabled, so I checked it and off I went.
If that doesn't help, then I'd try searching the Firefox Support Forum and if that turns up nothing, try searching Bugzilla. If nothing helps you, you can always file it as a firefox bug.
Bookmarks