Get website hidden behind loading page [closed] - bash

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Some websites (example) have a "loading" screen display before they show you their actual content.
If I curl the site, I get this loading screen rather than the content which I want.
How can a bash program get the actual content of the web page, rather than this "redirecting" page?

Modern websites tend to be very dynamic, at least compared to those of the early web. Thus, there are many opportunities for a site operator to hide content; a common one is to load everything, but hide it with Javascript, in which case disabling Javascript prevents the "hiding code" from running.
In this case, the site appears to be using Cloudflare as a CDN. Your request goes to Cloudflare's servers, and then is forwarded on to the actual underlying site. If Cloudlfare decides that your browser looks like a threat, they may decide to do some additional checks - but apparently they didn't decide that curl was. We have no way of knowing what exactly their decision is based upon, but they have complete control over deciding what HTML you are served.

Related

Why some sites load like an SPA while some refreshes everytime? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
I have hosted my website on two different providers
render - https://madhusudanlive.onrender.com/
railway - https://krypton.up.railway.app/
Both of these sites have same code and built on top of nuxtJS, also the same methods used for deploying, but the one hosted on the render loads quickly, and the loading sign on URL doesn't change (feels like an SPA) but the other one reloads page on every single request, and we can clearly see the reload and cross icons changing on every click.
For a better example, open the navbar on top right and click the home/about pages, and then click on the k logo, for render site, it will show animation but for the railway host, it will not show the animation but reload the page.
The app on Render is indeed an SPA, the Railway one behaves like an MPA.
I can confirm that.
As of the exact reason, we'll need to check some of your code. What matters the most is how it behaves if you bundle (and preview) it locally.
Also, depends if you use 'server' or 'static' for those as a target.
Also how you configured the deploy on each platform.
PS: I would start by fixing those errors first is quite important.

What kind of websites are best suited for Google's AMP (Accelerated Mobile Pages) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I recently learnt about Google's AMP project. I currently work on an online classifieds application, that has some client side JS. I understand that it's mostly content sites like Blogs that use AMP.
My question is this - are there any advantages or is there any need, for other web applications(e-commerce etc.) to sign up for AMP?
AMP pages (like you mentioned) are great for content heavy site like blogs and news sites. The MAIN advantage to AMP is that it will load your page much faster on a mobile device. You would have two version of each page, the regular desktop version and then it's AMP equivalent.
AMP pages have tons of restrictions which allow the page to load much faster as all of the layout calculation are done before any rendering to the screen, but the limitations are why AMP pages don't work well for e-commerce.
No external authored JS files are allowed unless AMP-IFRAMED. Custom css can be placed in your AMP page but must be included into an AMP custom style tag, cannot contain any wildcard selectors (*) and is limited to 50k.
All request from an AMP page must be made via HTTPS as well.
These are just a few of the restrictions and I suggest if you're at all interested in pursuing AMPing your site, read everything you can first. Here is a good page that will answer a lot of HOW TO questions. TURN your AMP up to 11.
Good luck!

Admin panel for inputting data for Parse.com? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
If an app that uses Parse needs a web-based data admin system, what's the best way to go?
I know Parse.com already offers a data browser, but its main use case isn't for someone to mass enter data or perform admin functions. I know I can make one from scratch with the libraries found here on the Parse API Libraries page, but I was just wondering if there was a standard or most used way to use 3rd party admin panels.
Given that there is no "standard data admin", other than perhaps letting them edit all fields on all objects (which is provided by the data browser), I wouldn't expect to find some 3rd party admin panel.
What you do and don't expose in an admin interface often varies from product to product, some fields might be there only to support easier searching and be read-only (or hidden) even in admin screens.
Unfortunately that means you need to roll your own admin screens using whichever SDK works best for you.
Be aware that (last I checked) the JavaScript SDK only works for Internet Explorer if your pages are hosted on SSL (https), due to a quirk in IE. If you want to support IE you might want to use Parse's Cloud Hosting.

Why does FireFox send a request automatically to the first result in Google? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
In FireFox 3.6.1 (a fresh install), I am seeing a request sent to the first search result (Google) without user interaction.
Why is this?
Some browsers are set up to preload some links in a page, in order to minimize perceived delays. Google actually supports this. For example, When i google for "blah", the first result includes this code:
<link rel=prefetch href="http://en.wikipedia.org/wiki/Blah">
A browser that supports this "microformat", or has a plugin installed that does, might load the page before it's requested, assuming (quite correctly, in many cases) that a user will click on the first search result they see.

How can I prevent Firefox from loading images? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I'm writing a rudimentary screen scraper tool as an FF add-on (using DOM and xpaths). Currently, it runs fine. However, it also runs very slowly, as Firefox takes some time to request and download all the non-textual elements on each page (simply writing a separate application that parses the raw HTML is not feasible as some of the pages that need scraping make rather complicated AJAX requests). While I have seen 'Image block' and 'Flash block' plugins, these all seem to merely prevent the images/flash from displaying, rather than actually suppressing the GET requests.
So my question is this: is there any way for me to prevent Firefox from issuing these GET requests to begin with?
Preferences -> Content -> "Load images automatically".
Adblock Plus (or Adblock) can block images and more...
after installing, on the upper menu (aside of address bar) there appears an icon, right click>Options> Edit Filter:
The filter to block:
GIF images would be .gif
Flash would be .swf
and etc..
if you need to enable for specific site, just click icon and Enable/Pause for this site. then reload page to see images and etc..
for only specific site, like this: http://ad.uk.doubleclick.net/*.swf

Resources