Script Through the Url

I was wondering if you can run a script on the page through the url
like ( the script here)
so if i send it to someone it would work like if the person executed it in the console
like if you translate the code into ASCII format and used the String.fromCharCode and the eval functions then convert the line into url format it would probably work?

Encoding a script in a URL is probably possible, if it’s a small script. It’s up to the server to decode it. I’m not sure why you would want to do this as code is generally sent to the client in the body of an HTTP response.

I saw a security warning on Twitter a few days ago in which scripts passed through the URL were part of the attack, but I don’t have anymore details than this:

1 Like

Yowza. Here’s an analysis linked to in the comments:

I didn’t think there was a way to interpret tags from the URL. That is gosh darn crafty.

Also, <3 Tom Scott. :heart::heart::heart::heart: