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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-19-2004, 06:25 AM   #1
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 06:27 AM   #2
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 06:31 AM   #3
polish_aristocrat
Too lazy to set a custom title
 
Join Date: Jul 2002
Posts: 40,377
u got an innovative sig
__________________
I don't use ICQ anymore.
polish_aristocrat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 06:36 AM   #4
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
Quote:
Originally posted by polish_aristocrat
u got an innovative sig
click it
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 07:31 AM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 08:45 AM   #6
Paul Waters
Confirmed User
 
Paul Waters's Avatar
 
Join Date: Mar 2003
Location: Toronto, Ontario
Posts: 4,402
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.
__________________


Paul
Paul Waters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2004, 10:03 AM   #7
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.