Can you block redirections? - html

The HTML redirection will work on numerous websites, but It won't work on website like Youtube, Soundcloud.
Ex:
<meta http-equiv="refresh" content="1;url=https://soundcloud.com">
This does not work. Did Soundcloud block the redirections?

No, a site cannot prevent another site from redirecting to it.

Test in another browser and check your network settings - it is not possible for a website to know how you visited it - they can only tell where you were before your landed on their site (via HTTP referrer)

Related

How to set the color for the Discord embed in my HTML website?

I'm currently developing a website for my Discord bot and wanted to know how to set the color for the embed in HTML.
When I post my url on Discord, an embed comes up but without color. How can I change it?
With <meta name="theme-color" content="color"> it does not work.
i found that putting <meta name="theme-color" content="#00aa00"> at the top of my meta info worked
For anyone else wondering, this is the correct way to do it, and the changes should take place as soon it propagates. The issue is that Discord caches website embeds. To force the embed to update locally, the quickest method is to append an empty fragment to your URL when posting it to Discord.
For example, if the link http://example.com/ is still showing the old embed, try reposting/editing the link as http://example.com/#. Since the URL is different, Discord will not pull from the same cache. This method also has the advantage of forcing an update for anyone else that'd cached the original embed before it was changed on your website. You can append additional fragments to the URL, as many times as needed: http://example.com/#####
Alternatively, you can clear Discord's cache by opening the Chromium dev tools (ctrl + i), clearing the cache, and then reloading (ctrl + shift + r). This method will only update the embed for yourself, though if nobody else saw the original embed before it was changed on your website, Discord will show them the latest content.

I want to use Google docs in django site is there any security issues with directly copying the iframe tag

I want to use Google docs in my django site by embedding it with iframe tag
Or the link provided by Google for embedding.
Is there any security threat by using this method of embedding.
It really depends what are you putting in IFRAME or if someone is putting your site in their IFRAME. if the foreign site is a "normal" site - no worries, but if you allow to anyone to put your site in IFRAME you can become part of unwanted site.
I personally use IFRAMEs only from my own other sites, where it can't be done differently or from extremely trusted sites (like Youtube). Also I prevent everyone to put my site in IFRAME.
There are tons of posts around, so I would recommend to take a look at the Google.

LinkedIn sharing URL does not show og:image

I have a problem with og:image on sharing post within LinkedIn sharing URL. Here is test post with configured og tags.
LinkedIn takes other og:tags, but not og:image.
I've checked page with the W3 validator. There are some errors, but they seem not really important. I've checked other page with working LinkedIn sharing and there are also similar html errors.
Also have tried to use cropped image, using shchemeless URL (like in this article), add og:prefix to HTML.
Does anybody know how to fix this?
I found your are not including prefix="og: http://ogp.me/ns#" in your root HTML
And your og:image size is not appropriate for universal social media sharing. Its better you give 1600:800 img (2:1) aspect ratio. And the file size below 1mb.
Here is the link of how to give og:images for universal social media
I hope this answer would help you.
Thanks
post inspector can help...
(1) in my LinkedIn profile, on 'Edit Intro' Under Media
(Add or link to external documents, photos, sites, videos, and presentations.) I had added my website but the og:image wasn't being picked... even though I had already followed the advise as per the link in your question but image wasn't being displayed
(2) So after adding prefix="og: http://ogp.me/ns#" in my html tag and changing the "https" to 'http' for my website I tried again, but no luck, even though the Post Inspector was picking it up
(3) I removed the media (from my profile intro) and saved. then added the same website address again and it worked like a charm. This could be because the image was being pulled from the cache (and since it wasn't there, i was getting a blank)... but when i added the media again, it did a fresh pull, which was successfull
Hoping someone else who experienced this issue will be helped with this...

CSS not working on http but working for www

I recently hosted a site. But when I enter my site address as for example www.example.com then my css style sheet are working fine.but when I enter the site as http://example.com then css is not working only the html body is showing.What is the problem behind this?
The issue may be because of the redirection of domains. The http://www.example.com and http://example.com are two completely different urls. You have to redirect either one to other. Also, check other urls of your site whether the redirections are working properly or not.
try using Protocol Relative URLs, these are used for linking to a website that offers both HTTP and HTTPS.
and also clear your cache.
< link href="//www.example.com/css/your-style.css" rel="stylesheet" type="text/css" >
go through this link for more info
http://www.paulirish.com/2010/the-protocol-relative-url/
Hope this work!

How can I link to a public google profile through an iFrame?

As an example the following does not work
<iframe src="https://plus.google.com/110145602671775846965/about?hl=en" />
Even though I can visit the page directly. Is there any way of getting around this?
No, there is not. Like most Google applications, Google Plus uses the X-Frame-Options to block framing of pages on their site. This is a browser security mechanism; as such, there is no way to disable it.