Remote linking/bandwidth problem

Post anything that doesn't belong in any other forum, including gaming and topics unrelated to motorsport. Site specific discussions should go in the site feedback forum.
manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Remote linking/bandwidth problem

Post

Hi guys,

My personal/amateurish f1 fakery site is becoming too popular and not even the googlepages server can provide sufficient bandwidth.

"The bandwidth or page view limit for this site has been exceeded"

In less than a month number of web pages that link to my site has increased for 200 (altogether over 400 sites, forums, blogs...).

http://www.google.com/search?q=f1manchild

What I'd like to do is prevent remote linking of pics but I'm not sure what's the best way. I'd also like to add some script to track how many people have seen pictures inserted in forums (if possible).

Is anyone here familiar with this problem? Any suggestions?

Thanks in advance.

modbaraban
modbaraban
0
Joined: 05 Apr 2007, 17:44
Location: Kyiv, Ukraine

Post

"The bandwidth or page view limit for this site has been exceeded"
that's what I bumped into yes2day. :?

About the way to prevent it:
I'm not sure how the do it, but check this hotlinked picture from Sniff Petrol:

Image
http://www.sniffpetrol.com/wp-content/u ... hers04.jpg

I suppose what u see is "bandwidth costs bloody fortune...", right?

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

modbaraban wrote:I suppose what u see is "bandwidth costs bloody fortune...", right?
No I see fake Schumachers pic saying "Hiedfeld is very good..."

modbaraban
modbaraban
0
Joined: 05 Apr 2007, 17:44
Location: Kyiv, Ukraine

Post

Looks like they don't have it anymore. there was a sort of a system that used to make people reupload pics instead of hotlinking. Everytime you hotlinked a pic you get an image saying "bandwidth costs bloody fortune, so no more hotlinking!" :wink:

Maybe you can adapt such a thing for your site. Also I'll check if I hotlinked any images from your site (sorry if I did :oops: ) and replace them with normal links or upload.

PS: and btw, Nick is good indeed :lol:

cheers.

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

I've tried with .htaccess file. Hope it works. Script had www in

RewriteCond %{HTTP_REFERER} !^http://(www\.)?f1manchild.googlepages.com/.*$ [NC] so I just removed www. Is that ok since googlepages don't have www?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(\.)?f1manchild.googlepages.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://f1manchild.googlepages.com/hotlinking.jpg [R,L]
Last edited by manchild on 03 Aug 2007, 15:32, edited 1 time in total.

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

All of you who are perhaps linking avatars directly from my site please upload them to another location because I'm inserting replacement pic.

Thank you.

User avatar
Tom
0
Joined: 13 Jan 2006, 00:24
Location: Bicester

Post

Sorry MC, partly my fault, I thought I'd uploaded mine ages ago but i just realised that I'd been running it off your site the whole time :oops:
Very sorry.

Anyone whos not sure, Manchild will have e-mailed you the 'negative' original of your avatar, you then save this to your computer and upload it on a photobucket/imageshack acount, copy the URL from there and paste it in the avatar section under 'profile' at the top.
Murphy's 9th Law of Technology:
Tell a man there are 300 million stars in the universe and he'll believe you. Tell him a bench has wet paint on it and he'll have to touch to be sure.

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

Tom wrote:Sorry MC, partly my fault, I thought I'd uploaded mine ages ago but i just realised that I'd been running it off your site the whole time :oops:
Very sorry.

Anyone whos not sure, Manchild will have e-mailed you the 'negative' original of your avatar, you then save this to your computer and upload it on a photobucket/imageshack acount, copy the URL from there and paste it in the avatar section under 'profile' at the top.
Tom, sorry, its not because of you or other f1t members. Many people have directly linked my fake pics to hundreds of locations on the web. That's causing the problem. 400 locations X lets say 100 forum members per forum X 100 KB per pic = too much traffic.

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

I've tried 4 different generated scripts and non of them seams to be working :cry:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://manchild.on.neobee.net/hotlinking.jpg [R,NC]


Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://manchild.on.neobee.net/hotlinking.jpg [R,NC]


Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://manchild.on.neobee.net/hotlinking.jpg [R,NC]


RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://manchild.on.neobee.net/hotlinking.jpg [R,NC]

User avatar
Ciro Pabón
106
Joined: 11 May 2005, 00:31

Post

What about:

# BLOCK *Faked* blank referer
RewriteCond %{HTTP_REFERER}<->%{HTTP_USER_AGENT} ^-<->¦<->-$
RewriteRule .* - [F]
#
# BLOCK blank referer
RewriteCond $1 !^favicon\.ico$
RewriteCond %{REQUEST_METHOD} !^HEAD$
RewriteCond %{REMOTE_ADDR} !^216\.71\.84\.181$
RewriteCond %{HTTP_REFERER}<->%{HTTP_USER_AGENT} ^<->$
RewriteRule (.*) - [F]

?

This blocks blank AND faked blank referrerers. This way FF users cannot avoid to be screened. And, yes, you have to use your adress "as-is", do not add www.
Ciro

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

Ciro Pabón wrote:What about:

# BLOCK *Faked* blank referer
RewriteCond %{HTTP_REFERER}<->%{HTTP_USER_AGENT} ^-<->¦<->-$
RewriteRule .* - [F]
#
# BLOCK blank referer
RewriteCond $1 !^favicon\.ico$
RewriteCond %{REQUEST_METHOD} !^HEAD$
RewriteCond %{REMOTE_ADDR} !^216\.71\.84\.181$
RewriteCond %{HTTP_REFERER}<->%{HTTP_USER_AGENT} ^<->$
RewriteRule (.*) - [F]

?

This blocks blank AND faked blank referrerers. This way FF users cannot avoid to be screened. And, yes, you have to use your adress "as-is", do not add www.
Thanks Ciro, but I think that googlepages server isn't supporting htaccess at all. BTW, what's that 216\.71\.84\.181 IP address?

User avatar
Ciro Pabón
106
Joined: 11 May 2005, 00:31

Post

Sorry, MC, I just copied and pasted the code. I should've explained:

That line is to allow your own server to access your own images. It should be your own IP adress, or any adress to which you wish to allow to access your files. You could also write your own adress giving your own http name. For example, if your server name were http://cumbia.invias.gov.co (like in my case), you could write:

RewriteCond %{REMOTE_ADDR}!^cumbia\.invias\.gov\.co$[NC]

You can use both lines to guarantee that when people access your server, either by name or by IP they cannot hotlink.

I should also say that you should replace broken pipes, that is "¦", for continuous pipes, that is "|".

Finally, I believe htaccess only works on Apache servers. Also, it is mandatory for the .htaccess file to have executable permission. This means you have to use FTP to access the directory and use the CHMOD command in Unix to change your permissions to -755 or 0755. If you wish to read a little, you can check here: http://www.htaccess-guide.com/index.php?a=1

Item number 8 describes the hot-linking avoidance techniques.
Ciro

manchild
manchild
12
Joined: 03 Jun 2005, 10:54

Post

I don't know is this getting better or worse...
manchild wrote:Posted: Fri Aug 03, 2007
In less than a month number of web pages that link to my site has increased for 200 (altogether over 400 sites, forums, blogs...).
And now this: Tue Aug 14, 2007
Google wrote:Results 1 - 10 of about 572 for f1manchild
No wonder site is down almost all the time.