Article 5MVMH Basic networking: mirror browser requests, but confirm before doing each request

Basic networking: mirror browser requests, but confirm before doing each request

by
dedec0
from LinuxQuestions.org on (#5MVMH)
Hello,

i have the situation described in this other thread (https://www.linuxquestions.org/quest....php?p=6271483), but you may help me faster.

Using the browser "inspect element", i have made it check what happens when i click on the link i do not want to click (because it will redirect me to bad URLs, sometimes). So, i want to check the URL first, and have means to refuse visiting it at that moment. But i want to have the URL, anyway.

So, with the browser dev. feature on, i clicked on the link, checked everything that happens: a request is made with my session cookies, in a private system, and then it is redirected to an external URL, and then a lot of (not important, now) things happen.

I want to mirror this request with other links present on the private system, but without requesting the redirected URLs. Can you help me doing it?

I am newbie with network inner workings, although i have some background in programming, internet things and HTML code. I may have not mentioned needed things when i described the request debugging i just did. Please ask more information, or give me directions, if something else is needed.

The solution can be in the browser, in javascript (i will need some help), in C (just directions should be fine, although the code needed can be bigger... or not), in Python (i will need some help, possibly). Bash commands/scripts are also welcome - and fun. (:

Thank youlatest?d=yIl2AUoC8zA latest?i=hruTPdLibj4:ijVePtxLjiQ:F7zBnMy latest?i=hruTPdLibj4:ijVePtxLjiQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=hruTPdLibj4:ijVePtxLjiQ:gIN9vFwhruTPdLibj4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments