Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Jun 2018, 03:39 PM   #1
SEO Wannabe
 
Join Date: 2016
Posts: 20
Thanks: 8
Thanked 0 Times in 0 Posts
Default
How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Hi all,

I am about to launch a website which is pure HTML/CSS. The site has no backend and it isn't a shopping cart site. Just a simple content site in HTML.

I know anyone can easily download such HTML sites and was wondering if there is anything I can do to protect my website and content pages in it. I just don't want anyone to download my site.

So, is there anything I can do to secure my HTML website? I am not a techie guy so your 'detailed' response will be appreciated.

Have a good one.
ahsonwp is offline  
Unread 22nd Jun 2018, 03:57 PM   #2
Banned
 
Join Date: 2010
Posts: 22,774
Thanks: 2,708
Thanked 11,312 Times in 7,455 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Originally Posted by ahsonwp View Post

Hi all,

I am about to launch a website which is pure HTML/CSS. The site has no backend and it isn't a shopping cart site. Just a simple content site in HTML.

I know anyone can easily download such HTML sites and was wondering if there is anything I can do to protect my website and content pages in it. I just don't want anyone to download my site.

So, is there anything I can do to secure my HTML website? I am not a techie guy so your 'detailed' response will be appreciated.

Have a good one.


You can't do anything.

If someone wants your site/page/code they don't even need a browser, just the URL/s and write a few lines of code offline in an app.

Downloaded.
yukon is offline  
The Following User Says Thank You to yukon For This Useful Post:
Unread 22nd Jun 2018, 04:00 PM   #3
SEO Wannabe
 
Join Date: 2016
Posts: 20
Thanks: 8
Thanked 0 Times in 0 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Originally Posted by yukon View Post

You can't do anything.

If someone wants your site/page/code they don't even need a browser, just the URL/s and write a few lines of code offline in an app.

Downloaded.
So isn't there anyway I can have any kind of security? Like:

1. Adding a firewall (not sure how it works or if it is even relevant to my case)
2. Adding any security on my hosting so no 'downloads' can be executed.


Thanks,
ahsonwp is offline  
Unread 22nd Jun 2018, 04:19 PM   #4
Banned
 
Join Date: 2010
Posts: 22,774
Thanks: 2,708
Thanked 11,312 Times in 7,455 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Originally Posted by ahsonwp View Post

So isn't there anyway I can have any kind of security? Like:

1. Adding a firewall (not sure how it works or if it is even relevant to my case)
2. Adding any security on my hosting so no 'downloads' can be executed.


Thanks,
No, not as long as it's a public webpage.

You can block hotlinking files (ex: images, zip files, etc....) from outside domains via a .htaccess file and even use a webhost Cpanel to write the .htaccess file code for you but the files can still be downloaded like to an offline PC.

If I'm reading this right I think you mean have a public site but stop people from downloading your HTML source code. Is that correct? If so, I don't think it can be done.

What exactly are you trying to lock down?
yukon is offline  
The Following User Says Thank You to yukon For This Useful Post:
Unread 22nd Jun 2018, 04:50 PM   #5
SEO Wannabe
 
Join Date: 2016
Posts: 20
Thanks: 8
Thanked 0 Times in 0 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Originally Posted by yukon View Post

No, not as long as it's a public webpage.

You can block hotlinking files (ex: images, zip files, etc....) from outside domains via a .htaccess file and even use a webhost Cpanel to write the .htaccess file code for you but the files can still be downloaded like to an offline PC.

If I'm reading this right I think you mean have a public site but stop people from downloading your HTML source code. Is that correct? If so, I don't think it can be done.

What exactly are you trying to lock down?
Actually it will be a PHP site (with few HTML pages too, sorry I should have mentioned the PHP site instead of HTML site in my original post). What I want is to prevent others from downloading my website pages (one by one, OR, all at once). Just wondering if there's any security in PHP or any web hosting security features I can use to achieve this.
ahsonwp is offline  
Unread 22nd Jun 2018, 06:14 PM   #6
Banned
 
Join Date: 2010
Posts: 22,774
Thanks: 2,708
Thanked 11,312 Times in 7,455 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Originally Posted by ahsonwp View Post

Actually it will be a PHP site (with few HTML pages too, sorry I should have mentioned the PHP site instead of HTML site in my original post). What I want is to prevent others from downloading my website pages (one by one, OR, all at once). Just wondering if there's any security in PHP or any web hosting security features I can use to achieve this.

No, not If it's a public site.

The finished HTML source code is still easy to download.

If it's really a concern maybe consider password protecting the pages like a membership site.
yukon is offline  
Unread 23rd Jun 2018, 01:39 AM   #7
New Warrior Member
 
Join Date: 2018
Posts: 17
Thanks: 1
Thanked 6 Times in 6 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Make the strongest passwords possible (a unique password for every account, at least 6 characters, mix letters, numbers, symbols, upper and lower case)
Zeyankhan is offline  
Unread 23rd Jun 2018, 06:18 AM   #8
Warrior Member
 
Join Date: 2018
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

One option: Use a content management system based website and deliver functionality through plugins. Then there is less code exposed.

I would worry less about someone stealing your code and focus more on making your website service deliver something valuable where people would focus on your better content
wahoowad is offline  
Unread 23rd Jun 2018, 08:22 AM   #9
Active Warrior
 
Join Date: 2018
Location: Dhaka,Bangladesh
Posts: 44
Thanks: 0
Thanked 20 Times in 18 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Hi,

I’ve read the answers, and they have great points, but I’d like to share another safe and simple way I use to protect websites. Here you go:

..you should be the owner of your domain (otherwise, a person that owns your domain name can technically sell it).

..If your domain is registered with someone else’s name, move it to your account using the instructions of Bluehost, iPage, etc (your domain provider);


..you should be the owner of your hosting subscription (same risk as with domain);


..make the strongest passwords possible (a unique password for every account, at least 6 characters, mix letters, numbers, symbols, upper and lower case);


..use password managers (1Password or LastPass);


..install an SSL certificate on your website (it protects your customer data if you have an online store, and helps to improve ranking in Google);


..set up two-factor authentication wherever it’s possible;
install latest versions of all the programs you use (including browser, operating system, and mobile devices);


..create a backup copy every month (check with your provider whether they do backups and if not do it yourself).
romon132 is offline  
Unread 25th Jun 2018, 09:22 AM   #10
Warrior Member
 
patrickvfisher's Avatar
 
Join Date: 2018
Location: NYC
Posts: 25
Thanks: 6
Thanked 10 Times in 8 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

i think there is no way to do that !!
patrickvfisher is offline  
Unread 25th Jun 2018, 11:40 AM   #11
SEO Wannabe
 
Join Date: 2016
Posts: 20
Thanks: 8
Thanked 0 Times in 0 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Thank you for all the replies, I really appreciate it.

So I now understand that there is nothing I can do to prevent someone from downloading my site. But, is there anyway I can protect the pages using any web hosting feature (firewall, SSL, etc.)?

I just don't feel like agreeing that there isn't a way to protect HTML/PHP pages. lol.

Thanks,
ahsonwp is offline  
Unread 26th Jun 2018, 04:26 AM   #12
New Warrior Member
 
Join Date: 2018
Location: India
Posts: 21
Thanks: 0
Thanked 2 Times in 2 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

I have read the answer and they have great points but I would like to contribute another safe and simple way to protect your website:
  • You should be the owner of your domain otherwise, a person that owns your domain name can technically sell it.
  • Use Password Manager.
  • Install an SSL Certificate on your website.
  • Set up two-factor authentication wherever its possible.
  • Install the latest version of all the program you use.
  • Create backup copy every month.

Hopefully, i managed to explain in a Good Way.
sslstoreindia is offline  
Unread 13th Jul 2018, 02:30 AM   #13
Active Warrior
War Room Member
 
Join Date: 2007
Location: La Grange,Ky , USA.
Posts: 54
Thanks: 6
Thanked 30 Times in 12 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

You can use this javascript code snippet to disable right clicks on the mouse. Edit it with your URL.



<SCRIPT TYPE="text/javascript">
<!--
//Disable right click script
//visit PUT YOUR url HERE/
var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false; } }
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.all)) {
if (e.which==2||e.which==3) {(message);return false; }
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT>
scottyg is offline  
Unread 19th Jul 2018, 01:42 PM   #14
Warrior Member
 
dan oak's Avatar
 
Join Date: 2018
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

If u have forms on your site I would make sure your site is not vangable to cross browser scripting and for many other reasons I would use a site like this https://validator.w3.org/ to check your markup!

Other wise I think u are really safe using a HTML/CSS site. Especially if you are on a shared hosting plan. If u are not and using either a dedi or a home server I would make sure the server it self is secure.
dan oak is offline  
Unread 19th Jul 2018, 03:17 PM   #15
Warrior Member
 
Join Date: 2018
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

It would be very good to check the code for possible backdoors and exploits. There are many sites that will do it for free and pretty quickly. but the guarantee is not 100%. I would also ask for help from a programmer. Just to justify your fears.
MiltonVill is offline  
Unread 2nd Aug 2018, 01:38 PM   #16
New Warrior Member
 
Join Date: 2018
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

For people to view your html/css they need to download it. You can obfuscate it (so it is hard to download and modify) and you can do some javascript-tricks for downloading part of it dynamically. The latter trick would make it a lot harder, but not impossible, to download.
PeterPa is offline  
Unread 3rd Aug 2018, 12:54 AM   #17
New Warrior Member
 
Join Date: 2018
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

just do it, very easy.
wahuan is offline  
Unread 21st Nov 2018, 07:25 AM   #18
New Warrior Member
 
Lily Ericson's Avatar
 
Join Date: 2018
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

I do not think it is possible, no matter how much precautions you take people can take screenshots and save your content.
Lily Ericson is offline  
Unread 2nd Dec 2018, 09:16 PM   #19
New Warrior Member
 
Join Date: 2016
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

You cannot protect core html page but there is html encryptor available you can use them
webmirror is offline  
Unread 3rd Dec 2018, 05:38 AM   #20
New Warrior Member
 
Join Date: 2018
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

Scripts like that are to anyone wanting to "steal" your code what a post-it note on your TV saying "please don't steal this" is to a TV thief. It will only stop people who have absolutely zero knowledge.
correcthorsebatterystaple is offline  
Unread 3rd Dec 2018, 05:39 AM   #21
New Warrior Member
 
Join Date: 2018
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

This is the correct answer. All the others are irrelevant nonsense
correcthorsebatterystaple is offline  
The Following User Says Thank You to correcthorsebatterystaple For This Useful Post:
Unread 10th Dec 2018, 04:28 AM   #22
Web Development Company
 
Join Date: 2017
Location: Ahmedabad
Posts: 79
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

HTTPS or Hyper Text Transfer Protocol Secure, is a secure communications protocol that is used to transfer sensitive information between a website and a web server. Moving your website to the HTTPS protocol essentially means adding an encryption layer of TLS (Transport Layer Security) or SSL (Secure Sockets Layer) to your HTTP making your users’ and your own data extra secure from hacking attempts.

ncodetech is offline  
Unread 25th Dec 2018, 09:05 AM   #23
New Warrior Member
 
Abdelghafour Elmarzougui's Avatar
 
Join Date: 2018
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

HTML and CSS is not a programming languages so for that you dont need to secure it
Abdelghafour Elmarzougui is offline  
Unread 5th Jan 2019, 02:40 PM   #24
New Warrior Member
 
TripLoop's Avatar
 
Join Date: 2016
Posts: 21
Thanks: 13
Thanked 3 Times in 3 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

The question is what content you trying to secure? Internet is public and not designed for confidential information
TripLoop is offline  
Unread 5th Jan 2019, 02:41 PM   #25
New Warrior Member
 
TripLoop's Avatar
 
Join Date: 2016
Posts: 21
Thanks: 13
Thanked 3 Times in 3 Posts
Default
RE: How to Secure Simple HTML Website
Share on: 
fb share twitter share gplus share more share

What? Are you serious?
TripLoop is offline  
Closed Thread


Bookmarks

Tags
html, secure, simple, website


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:54 PM.