hi i was wondering how i can show my site bar on a external link my site sends a user to. A good example of this is how digg shows a bar at the top after being sent to a different site. Please let me know steps on how i can do this.

Dani AI

Generated

— short answer: there are three practical ways to keep your site bar visible when a user follows an external link. is right that a framed wrapper is the simplest, but it often fails in the wild and has safer alternatives.

A wrapper page on your domain that loads the target in an <iframe> lets you show your bar while the remote page renders below it. Implement it as a validated redirect like /visit?url=..., strictly allow only http/https, reject javascript:/data: schemes, and block open-redirect abuse (see OWASP on unvalidated redirects). Many sites block framing with headers, so test each target. Browsers honor the X-Frame-Options header and CSP frame-ancestors, which can prevent embedding; see MDN: X-Frame-Options and MDN: frame-ancestors.

A reverse-proxy approach fetches the external page server-side, rewrites links/resources, and serves the result under your origin so you can inject a toolbar. It bypasses framing limits but is complex: you must rewrite absolute/relative URLs, handle cookies, fix same-origin JS, and respect target sites' terms. For production use look at proxy modules like Nginx proxy_pass or Apache mod_proxy.

If you cannot proxy or frame reliably, use a client-side solution: a browser extension or bookmarklet that overlays your toolbar in the visitor’s browser. It requires user installation but avoids server-side legal and technical issues.

If you go forward, start by building a secure /visit wrapper and test with a variety of sites while checking response headers with browser devtools. For historical context on the UX you described, see the DiggBar implementation notes at DiggBar.

i guess, its not possible to show your bar on others pages
but what you can do is, show others pages on page showing your bar :P
just read about iframes.
though, it is not good programming practice, it gets your job done :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.