25Jun
More on mod_rewrite
Today, I caught sight of an article on anti-plagiarism tools at The Blog Herald and among the tricks was to use mod-rewrite to stop people "borrowing" both your images and your bandwidth. The gist is that you set up one or more conditions that exclude websites from the application of a rule forbidding access to images; the logic is that if the website referencing an image is not one of the websites listed in the conditions, then it doesn’t get to display any of your images.
RewriteCond %{HTTP_REFERER} !^http://(www\.)?awebsite.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|png|bmp)$ [F,NC]
Tags: Apache, mod_rewrite
Other Posts That May Interest You
Posted in
Web Development
Place your comment
Please fill your data and comment below.
Topics Discussed
Adobe Apache Blogging Blogs Canon Command Line CSS Debian Fedora Firefox GNOME Google Hard Drives Hardware HTML Installation Internet Explorer Linux Microsoft MySQL Opera Operating System Perl Photoshop Photoshop Elements PHP Plugins SAS Software SQL Ubuntu UNIX upgrade VirtualBox Virtualisation Virtual Machines VMware Web Browsers Windows Windows Vista Windows XP WordPress WordPress.com WordPress plugins XHTMLTwitter Updates
- Delicious: Example 4.9 Computing Confidence Limits for the Mean, Standard Deviation, and Variance http://ow.ly/18OCZJ 1 day ago
- GR Shared Items: SAS Enterprise Guide 4.3 is available http://ow.ly/18O1jS 2 days ago
- GR Shared Items: Two New SAS Blogs http://ow.ly/18O1jT 2 days ago
- GR Shared Items: SAS EG 4.3 is here (but its hiding with Elvis) http://ow.ly/18MYxY 3 days ago
- GR Shared Items: Weblog Tools Collection: WordPress and the Fatal Memory Error http://ow.ly/18MdIo 4 days ago
- More updates...
Monthly Archives
[...] recently posted about using mod_rewrite to block access to your images from all but the websites to which you want access to be available. Following so doing, I discovered that my FAVICON had disappeared from Firefox’s address. As [...]