Hosting Javascript/CSS file on CDN similar to Google hosting jQuery [closed] - cdn

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am wondering if there are any hosts or if I can host my file (JS & CSS) on Google so that they are cached and load real quick (due to CDN and gzip).
A number of my customers use these files and I would prefer if they could somehow include this to file to receive the JS file. Ideally with filename.js?publickey=sdfgsdfg (which will be tied to a particular domain name).
The problem is that my hosting needs are very small- only about 100kb.
Any suggestions? My problem is that the customers using the JS & CSS file, have no clue about gzipping content or caching (as their shared hosts do not support it), as a result causes the JS/CSS to take forever to load. Am wondering if I can leverage an existing free service, or I do not mind paying either.

CDNJS.com allows you to submit a pull request to their GitHub account to get a JavaScript library on their CDN. I've been attempting to get a CSS library added on their forum old and abandoned forum.

If you're comfortable with the Amazon cloud platform, you can use CloudFront. You don't need to use it with S3, but you can.

You can try Amazon AWS CloudFront for quick content delivery. Amazon CloudFront works seamlessly with any origin server, which stores the original, definitive versions of your files.

Here comes the JQGrid CDN Link
http://www.jsdelivr.com/#!jqgrid

Use Cloudflare. It will take care of all your JS CSS files, with added security to your whole system.

Try SimpleCDN. You can store your files very cheap and the traffic is also not that expensive. Number of people have complained to their service - I have no objections.

Related

how to detect website leaking data [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 6 years ago.
Improve this question
I have recently built a website based on WordPress. I got a free theme from a source in Pakistan.
I have to use this theme because it perfectly serves my purpose. But I want to know that if this theme is quietly establishing a connection with another server and sending my data.
How can I detect that my website is internally sending some codes to the server of developer of theme? Also, I need to know what servers are being communicated with — like, if any image is getting loaded from their server, any code is imported from their server, or anything else is being fetched from their server to run.
Since you have the source code, then you can simply look what this theme does - basically theme should only be HTML and CSS (or mostly it). If there is too much suspicious PHP of Javascript I wouldn't use it.
If you want to see if it connects to some outside sources, run it in your controlled environment and use some network sniffing tool like Wireshark for example.
Generally speaking - if you don't trust the source where you got your theme and you are not good enough in programming to check for malicious code yourselves, don't use it!
I would recommend downloading some of themes provided directly by wordpress.org - those should be safe.

Is font-awesome used to serve commercial webfonts? [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 6 years ago.
Improve this question
I have two related questions. Is font-awesome used to serve commercial fonts, or just icons? And either way, how many file(s) are needed to serve font(s) using font-awesome (file names are also welcome)?
As explanation: my client has a commercial webfont license on their website, and wants me to use it in an HTML5 'app' (interactive visuals) that will be embedded on their site. I don't have access to their site / domain / server, but I need to provide the code so it will work with their font libraries. They have given me this link to font-awesome and said that is all I need to do so.
https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css
I am pretty sure there must be at least one other CSS file needed, and maybe other details. I am not the HTML5 developer myself, but I have a good handle on the technology of this and develop in several other software languages. He is used to converting non-commercial fonts online, but not using this type of service.
I cannot find any docs or examples of font-awesome being used this way, pretty much only for icons. I would really appreciate knowing exactly what to ask for, or even if they are giving me the right path to follow, since the corporate communication chain doesn't give me access to their web site developer.
FontAwesome needs one css file and 6 font files.
The link above is a css which gets those 6 font files on that cdn server. (look at the top of that file)
You can embed that link or provide the files yourself by downloading them.
You can go to http://fontawesome.io/get-started/ and download it to see for yourself.

Is there any way to check if this is working fine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
We have subscribed for CDN (content delivery network) for our website.
Is there any way to (any online tool to display) see the server locations available.
Is there any way to check if this is working fine?
I used http://web-sniffer.net/
Look at the Response header for Server. Previously mine was Apache/2.2.22, after setting up cloudflare it was still Apache/2.2.22, but using web sniffer it showed it as cloudflare-nginx.
previously I'd been looking at response headers in chrome dev tools, but web sniffer gave different server response headers ?!
You can use a tool like this https://is-it.online/ to measure page/resource load times at various places on the globe. If the CDN setup up is really working it should consistently show similar response times from all the locations, if not it will be lesser at the location closer to where the site is physically hosted and will increase as you go physically away from it.
Full guide is here : https://medium.com/#abhijeeta/how-to-check-if-cdn-is-working-for-my-website-9fa96cd6ba32
If you want to check if the CDN has improved the page loading speed for your visitors worldwide, you can use performance testing tools like pingdom or gtmetrix and select different locations to test the load time. However, for each location, you will need to run the test twice as during the first run the CDN is expected to take longer than the usual because it has to fetch those files at that geography first before delivery.
If you want to check the number of locations of a CDN, you can get an idea of it with tools like CDN Latency Benchmark. This gives you the latency of the CDN at the world level, plus gives you the list of IPs the CDN resolves to in different countries.

Giving web designers autonomy to publish [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 last year.
Improve this question
I would like to give web designers autonomy to publish web pages but letting them to edit aspx files is a serious security risk as they don't have the required programming skills.
I was thinking about two approaches:
They are only able to edit html files and call services with ajax;
Let them to edit xslt files associated to services that return xml.
But both have a drawback: limited use of templates.
How would you deal with this situation?
If the developer is on his own domain then its safe to give him full access to JavaScript. However if he is sharing this domain then by giving him access to javascript you open the door to XSS. This allows the publisher to hijack other user accounts (usually by access document.cookie, but there are other same-origin policy abuses). One possilbity is to use Html Purifier, which prevents javascript all together.
There is a better alternative and that is a Google-Caja, which places restrictions on the javascript a developer can execute. This is important for apps written for social networking sites.
This is an issue that's already been addressed in most CMS systems. Have a look at joomla, drupal, SharePoint, etc etc.

Wordpress Site Monitoring software / service [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
What do you use to monitor the uptime / performance of your websites, specifically those based on a PHP/MySQL platform like Wordpress?
I'm looking for something that alerts me if the site is down, or performing too slowly, and has some useful (not volumeous!) charts showing me any potential problems, and what to do about them.
Thanks!
We along with the usual Nagios, we use Pingdom. It comes with lots of default checks.
For example it also reports how fast your website is or since they employ tests from different locations you get a nice graph how accessible your website was. To put some sense into it, add a reference check (e.g. google) and see how you perform.
Aside from HTTP etc. you can also check other services (mail, database, etc.). If they are not reachable from the outside, you can always create a script that outputs a standard "OK" and have Pingdom check on that, and report back if the output changed.
I should add that Pingdom is not a free service. But we've been using them for 10 months now and they haven't troubled us. :)
Try looking at Zabbix
http://www.zabbix.com/
WEB performance monitoring
WEB availability monitoring
Support of POST and GET methods
Try out Insping also
performance monitoring
availability monitoring
e-mail and SMS alerts

Resources