GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   help with .htaccess (https://gfy.com/showthread.php?t=180609)

gin 09-29-2003 03:46 AM

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

darksoul 09-29-2003 04:07 AM

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]

gin 09-29-2003 04:09 AM

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

darksoul 09-29-2003 04:12 AM

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