I tried this, and it just reloads to nytimes.com Any ideas?
<div style="position:absolute; top: 0; left: 0; width:80%; height:100%; background-color:white">
<iframe border=0 width=50% height=1000 src="http://nytimes.com/"></iframe>
</div>
I just wanted to add to what Christopher Kelly said - they obviously don't want you to put their content in a frame, so you should not do it. You may want to refer to their terms of use to see what sort use of their content they are okay with.
This is what would be relevant:
Trademarks, Copyrights and Restrictions. This site is controlled and operated by The New York Times Company. All material on this site, including, but not limited to, images, illustrations, audio clips, and video clips, is protected by copyrights, trademarks, and other intellectual property rights that are owned and controlled by The New York Times Company, its related companies or by other parties that have licensed their material to The New York Times Company. Material on this Web site is solely for your personal, non-commercial use. Such material may not be copied, reproduced, republished, modified, uploaded, posted, transmitted, or distributed in any way, including by e-mail or other electronic means, without the express prior written consent of The New York Times Company. Use of the materials on any other Web site or networked computer environment, or use of the materials for any purpose other than personal, non-commercial use is a violation of The New York Times Company 's copyrights, trademarks and other proprietary rights, and is prohibited.
they are using a frame breakout javascript, since it is their site there is nothing you can do. one possibility is instead of embedding their site in a frame, use a server side method to download the wanted content and display it inline on your site.
Related
A group of business owners have asked me to create a responsive website just for them (public-facing page is login page). They want to be able to login and each have their own individual area which will show their business location and information about their business. They have recently tested doing a survey about their business environment, and they liked it and want each survey result presented in their private area too. Note, each owner will not see the private information of other owners. However, they also want a shared area with resources relevant for their industry (e.g. latest regulations, relevant industry PPTs) which they all can see (again, not public facing).
My question is, what is the best framework for making this website, which will also look ok on mobile? Previously I've made public facing websites with Elementor and WordPress - which meet the 'responsive website' requirements and for which I can envisage setting up the shared resource area - but what to use for login and creating individual areas?
Ideally after a business owner logs in they will have a personalized dashboard with their business information, and links to their page with survey results, location map etc. However, everyone will have the same index, e.g. Homepage (individualized dashboard), Survey Results (which will only show their results), Resources (everyone will see the same thing), Newsletter (they all see the same one).
I have used a free online form maker and made a digital version of the survey for them already, which automatically loads the data to a Google Sheet and then I split results in chart form to individual sheets with per person viewing permission. I have each owner's business location data ready in Google Maps. All these items I can easily embed into a page - once I have a framework setup for these private areas.
There are only about 18 business owners so it isn't a lot. I looked at using the WordPress inbuilt page password function to do this but it isn't working on most browsers for me, and I found many others encountered this same issue. I've looked at "WordPress client portal" plugin (uses password protected categories), WordPress Client Portal Plugin from SuiteDash (has the functionality but it is very very slow), ClientPortal (I can't find any option to try this plugin), and WP Customer Area (this seems great, but I found it too difficult to use even though it is free. I realize maybe my understanding isn't good enough - but I can't find good guides in English for it).
I also found some other "membership" type plugins, but they were relevant for providing customers with paid content at a tier level. I.e., you login and if you pay for "S" tier then you get access to that content. There is no paid content for the website that these owners want.
Appreciate any advice anyone may have on a suitable framework. I don't mind paying for something that fits these needs! Thanks for your help.
I'm implementing the Open Graph protocol on my site, and I'm curious if it is possible to "adopt" another site's Open Graph properties within my site's web pages.
For example, suppose a user makes a post to my site that contains a link to an article (such as the New York Times). They then share that post on platforms such as Facebook and Twitter, and I want the preview image on those platforms to contain the Open Graph image from the New York Times article web page.
Is this possible?
It's possible, when the user validates the post, you have to check the links inside to target the link of NYT. Then you have to parse yourself the page of the NYT to return the content you want. And finally you use the informations of the OG Tags of the NYT's page.
I think it's a heavy process, and keep in mind that Google penalize heavily the duplicate content from the others websites.
Hypothetical Situation: I have a small obscure website called "miniatureBoltsInCarburetors.com" which provides content about the miniature bolts which hold a carburetor together as well as some general related automotive information. My site also has a single page which allows someone to find the missing bolt in their carburetor, and while no one will access this page directly from my website, one billion other popular automotive sites have embedded this single page in their website using an iframe, yet not included a link back to my site.
I recognize that this question is related to SEO which is considered off topic, however, all of the many SEO related forums discuss the marketing steps one could take, and not the programming steps or strategies, and hope others will allow this question to be answered here.
I wish my site "miniatureBoltsInCarburetors.com" to be ranked high for general automotive searches. What could I do to allow the 3rd party sites which include an iframe back to my site to improve my ranking? Could using JavaScript in the iframe to create a link on the parent page provide any value? What about when my server renders the page, use PHP to get the referring URL from $_SERVER, and include it in the content?
I am providing a solution here. Not sure if this is what you want though.
In your page which is used by other websites in iframe you can put below Javascript. This javascript checks if the webpage is opened inside an iframe or directly in browser.
So using this check when you see it is opened in an iframe. On click on something navigate to your website.
// This works in all browsers
function inIframe () {
try {
return window.self !== window.top;
} catch () {
return true;
}
}
Also for your reference you can check the below URL.
How to prevent my site page to be loaded via 3rd party site frame of iFrame
Hope it helps.
Iframes are seen seperate pages by Google. Your approach may end up being penalized due to being sourced from untrusted site. According to Google Webmaster Support
Frames can cause problems for search engines because they don't
correspond to the conceptual model of the web. Google tries to
associate framed content with the page containing the frames, but we
don't guarantee that we will.
One of the best approaches to rank higher for a specific keyword is, make multiple related sites. In your case a 3-4 paged site about carburetors, bolts, other things your primary site contain would do it. These mini sites will be more intense about the subject due to less page count. Of course they should contain unique articles on each page. Then link from mini websites to primary websites and you can see the dramatic change.
In fact, the thing you are trying to do was a tactic to rank competitors down worked occasionally a few years ago. Now, it is still a risk.
I see. You don't want to mess up the page for your own site, but you want to do something with all the uncredited embeddings.
The solution is fairly simple:
Create a copy of the page.
Switch your site to use the copy.
Amend the version that countless other sites are embedding, so that there is a small link back to you. Or, add an iframe blocker script that will load your site.
If the page is active (ie user interacts with it to find the missing bolt) you could include a sales message with the response encouraging the user to visit your site.
I think that your goal is getting your link onto these other sites long enough to get indexed by Google before it is noticed by the people doing the embedding, so it's a bit of a balancing act.
I see conflicting advice about how Google indexes iframes. You should use a PageRank checker to see if the existing iframe page url has PageRank, and compare it to the page that you embed it on.
I dont Think you need to worry ,.
Google bot does seem to crawl through Iframes ,but the Web-Page Containing that Iframe is not Credited for that Content .. In other Words,, Page-Ranking of that particular Web-Page do not Change due to Contents from Iframe .
is IFrame crawled by Google?
Do robots crawl iframes?
My page is almost complete! I am in the process of adding some more performance-boosting features. I have come across a piece of code to enable caching on a page, but would like to know whether it is a good idea.
My page:
Consists of 2 Iframes, one with static content and one with youtube content (it is embedded youtube videos that my company created)
Has 13 static images which wont change regularly
Consists of a lot of tables.
And, will it also be a good idea to place the youtube iframe in a asp:UpdatePanel?
Thanks in advance.
If you look here you will see an ad that is intended to be embedded in another site as an advertisement. Here is an example of where it is embedded.
The code responsible for displaying the ad in the web site is this:
<iframe src="http://ads.lockedonmedia.com/zones/204" frameBorder="0" scrolling="no" style="width: 160px; height: 600px;">
I like this approach in that, if the advertisement include dynamic content, such as "today's price," the content will be easily reflected in the hosting web page.
My question is this:
I realize that IFRAMEs present navigational issues, but is there a real impact on SEO and should SEO-sensitive developers avoid using it at all costs or are there circumstances where it can be used w/o harming your ranking?
One thing to keep in mind with using an Iframe for advertisements, never ever ever embed a raw location into it! If you use an Iframe pointing to a URL as your ad source at some point your website will become an attack site for serving malware from a nefarious advertiser that changes their legitimate advertisement to a malicious one.