PDA

View Full Version : any1 got the anti leech script like geocities to work?



Weapon
July 4th, 2001, 22:44
so anyome got a .htaccess anti leech script to work? u know like the one at geocities? anyone know one where I just link my images normally, but is anti leechable? liker geocities, u link everythin normally but when hot link shows another image, one like crosswinds will be okay where instead of using .htaccess use cgi and still link images normally

Ted S
July 5th, 2001, 04:18
Htaccess is the only real way to go..... unless you use a cgi script to call all your images which is a real pain..

HEre's the htacess code:


RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://www.yoursite.com/something.else [R]


This code, when put into a httpd.conf or htaccess file tells the server that if a image is requested by a host not on this server, show another file in its place.

Weapon
July 5th, 2001, 04:41
tell me more about this httpd.conf.......

Ted S
July 5th, 2001, 04:47
httpd.conf is the core apache configuration file..... assuming you have root access to an apache based server it normally lies in your /usr/local/apache or /etc/conf/httpd folders. However, unless you own your own server upi will not be able to modify it.

Weapon
July 5th, 2001, 05:18
how and will I be able to use it on f2s?

Ted S
July 5th, 2001, 05:25
Do you have root access to the server?

Weapon
July 5th, 2001, 06:17
what do you mean? all I know is I have a certain path I have to put in for cgi and thats all I know, anyways do ya have icq? might be easier for us to talk

Ted S
July 5th, 2001, 06:18
It would seem that you do not have root access to your server...

You will need to find out if your host allows .htaccess in order to use mod_rewrite

Weapon
July 5th, 2001, 06:40
I know for a fact that f2s allows f2s (correct me if I am wrong, meow?:rolleyes:) I have tried so many of these .htaccess script hopes this ones work;)