Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide code within html

Status
Not open for further replies.

JayBall

IS-IT--Management
Jul 13, 2001
25
0
0
GB
Someone I know has a link on their site to thecounter.com. Which shows in the status bar while downloading, if you right click on the page the code doesn't appear in the view source window. The page doesn't appear to be using frames so how can the code be hidden anywhere else? Please help.

Jason.
 
It is probably called with javascript. Look for the code in a <script> tag in the body of the document...
 
It may also be hidden in an image tag. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
How would I hide something in an image tag?
 
hie
may be it is just an external js file?
<script language=&quot;javascript&quot; src=&quot;dascript.js&quot;></script>?
then just use the followin:
write
Code:
view-source:[URL unfurl="true"]http://address.com/dascript.js[/URL]
in the address bar & u'll c the source code
regards, vic
 
How about an INCLUDE?!

It's probably a serverside include... ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
The way you hide something in an image tag is like this:
Code:
<img src=&quot;/cgi-bin/counter.cgi&quot; border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot;>
The program counter.cgi will be called to supply the image for the image tag. It can do it's counter thing, and then just return a content-type: image/gif header and a 1x1 pixel transparent gif image. I've a a very short perl subroutine that will print the header and the image. The image itself is only about 43 bytes long, so I hard coded it into the subroutine!
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top