| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
![]() | 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. |
| |
| | #2 (permalink) |
| NPQ's PA, Slave, and On Call Coder Technical Services | 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]
__________________ Last edited by SecondVersion; 02-04-2006 at 02:51 PM. |
| |
| | #5 (permalink) | |
| Eating Pie | Quote:
(Nice porn) LMAO..I am glad you got a fix. - Steve
__________________ I feel old. | |
| |
| | #6 (permalink) | ||
![]() | Quote:
![]() BUT it comes at a price... bandwidth!!! | ||
| |
| | #8 (permalink) |
![]() | 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]
Code: RewriteCond %{HTTP_REFERER} ^http://(\.)?kimbinhmai\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(\.)?kimbinhmai\.com/ [NC]
Regards, Rhett. |
| |
![]() |
| 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 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 |