Menu
whm logo
  • News
  • Websites
  • Business
  • Servers
  • Services
    • CPanel Hosting
    • EZ Website Builder
    • VPS Hosting
    • Dedicated Servers
    • Reseller Hosting
    • Domain Registrstion
whm logo
members download
November 12, 2013February 2, 2018

How do you prevent someone from downloading your site?

Share it here
twitter facebook pinterest linkedin

We get this question a lot and the truth is there is no 100% fool proof way unless you make your page in PHP and use something like Zend, SourceGuardian, or IonCube which costs money and can be very tricky. In most cases this is not realistic to do and not necessary. We recommend not worrying about it.

After all imitation is the sincerest form of flattery.

Really though, 99.9999% of people are not out to steal your website and most new sites are just ideas of other sites compiled together with a new vision. With that said, if you’re still worried about someone using your goods then here is some tricks to get your started on how to block downloading of your web pages.

1.  Stopping the someone from seeing your site tree or file listing. With WebHost.pro there is a tool for this in your Cpanel or you can simply add this code into your .htaccess file:

Options -Indexes

or it might be:

Options All -Indexes

2.  Pay for it, there is a service that will do some crazy encoding, disable your right click, and stop view source on the site. http://www.htmlguard.com

3.  Stop image and video hotlinking with .htaccess. Again if you are with WebHost.pro there is tool to just switch this on in your cpanel or you can add this code directly into your .htaccess file in the public_html folder.

  1. RewriteBase /
  2. RewriteCond %{HTTP_REFERER} !^$
  3. RewriteCond %{HTTP_REFERER} !^http://(www.)?your-main-domain.com/.*$ [NC]
  4. RewriteRule .(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]

4.  Block Evil Robots, Site Rippers, and Offline Browsers. There is better lists but this one will get you started. Note: DO NOT include the “[OR]” on the very last RewriteCond or your server will crash, delivering “500 Errors” to all page requests.

# deny access to evil robots site rippers and offline browsers
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^Anarchie [OR]
RewriteCond %{HTTP_USER_AGENT} ^ASPSeek [OR]
RewriteCond %{HTTP_USER_AGENT} ^attach [OR]
RewriteCond %{HTTP_USER_AGENT} ^autoemailspider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xenu [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* – [F,L]

You can also include specific referrers to a blacklist by using HTTP_REFERER. We used the scumbag domain, “iaea.org” as the blocked example, and we used “your-main-domain” as your domain (the domain being blocked is:  iaea.org):

RewriteCond %{HTTP_REFERER} ^http://www.iaea.org$
RewriteRule !^http://[^/.].your-main-domain.com.* – [F,L]

We will work on updating this with more options and tricks, but for now this will get you started.

Need hosting? Check our web hosting plans here starting as low as $1.99 a month!

Continue Reading

← .htaccess info, tricks, and tips

Leave a Reply Cancel reply

You must be logged in to post a comment.

Connect with us
twitter facebook instagram youtube pinterest linkedin

Recent Posts

  • Internet usage around the World 2009-2028 (revised)

    Internet usage around the World 2009-2028 (revised)

  • Impostor scams are on the rise

    Impostor scams are on the rise

  • How to make an awesome about us page

    How to make an awesome about us page

  • Is AI taking over SEO?

    Is AI taking over SEO?

  • Transferring domains can be easy

    Transferring domains can be easy

  • 6 highly effective ways to market a small business online

    6 highly effective ways to market a small business online

  1. Missouri University of Science and Technology on Free Domain Privacy!May 6, 2023

    Missouri University of Science and Technology [...]Here is a good Weblog You may Discover Intriguing that we Encourage You[...]

  2. albertdavid123 on MySQL 5.5 is officially dying this weekApril 3, 2019

    Good bye 5.5. And thanks for we explaining the password change steps.

  3. Web Host Pro on Proper computer postureDecember 1, 2015

    Thanks!

  4. frank on 85% of people use the internet to find local businessesAugust 8, 2015

    I always do!

  5. Danny Walton on Free word invoice templateJuly 4, 2014

    Nice download

All Rights Reserved Web Host Pro 2023