Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: stop hotlinking from specific website  (Read 1651 times)
« on: December 01, 2004, 11:37:22 PM »
Junior Member
.rp Offline
Junior Member
Newbie

View Profile WWW
*
Posts: 34



i know i can use the option in cpannel, but i can only stop from all websites, and then add the ones i need
but what i need is to block just couple websites that uses A LOT of my bandwidth
here is the website i found http://altlab.com/htaccess_tutorial.html
but when i try to put this
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite\.net/ [NC,OR
RewriteCond %{HTTP_REFERER} ^http://(www\.)?badsite\.com/ [NC
RewriteRule \.(jpe?g|gif|bmp|png)$ images/nohotlink.jpg [L]


it gives me this error when i try to access my website

Code:

[B][SIZE=5]Internal Server Error[/SIZE][/B]
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@digo.ws and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


so how can i fix it?

p.s: here the website i want to block http://www.svalka.com.ru or http://svalka.com.ru

thnx
Report to moderator   Logged

 
« Reply #1 on: December 02, 2004, 02:26:33 AM »
TheDarkness
Guest

I would prefer using cpanel and enabling hotlink protection and add the sites you only wanted access to your images to the URLs to allow access field.
Report to moderator   Logged
« Reply #2 on: December 02, 2004, 05:13:46 PM »
Junior Member
.rp Offline
Junior Member
Newbie

View Profile WWW
*
Posts: 34



i would prefer that too, but the problem is, i got this cool flash gallery script and it doesn't work if i eneble this function in cpannel, its just doesn't show the pictures... i tried to add all the directories from my website - nothing helped...
Report to moderator   Logged
« Reply #3 on: December 02, 2004, 05:44:56 PM »
TheDarkness
Guest

You must have forgotten to add the extension of the flash to be protected and allowed.  cool
Report to moderator   Logged
« Reply #4 on: December 03, 2004, 01:26:40 PM »
Junior Member
.rp Offline
Junior Member
Newbie

View Profile WWW
*
Posts: 34



thnx
its working now
Report to moderator   Logged
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC