NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Disable access from a website...

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-04-2006, 02:55 PM THREAD STARTER               #1 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


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, 03:46 PM   #2 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
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 03:51 PM.
Eric is offline  
Old 02-04-2006, 10:43 PM THREAD STARTER               #3 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


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

You legend . 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, 10:53 PM   #4 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Lol, Cool. No problem and thanks Glad you got it sorted
Eric is offline  
Old 02-04-2006, 11:01 PM   #5 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
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
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..
????: NamePros.com http://www.namepros.com/programming/164493-disable-access-from-a-website.html

I am glad you got a fix.

- Steve
__________________
I feel old.
iNod is offline  
Old 02-04-2006, 11:19 PM THREAD STARTER               #6 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Originally Posted by iNod
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, 11:23 PM   #7 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Btw...what is the working version? lol, want to see what I got wrong
Eric is offline  
Old 02-05-2006, 04:28 AM THREAD STARTER               #8 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


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

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?:
????: NamePros.com http://www.namepros.com/showthread.php?t=164493
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why should I start a Website up? northtrex Web Hosting Discussion 2 05-26-2005 11: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 02:17 PM
Why should I start a Website up? northtrex Web Hosting Discussion 1 10-07-2004 06:51 AM
.........For Sale......For Sale............For Sale....... johnn Domains For Sale - Make Offer 0 01-28-2004 07:18 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:57 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger