[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-04-2006, 01:55 PM   #1 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Talking Disable access from a website...

Hello everyone,

I run an image hosting site, and there is one perosn who can't help but upload huge amounts of porn taking up tonnes of bandwidth... Ive tried banning his IPs but he must be using proxy websites now.

Does anyone know a way to disallow his site to use images off my site on his site. Like hotlink protection, only in CPanel Hotlink protection asks you to enter a list of ALLOWABLE sites, not banned sites...

Anyone know a way through probably .htaccess or something?

Thanks! 100NP$ in it for whoever can help out (thats all I have lol).

Regards, RHett.
BillyConnite is offline  
Old 02-04-2006, 02:46 PM   #2 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?site\.com/ [NC]
RewriteCond %{HTTP_REFERER} ^http://site\.com/ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [NC, F]
Something like that..
__________________

Last edited by SecondVersion; 02-04-2006 at 02:51 PM.
Eric is offline  
Old 02-04-2006, 09:43 PM   #3 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Hey SecondVersion,

You legend :P. Well it didnt work at first, but i just googled it and something 99% the same did the trick so NP$ sent, thanks once again .

Youve saved me around 200gb b/w a month lol

Regards Rhett.
BillyConnite is offline  
Old 02-04-2006, 09:53 PM   #4 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Lol, Cool. No problem and thanks Glad you got it sorted
__________________
Eric is offline  
Old 02-04-2006, 10:01 PM   #5 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Quote:
Originally Posted by BillyConnite
Hello everyone,

I run an image hosting site, and there is one perosn who can't help but upload huge amounts of porn taking up tonnes of bandwidth...
lol.. That is why you go into the image hosting business in the first place (Nice porn) LMAO..

I am glad you got a fix.

- Steve
__________________
I feel old.
iNod is offline  
Old 02-04-2006, 10:19 PM   #6 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Quote:
Originally Posted by iNod
Quote:
Originally Posted by BillyConnite
Hello everyone,

I run an image hosting site, and there is one perosn who can't help but upload huge amounts of porn taking up tonnes of bandwidth...
lol.. That is why you go into the image hosting business in the first place (Nice porn) LMAO..

I am glad you got a fix.

- Steve
LOL

BUT it comes at a price... bandwidth!!!
BillyConnite is offline  
Old 02-04-2006, 10:23 PM   #7 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Btw...what is the working version? lol, want to see what I got wrong
__________________
Eric is offline  
Old 02-05-2006, 03:28 AM   #8 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Hey SV, here's what im using now, almost identical to yours :P:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?kimbinhmai\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?kimbinhmai\.com/ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ images/nohotlink.jpg [L]
Notice how both links have the www. in them, will i need to add this to make sure that it cannot be hotlinked from the domain without www. too do you think?:
Code:
RewriteCond %{HTTP_REFERER} ^http://(\.)?kimbinhmai\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(\.)?kimbinhmai\.com/ [NC]
Thanks!
Regards, Rhett.
BillyConnite is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why should I start a Website up? northtrex Web Hosting Discussion 2 05-26-2005 10:35 AM
A Beginner's Guide to Securing Your Server Part 1 of 3 (Security Inside WHM/CPanel) 000000000 Webmaster Tutorials 7 10-09-2004 01:17 PM
Why should I start a Website up? northtrex Web Hosting Discussion 1 10-07-2004 05:51 AM

Site Sponsors
Advertise your business at NamePros

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


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85