mardi 2 janvier 2018

How does restaurant website hide file extension in address bar and code in DevTools?

I really like the website for the restaurant Cafe Rio. However the developers have done 2 interesting things and I'm not sure how they accomplished them.

Effect 1: Visit the menu page.

In the address bar of your browser you will see,

http://ift.tt/2kbz9TZ

Why isn't a file extension listed? For example menu.htm. Are they hiding the extension somehow? Is there some other obvious trick that can accomplish this?

Effect 2: On the same menu page click F12 to open DevTools.

I opened DevTools to see if I could figure out how they hid the file extension. Inside I found another mystery. Listed in order I see:

www.caferio.com
  css
  img
  js
  menu

I assume menu is the main document but inside of that doc I don't see any code whatsoever. All that I see is a yellow warning about the SSL certificate. WOW! How are they hiding their code? Thanks so much for any input!




Aucun commentaire:

Enregistrer un commentaire