Is it possible to share a website without hosting it? [duplicate] - html

This question already has answers here:
Is there anyway to render a website and share it without hosting it?
(2 answers)
Closed 1 year ago.
So recently I started a project to expand my knowledge when it comes to HTML and CSS. I made a little website just for myself and I want to get some feedback from my friend.
I want him to be able to maybe click on a link and then get to my website (doesn't have to be a link). So I don't want to publish the website for anyone but for my friend or anyone that has that link or something like that.
I already heard about sharing files to someone on OneDrive and including all the code in it but my OneDrive is already out of storage so something different would be nice.

It is best to use pages.github.com check the page is a small post and video tutorial on how to use it, greetings bro!

Related

Beginner HTML: <iframe> not working as I'd like to [duplicate]

This question already has answers here:
Overcoming "Display forbidden by X-Frame-Options"
(27 answers)
Closed 3 years ago.
so I am still fairly new in coding and started with HTML, because I think it is the easiest and quickest way to get into it.
Im now using w3schools.com to develop my skills and now I am trying to use the iframe tag. When I just used as scr "https://www.google.com" it said, that google is refusing to connect. Then I downloaded the google website and added it to the folder and changed it to scr"google.html" it shows the Page of google, without fancy imaging of Google, which is already an advancment, however, I am unable to actually search something, then I get the error again "Refusing to connect".
Anyone an idea why this is happening and how to solve that?
FYI: My Website is not running on a Server, but I am connected to the Interenet.
Thanks in advance!
Every website can prevent third-party domains from embedding their content.
(How? How to prevent my site page to be loaded via 3rd party site frame of iFrame).
So the problem is not with your code. Google has denied access to embed it inside iframes.

Webpage practice [duplicate]

This question already has answers here:
Is there an HTML/CSS/JS editor that immediately shows changes? [closed]
(6 answers)
Closed 6 years ago.
I have been learning HTML + CSS via online courses like codeacademy and W3schools. I have a very simple grasp as to creating webpages and I want to play in a "sandbox" by creating pages and just messing with stuff.
I'm looking for somewhere I can type in my HTML and CSS and have it display on a webpage just like any other page I look at. I haven't been able to find anything quiet like that, other than the courses themselves. Is there even such a thing?
You could try JSFiddle
It accepts JS, HTML, CSS and renders it realtime...
You can download a coding software such as Brackets. Save your html file as index.html and your css as styles.css (per example) in the same folder.
Simply click on them in your computer's documents and it should work, opening in your default browser. You don't need an "online" tool for html/css.
Also check out this blog post for alternatives
I would highly recommend http://codepen.io. I find it the most user friendly of the bunch
I think JsFiddle would work for what you want. It also allows you to incorporate javascript as you begin to branch out. Plunker is also something I would recommend as it has a "live preview" where your page will automatically display as changes are made.
Get a free website from a site like 000webhost. Then, you can upload and edit code in real time on the server and view it on eg. http://example.freehost.com and you can view it real time. Also you could use software like notepad++ and edit your code before uploading it. Make sure your homepage is index.html

Removing a / from the address bar? [duplicate]

This question already has answers here:
Removing trailing slash from ALL URLs in site
(3 answers)
Closed 8 years ago.
I've always seen this on websites but I've never actually known how to do it. If the title is unclear then here is what I mean.
http://domain.com/directory/
I want to change that into:
http://domain.com/directory
I've seen other websites do it and I just wondered how I would go about doing that. Not even sure if this is the correct place to be posting this but I have no idea. If I am posting in the wrong place then please direct me to somewhere else. Thank you.
It is good for the SEO and it will set default to the root of your domain on the server where you have uploaded the web pages. It is something you don't need to worry about. It pretty much gets the search engines to look at all the files and not just the index.html file

Images in a mySQL database [duplicate]

This question already has answers here:
Storing Images in DB - Yea or Nay?
(56 answers)
Closed 8 years ago.
I'm making a website for my brother's webcomic, which was previously hosted on Tumblr. What is the most efficient/logical option for storing the pictures?
Downloading and putting the path in the Db
Storing them in the database, base64-encoded
linking directly to the pictures on Tumblr
wat do?
If the tumblr site is going to remain active I would lean towards using the Tumblr API to get at the photos. You could then just write some javascript/jquery functions to display the images however you want.
I've done something similar in the past with Google Picasa Albums and it worked out pretty well.
http://www.tumblr.com/docs/en/api/v2#photo-posts
Just a little additional info, in the past I've found using jquery plugins sometimes makes it a bit mor simple to get at the data I'm looking for.
Never used this one in particular but just a quick search and found this as an example of one that might be helpful.
https://github.com/Iaaan/jQuery-plugin-for-Tumblr-API

How to prevent users from downloading Presentation ( PPT ) and videos from my HTML page [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to prevent downloading images and video files from my website?
I have an HTML page which resides locally on my machine. I have 2 items on every page 1 - PPT presentation 2 - Video tutorial . I want to prevent users from downloading the content for their personal use. How can this be achieved?
Thanks in Advance !
Maddy
Unfortunately the short answer is that it cannot not be done in a good way, if the content should be available at your website at the same time.
There are solutions where you obfuscate the path to the file when it is sent to the browser, and then use a JavaScript to "decrypt" the path at the client. But those solutions are in no way bullet proof, as the decryption technique would have to be sent to the client as well.
This one is not easy to do, especially if you show them on your page already. As you do so they'll get downloaded on the browser an there's no way, at least i'm aware of you could do this with ease!
All you can do is to make it harder... but it still always be possibile! Even if you could stop them from downloading the file, you can't stop them from hooking a VCR to their video card and re-recording it. Even if you use some protected-path technology to stop that, you can't stop them from pointing a camcorder at the screen.
Same applies to the ppt presentations... as they can view them... users could take screenshots or do whatever to create their own copy!