How to know my website is available all over the world? - web

I have a website at e.g. http://example.com
This website is not available in China! I searched a lot but can not find the reason. My website is available elsewhere but not in china. Why?
How can I test my website availability for different countries?

You could use a proxy hosted in the desired country to browse as if you were there.
https://www.google.es/search?q=proxy+china&oq=proxy+china

I Suddenly find the best solution. You can use this website:
host-tracker.com
Just type your website and it loads it using lots of servers all over world and reports the results.

Related

Problem trying to setup GoDaddy domain with GitHub Pages

I really hope someone can help me with this since I've been struggling for days without luck.
I'm kind of new to web development and I've been doing tutorials. I already created my portfolio website and I hosted it on GitHub pages. I liked it and I decided to give it a custom domain name. I bought my domain through GoDaddy.com and I couldn't be able to correctly point it to my website hosted on GitHub Pages.
I tried different tutorials, these include this, this, this and this. None of them works for me. I'm not sure what I'm doing wrong or if there is something outdated in those tutorials but this is getting maddening.
To sum up,
I go to DNS management of my domain at GoDaddy.com.
Changed in the records tab all the A-type to the GitHub IP values (185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153) and the CNAME type to my [username]github.io website value.
Added CNAME file to my repository
Added my custom domain in portfolio>settings>github pages
Not sure where is my error and if someone can help me with this I will really appreciate it. If you need more details let me know.
Thank you in advance!
Welcome to the webdev world!
When did you actually register and redirect the domain? I've had multiple issues on several occasions which was resolved by just waiting.
Usually your ISP or just generally something you don't have control of does cache some stuff so you might need some time for it to pass in order to function properly.

How do you connect the frontend and the backend?

I'm still kind of new in programming and I'm not quite sure that this is the place to ask this question, but I can't find anything worthy on the Internet. Sorry on first place but I'm truly lost. All I can find is "just use wordpress" and things like that.
I'm trying to make a website from zero with HTML and CSS, and there I would have the front end. I know a little bit of backend but I'm still learning. The real question is: how do you mesh up all of this and put it on the Internet so others can see it? I know you have to buy a domain and so, but how do you put it all together? What do you exactly do with your server-side code if what you "upload" is the HTML code? Are there any good books on the subject or something so I can study it on my own?
Thanks in advance.
Read about web frameworks like Spring in Java or Django in Python. Start with a lecture of these to grasp a notion of backend and frontend working together:
https://www.quora.com/How-do-front-end-and-back-end-technologies-work-together
https://www.quora.com/How-are-the-front-end-and-back-end-connected
https://www.quora.com/How-does-frontend-code-and-backend-code-interact-with-each-other
EDIT
And don't forget to read about the MVC pattern.
If all you want to know is how to publish an html/css project to make your website live then you need a domain, hosting account, your project files, and an FTP program.
Buy a domain and hosting account through a website like godaddy. Once you have that then you basically have your own little server. A server is just a machine thats on 24/7 which holds your project and makes the files live on the internet for people to view.
Once you create your project, then use ftp software such as filezilla to connect to your server. Drag your project into the public_html folder and your website will be live!
I think the word you are looking for is "web server." Examples of web servers are Apache, nginx, and IIS. A web server is a computer program.
A simple web server is sometimes called a "static web server."
To see a bit how this works, you can install a static web server like http-server on your computer (which requires Node.js to run), point it at a directory, and browse the site on your own PC.
So if you have a folder called "my-site" and a file in it called "index.html" and you ran the http-server in the my-site folder, and you went to http://localhost:8080, you would see "index.html" in your browser.
To put all this on the internet:
First, if you have an internet connection at home then you could technically set something up on your laptop that people could connect to. I won't get into it here because it's a little involved, but I think it's important conceptually to understand that you could do it if you wanted to.
You need to get access to a web server. A relatively fast way to set this up would be with zeit.

Using "Google Tag Manager" with "Google classic Sites"

I'm trying to use Google Tag Manager for a site created using Google classic Sites, but I haven't had any luck so far. This question seems to have been up on a few forums, but I was not able to find any definitive answer to this end.
Help would be greatly appreciated!
You've probably seen this page - Configure Google Analytics for Google Sites, but I don't believe there is a way to add custom javascript to a google sites page, at least not yet. You might be better off buying your own domain and hosting it somewhere if you want access to GTM.
You can now use the 'embed' option in google sites to add arbitrary html/css/javascript to the site. I added the tracking code created by google tag manager and embedded it in the footer of my google site.
Directions from Google

Add search feature to simple website without mySQL database

I have a simple HTML site with 100+ pages or so. I want to add a search bar at the top so the user can search the site. I know about Google Custom Search, but it shows ads unless you pay at least $100. Obviously I'd like ad-less search on my site for free if at all possible!
I've also heard about Lucene/Solr, but they do not actually crawl the site. For that I would apparently need Nutch.
Anyway, the site I have runs on a Microsoft IIS6 server, but I have basically no knowledge as to how Solr, Nutch, etc. gets "installed" on the server.
Also: I'd like to point out that I do have a local copy of the site. Perhaps I can do one big initial nutch "crawl" locally that will create an .xml for Solr?? That would help me get "up and running", but probably wouldn't be a good long-term solution.
..so should I just use Google Custom Search? or is there a not-extremely-painful-to-implement alternative? The brain hurts folks.
You did not mention how many search requests you want to handle but if you use the json-rest-api of google's custom search you have 100 searchqueries a day for free and you can display them without any ads on your page.
An simple example request can be found here.
Here is an easy way that works pretty well, although you may be looking for something more than this.
http://sitecomber.com/getsitecomber/
You can create code to paste into your site in about 2 minutes. It doesn't get easier than that. Search is powered by Google, but results are isolated to your website.
EDIT: This no longer works.

Adding search for a private website

I have a login-protected website. It's an internal application and it's not avaiable to the general public hence it's not indexed by any search engine.
My application is developed on the Google App Engine.
I would like to add a search engine but obviously without the need to public index it. There's any solution avaiable from Google/Bing/Others for a situation like this?
Have you done this before? What solution did you chose and what are yours results?
Well Google has the Google Search Applicance which is basically a blade server which lives on your internal network and creates a "private" index. But this is meant as an enterprise caliber solution (translation: expensive).
Which framework is your website running on? You may be able to find an indexing/search module.
To answer the latter part of the question... I've used Xapian in a Django based website (via the djapian adapter). It basically creates a full-text index. Results are maybe not as good as Bing or Google would generate but it's still quite good; easy to use API too.

Resources