![]() |
help with .htaccess
hey. i think there is alot of hotlinkers stealing images from my server. i want to block all images so fuckers can't hotlink. what i got is this.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain2.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?111.111.111.11(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.domain.com/diehotlinker.jpg [R,NC] when i put that up.. im getting an error, can anybody help? :helpme |
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx.*$ [NC] RewriteCond %{REQUEST_URI} !^/diehotlinker\.jpg$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://domain.com/diehotlinker.jpg [R,L] |
hey i tried that. it isn't working either. The error im getting is .
[Mon Sep 29 06:09:46 2003] [alert] [client 68.98.21.11] /home/.htaccess: Invalid command 'RewriteCond', perhaps mis-spelled or defined by a module not included in the server configuration |
You don't have mod_rewrite installed
|
| All times are GMT -7. The time now is 03:21 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123