487
edits
m (→Related Links:) |
(Punctuation and grammatical changes; some clarification.) |
||
Line 20: | Line 20: | ||
'''Hot linking''' | '''Hot linking''' | ||
What is hot linking? | What is hot linking? It's when someone links to some content on your server and uses your server to deliver the goods. It could be images or any non-html objects. They are effectively stealing your bandwidth at your expense. | ||
Uniform Server has mod-rewrite enabled, allowing you to rewrite the requested URL on-the-fly based on configuration directives and rules. | Uniform Server has mod-rewrite enabled, allowing you to rewrite the requested URL on-the-fly based on configuration directives and rules. It's as complex as it sounds. I found this code on the Internet which prevents hot linking to images on your site. | ||
Just pop this code into your root htaccess file for global effect or a sub-folder to localise the effect to just one section of your site: | Just pop this code into your root .htaccess file for global effect, or a sub-folder to localise the effect to just one section of your site: | ||
== Serve a broken image == | == Serve a broken image == | ||
This code produces a broken image to be displayed when | This code produces a broken image to be displayed when it's hot linked. Make sure to replace "mydomain.com" with your own. | ||
<pre> | <pre> | ||
Options +FollowSymLinks | Options +FollowSymLinks | ||
Line 47: | Line 47: | ||
== Serve an alternative image == | == Serve an alternative image == | ||
Remember, it's your server and you can do what you like, so why not serve an alternative image in your favor. Again, remember to replace "mydomain.com" with your own: | |||
<pre> | <pre> | ||
Line 58: | Line 58: | ||
== General note == | == General note == | ||
I have seen several cases where mod rewrite is used in htaccess files and the line | I have seen several cases where mod rewrite is used in .htaccess files and the line | ||
'''Options +FollowSymLinks''' | '''Options +FollowSymLinks''' | ||
is missing which effectively informs Apache to ignore mod_rewrite. | is missing, which effectively informs Apache to ignore mod_rewrite. | ||
This error shows up in the log files as: | This error shows up in the log files as: | ||
Line 71: | Line 71: | ||
|} | |} | ||
---- | ---- | ||
[[Category: Support]] | [[Category: Support]] | ||
[[Category: Troubleshooting ]] | [[Category: Troubleshooting ]] | ||
[[Category: Application]] | [[Category: Application]] | ||
[[Category: Development]] | [[Category: Development]] |