|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Sep 2003
Posts: 672
|
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? ![]() |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
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] |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Sep 2003
Posts: 672
|
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 |
|
|
|