Click here to Skip to main content
15,917,610 members
Articles / Programming Languages / Javascript

Inject

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
5 Apr 2023CPOL2 min read 5.8K   7  
How to snoop around on someone else's website
Here's a simple JavaScript snippet that lets you sneak a peek at a web page from the outside. You can use it to catch variables declared in the wrong context on your page or to assess the tech stack of someone else's site. Please note that this technique may not work on all sites. The major ones are often protected, probably by cross-browser policies. If you've got any clever tips or hacks to share, any suggestions are appreciated.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Here just for fun

Comments and Discussions