|
|
How to prevent hotlinkingHotlinking is a term used for the linking of an image from a site by another site. The linking site steals bandwidth this way from the linked site.To prevent this, create or edit the .htaccess file and place the following code in the file
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?example\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /dontsteal.jpg [L]
Please remember to:
Apache categoriesApache Installation? | Apache Configuration | Apache Troubleshooting? Back to > Software |
Google SearchLogin |