1

I'm new to the web engineering and I have done some searching for URL/Domain masking. In my company, my HOD asked one question during meeting and wants the answer in the next meeting. He asked that why are some sites will hide their real file type?

E.g. http://example/examplefolder/page.NET into http://example/examplefolder/page.html. Why the extension of the pages will always end up in html? Is is the reason to prevent some curious outsider from trying to attack the web site? Is this related with URL rewritting?

2

There can be several reasons for changing the file extension - though this is not necessarily to "hide" anything.

Two might be:

  1. Consistency: By using index.html, the webmaster can change the platform they use and be consistent - from a .Net platform to .PHP platform to a platform outputting the more typical .html - and not worry about having to change later;

  2. User Expectation: Users expect .html and it may be thought using .html will make them more comfortable.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.