M3Server Inc.
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • SSL Certificates
    • Virtual Dedicated Servers
    • Bare Metal Servers
    • Content Delivery Network
    • Website Services
    • Backup Options
    • Add-On Monitor Services
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. htacess
  4. Prevent Hotlinking Static Content On Your Site

  Categories

Cancel Account
1
Databases
3
DNS
4
Email
8
FTP
4
htacess
9
M3admin Control Panel
13
Miscellaneous
1
Website Monitoring
1
WordPress
10

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

Prevent Hotlinking Static Content On Your Site Print

  • 1

Add this to your .htacces file.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)example.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ - [F]

Was this answer helpful?

Related Articles

Domain redirect So you bought another domain name that matches one you currently have.  You shouldn’t... restrict by IP or password I find myself tired of having to answer the pop up authentication box to view my control panel... rewrite base Top directories can break functionality on sub directories. Case in point:Scenario: WordPress... rewrite non SSL to SSL Want to force users to use SSL on your site?Add this code to the top of your .htaccess file, edit... Traffic source redirect Need to redirect source traffic to another domain?  Well, if you can’t modify the link...
« Back

Powered by WHMCompleteSolution

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
  • Contact Us

Copyright © 2025 M3Server Inc.. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Generate Password

Please enter a number between 8 and 64 for the password length