![]() |
![]() |
![]() |
||||
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: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Hotlinking Punishment
Some nice code from a good friend of mine.
.htaccess: RewriteEngine on RewriteRule ^(.*)\.gif$ /punisher.php?file=$1.gif [L] punisher.php: ? $localsite = "yoursitename.com"; $ref = getenv("HTTP_REFERER"); if ($ref != "" & !preg_match("/$localsite/i", $ref)) { header("HTTP/1.0 302"); header("Location: $ref"); } else { /* This doesn't work for some reason */ header("Content-Type: image/gif"); @readfile("$file"); } ?> What this will do is automatically img src a hotlinkers entire site. Obviously you need to add < before the first ? mark Enjoy.. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Industry Role:
Join Date: Aug 2003
Location: QWEBEC Corporate Office
Posts: 7,124
|
Thanks we'll try that
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Traffillionaire
Industry Role:
Join Date: Jan 2002
Location: ICQ:209371571
Posts: 22,430
|
sweeeeeeet
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: MetroCity
Posts: 3,181
|
hehe nice but it is illegal to do that though
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
When you test the code, it does not appear to work.. funny thing is keep checking the image source properties
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
Definately a backwards society |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jun 2002
Location: Da Swamps
Posts: 8,500
|
Quote:
__________________
Oxeo - Serious Hosting For Serious Webmasters. iCQ:135.887013
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: MetroCity
Posts: 3,181
|
Quote:
Technically, yeah he can sue you. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
So Fucking Banned
Join Date: Nov 2003
Location: MidWest
Posts: 3,471
|
just replace the hotmilnk image with somthing creative!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Feb 2003
Posts: 7,340
|
.. hmmm
RewriteRule ^(.*)\.gif$ /punisher.php?file=$1.gif [L] That bit is the only bit that I find a bit wrong, what if someone is hotlinking say x.com/images/x.jpg Would it not try to access x.com/images/punisher.php? Correct me if i'm wrong it looks like a great script and I can't programme for shit just trying to clear this up ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
But that doesn't work with Mozilla!
![]() jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
It does work with people using IE, I'm not able to load the image on www.jdogsbitches.com from the other domain gallys.ezfreeporn.net but in Mozilla it will allow me to do it!
This is the hard part of referrer based hotlink protection! And that is what the hard part of hotlinking movies is, that WMP opens them with no referer at all! ![]() ![]() jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Quote:
jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Dec 2002
Location: Chandler, AZ
Posts: 1,089
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Quote:
jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Join The Royal Family
Join Date: Apr 2002
Posts: 25,463
|
Don't do anything illegal, just redirect his hotlinking traffic to your sponsor. Much more productive
![]() See Sig ![]()
__________________
Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos. With TOP RATIO Sites like ATMovs.com | iTeenVideo.com | TeenSexMovs.com | TeenSexMania.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Registered User
Join Date: Aug 2001
Posts: 6
|
That is a dangerous piece of code. What if I request:
http://hostname/punisher.php?file=/etc/passwd You guessed it! I can see all the valid users on your system. There are many other files I can see also. Please don't use this code!!! You should sanitize the vars before using them, or else you might get hacked ![]() If I hadn't seen the code, it wouldn't be as easy to snoop your system. But smart hackers/crackers will test a bunch of stuff to see what works. I hope everyone understands how serious this can be! I'd edit this post Mojo and remove the code before others use it. |
![]() |
![]() ![]() ![]() ![]() ![]() |