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)
-   -   HTACCESS help please (https://gfy.com/showthread.php?t=314884)

alexg 06-19-2004 06:25 AM

HTACCESS help please
 
I need a htaccess code that blocks hotlinking to images that take more then 10k in size.

Images smaller then 10k can be hotlinked, but if someone tries to hotlink to a bigger image it will redirect him to the URL that I specify...

can this be arranged? maybe someone has a similar code premade..I'd appreciate that

alexg 06-19-2004 06:27 AM

Oh and I need a code I can put in the root directory and it will block hotlinking all over the domain. In all directories...

I don't want a code that I need to put in every dir

polish_aristocrat 06-19-2004 06:31 AM

u got an innovative sig

alexg 06-19-2004 06:36 AM

Quote:

Originally posted by polish_aristocrat
u got an innovative sig
click it :Graucho

fris 06-19-2004 07:31 AM

Quote:

Originally posted by alexg
I need a htaccess code that blocks hotlinking to images that take more then 10k in size.

Images smaller then 10k can be hotlinked, but if someone tries to hotlink to a bigger image it will redirect him to the URL that I specify...

can this be arranged? maybe someone has a similar code premade..I'd appreciate that

mod_rewrite doesnt allow you to specify image size but you can use an external program that will

like whip up something in perl to check the file size and you could execute it from mod_rewrite.

Paul Waters 06-19-2004 08:45 AM

You should be able to find what you need on this site:

http://www.hahahahahahahahahahakit.c...htaccess.shtml

You want to block all hot linking in an .htaccess file in the root.

To allow for smaller files, using .htaccess, you must put them in directory, or tree, and allow hotlinking using another .htaccess file.

alexg 06-19-2004 10:03 AM

Quote:

Originally posted by Paul Waters
You should be able to find what you need on this site:

http://www.hahahahahahahahahahakit.c...htaccess.shtml

You want to block all hot linking in an .htaccess file in the root.

To allow for smaller files, using .htaccess, you must put them in directory, or tree, and allow hotlinking using another .htaccess file.

sounds like it's more complicated then i thought....
i'll tell you what i need this for..

for a domain that i have tgp galleries on, i want to block hotlinking so that russian fucking porn sites won't hotlink my pics..
i want to allow small ones, because certein tgp's hotlink your thumb for a gallery...thumbs are less then 10k most of the time, and big pics are more then 10k, so i thought about this solution, but if it's too complicated, i'd have to think of something else


All times are GMT -7. The time now is 05:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123