Unnecessary code generating in HTML website [closed] - html

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I developed HTML website. Used HTML and CSS only.
While looking into view source, it is showing unnecessary code at the end of the page and files too.
How can i solve this?

You're infected with Ramnit file infector virus. It's not curable.
Win32/Ramnit.A is a file infector with IRCBot functionality which
infects .exe, and .HTML/HTM files, and opens a back door that
compromises your computer. Using this backdoor, a remote attacker can
access and instruct the infected computer to download and execute more
malicious files. The infected .HTML or .HTM files may be detected as
Virus:VBS/Ramnit.A. Win32/Ramnit.A!dll is a related file infector
often seen with this infection. It too has IRCBot functionality which
infects .exe, .dll and .HTML/HTM files and opens a back door that
compromises your computer. This component is injected into the default
web browser by Worm:Win32/Ramnit.A which is dropped by a Ramnit
infected executable file.
Source: http://www.techspot.com/community/topics/not-curable-win32-ramnit-a-infected-and-ruined-everything-please-help.195427/
You'll probably need to wipe the hard disk and reinstall OS

Related

Is the .hta filetype an actual program, or a file? [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 1 year ago.
Improve this question
When I was looking into the .hta filetype online, it appears to be referenced as a program, however I know that mshta.exe is the program used for them. Does that mean .hta is actually just a file that uses mshta.exe to interpret it (effectively mshta.exe is a stripped down browser)? Does that mean if someone created a new program to replace mshta.exe, one can have hta files open with that new program?
I suppose if you want to be really pedantic, only .exe files with a PE header are actual programs to Windows (Windows 95/98/ME would also run DOS .exe and .com files directly). Anything else cannot be run directly by CreateProcess and needs some kind of interpreter.
A .hta file (HTML Application) is basically web page with some special syntax and usually some HTML and Javascript. And yes, mshta.exe is a stripped down browser (most likely hosting mshtml/trident) and could theoretically be replaced by another host program. .hta is not special in any way, anyone could create a custom file extension and register their interpreter as the handler for those files, it is no different than Notepad.exe "%1" being the default handler for .txt files...

How to upload a website without an html files [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 2 years ago.
Improve this question
H!
I have created a website, where all the files are of the type CSS, js, pug, and when I want to publish the site, I need to give an index.html file from which the site will start. The problem is that I do not have such a file.
Does anyone know how to deal with such a problem?
And in addition, I started the site by running it in localhost: 3000 does anyone know how to start it now so that it will work when I upload it.
Thanks in advance to all the helpers.
Your mention of localhost:3000 implies that you have written a website which depends on Node.js for server-side code (at a minimum this will involve the translation of your Pug templates into HTML on demand).
There are two general approaches you can take to solve this problem:
Find hosting which supports your server-side code and deploy your Node.js application to it. (This will not be typical static or shared hosting).
Generate static HTML documents from your application and upload those HTML documents. (The specifics will depend on exactly what your server-side implementation does and will probably be a significant amount of work. Typically if you wanted to take this approach, you would have used a framework designed to output static sites from the outset).
Obviously if you have your server-side code processing user input (such as form submissions) option 2 will not work.

C++ Windows Sockets: Downloading an html file [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 7 years ago.
Improve this question
Given:
Suppose that I have a website called "exampledomain.com", and that on that website, I have one file called "my_doc.html", the full URL address of which is "https://www.exampledomain.com/my_directory/my_doc.html". (Not my actual website; this is just hypothetical).
Objecive:
I'm trying to develop a Client-Side Application, using C++ & Windows Sockets, that downloads my HTML file, parses it, extracts some specific information, runs some calculations, and displays its results to the user.
Question:
How do I download the HTML file from the server to the directory "C:/ExampleDirectory/" on the client-side computer, using the Windows Sockets Library?*
Clarification:
I want to write this Client-side program to work with the existing website. IE: I want it to download the file in the same way that an Internet-Browser like Microsoft Edge would.
Edit:
Just to clarify, the server uses a secure, account-based system, and thus the document would be transferred using HTTPS. I'm not really sure if this would effect the solution, but I thought it'd be worth mentioning.
Don't.
A socket library is not an appropriate tool to talk with a web-server. http is complex enough that you want to use a specialized http library. There are several such libraries available. curllib springs to mind. And of course there is the WinHttp tag https://stackoverflow.com/tags/winhttp/info.
And for the html part, you'd want to use an html parsing library to extract the desired info.

How can learn to make a website(just for practising) without paying for domain and host? [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 8 years ago.
Improve this question
I am learning how to make a website and wondering if it's possible to build my own website just for learning purpose without paying for domain and host? In other words, how can I practise making a website in which I can do almost all things like ones I can do with a real website but I don't have to pay anything?
You could simply create an index.html file, code in there, and then open that file in a web browser like chrome.
As simple as that :)
You can use wamp (windows), or mamp (mac), etc, if you're trying to learn PHP.
There are some others software like SQL server management and IIS for ASP.NET website.
But in case of, learning HTML / CSS / JavaScript can be run on your own machin without any needs. (or txt editor maybe)
You can find somes tuto on internet about "learn html css" or "html / css lessons"
I can recommand you this website, which help me a lot to start.
You can install something like XAMPP which will render your website files.
If you are just starting with static HTML, CSS and maybe JavaScript later on the way, just create a folder, named e.g. 'myFirstWebsite', in the home directory of your computer, and put a file called index.html into the folder.
Now start hacking! ;)
You can open the file with any browser and it will work. Even JS, embedded in your .html file or in a separate, referenced .js file will execute.
Things get more complicated when you want to do server related things like working with a blog system like Wordpress or similar. The you have to install a local webserver like Apache, a database, PHP (if you absolutely need to) and so on. All of that is combined into the aforementioned WAMP, LAMP, MAMP ... packages.
A great knowledge resource is the Mozilla Developer Network.

What is the recommended way to present a Help file? [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 8 years ago.
Improve this question
It seems that anymore I have no clue what is going to happen when I launch the Help of a program. Which makes it all that much more confusing when having to decide how to create a help file for my application.
For example, it might open my web browser to local instance of an html file. It might point to a web-hosted help website. It could load up the Windows Help and Support center. It may load a chm file. It could load up a custom help form with menus, etc.
What is the "correct" way to implement a help?
I like the idea of chm file, but it makes it hard for me to push any updates to users without them updating the application. Same can be said for a local html based help file.
I also like the idea of doing a web hosted help file because I can update it as needed with new information, but what does that mean for users who don't have an active internet connection? For example (in my case, my software will be used equally in a car-mounted laptop with no internet connection and on a desktop computer with an internet connection)
I'm curious to know what is commonly done when creating a help file, and what authoring tools are used, if any.
A solution I have used for the mobile applications, is to have a local html help file which the application renders for help content in a web view. We then had a background mechanism to check against a service for help updates and download the updated HTML and other static content as appropriate. This way you always have a local HTML file which doesn't require a connection, and renders quickly (since there is no download required for viewing).
The most subtle way is providing a Compiled HTML (CHM) help file.
There are many free and paid apps that help create documentation. You could try Rahman CHM Maker or KEL CHM Creator.