Sending post reply with images from obrazkelektroda.eu = very long response time

Started by krzy, June 19, 2018, 01:16:18 pm

Previous topic - Next topic

krzy

I often upload images which will be attached to post to https://obrazki.elektroda.pl/
This is very good site which allows direct linking to the images with thumbnails and I use it since many many years.

But since some time, when I respond on this forum to any post and attach images, for example:

[url=http://obrazki.elektroda.pl/9560129100_1496602879.jpg][img]http://obrazki.elektroda.pl/9560129100_1496602879_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/9368560300_1496602881.jpg][img]http://obrazki.elektroda.pl/9368560300_1496602881_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/2470718000_1496602883.jpg][img]http://obrazki.elektroda.pl/2470718000_1496602883_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/6660570700_1496602885.jpg][img]http://obrazki.elektroda.pl/6660570700_1496602885_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/7760701000_1496602887.jpg][img]http://obrazki.elektroda.pl/7760701000_1496602887_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/8572866300_1496602889.jpg][img]http://obrazki.elektroda.pl/8572866300_1496602889_thumb.jpg[/img][/url]

,
after pressing  "POST", the spinning icon just stays for a few minutes and after that time I got:

https://obrazki.elektroda.pl/4104904400_1529439305.png

This is not the problem with obrazki.elektroda.eu, Looks more like the forum's engine try to visit the links and maybe it gets DDOS ban?

UglyJoe

Thanks for the example images.

Yeah, I see that even the Preview features takes forever to come back (if it comes back at all).  I'll try to look into what the forum code is doing tonight after work.

krzy

I did small test meanwhile - I started my own www server, put few images on it and created a post with [img] links to those images.
After pressing post, for each [img] photo I got HTTP fetch response from:
208.113.153.236 (it is famicomworld server)
52.44.20.169 ( ? ? ? )
and my IP
So looks like the forum engine tries for unknown reason to get those images and if somebody put a lot of images in his post, those many request were probably reason of ban fromelektroda.eu.

I did similar test on other forum on phpBB engine and it did not want to connect to my server for images so looks like famicomworld is spying on us :D

UglyJoe

Yeah, I figured the server was trying to grab the image.  Until I get a chance to look at the code all I can do is guess as to why.

My guesses:

1) Some kind of scan that is checking to see if the URL is valid / a valid image.

2) The Tapatalk plugin being sneaky and annoying.

Post Merge: June 20, 2018, 08:11:31 pm



Bingo :pow:

Post Merge: June 20, 2018, 08:28:57 pm

So the forum software has a method that will download the image so that it can determine its dimensions (which seems...a bit wasteful, honestly).  The code has a built-in timeout of 0.5 seconds, which is nice, but there are conditions which will break it. 

You have a url: http://obrazki.elektroda.pl/9560129100_1496602879_thumb.jpg

It tries to look up this image, but the image server redirects you to an "https" address.  This protocol switch is apparently not handled.

The proper solution would be to figure out how to make it handle this case gracefully.  However, this is PHP code and it's getting late here, so instead I just updated the method to ignore URLs from the elektroda.pl domain.  Seems to work  ;D

Alternatively, you could have used the https address instead of the http address.

VegaVegas

Seriously though, despite all advantages, Polish servers suck. Just use imgur.com or anything similar on a global scale

fcgamer

*facepalm*  I had mentioned this whole situation back a month ago, here:

https://www.famicomworld.com/forum/index.php?topic=14050.0

Like krzy said though, this is definitely a newer issue to have come up, with a more recent code update / modification I presume, since I had been using dozens of photos from there for months, linked to single posts, without issues up until about April or May.
Family Bits - Check Progress Below!

https://famicomfamilybits.wordpress.com

UglyJoe

Quote from: fcgamer on June 21, 2018, 09:31:03 am
*facepalm*  I had mentioned this whole situation back a month ago, here:


Sorry.

Quote from: fcgamer on June 21, 2018, 09:31:03 am
Like krzy said though, this is definitely a newer issue to have come up, with a more recent code update / modification I presume, since I had been using dozens of photos from there for months, linked to single posts, without issues up until about April or May.


The image server must have only recently (in the past few months) have started to redirect all http requests to https.  The forum code here doesn't change very often (just the occasional security patch).

krzy

Quote
The image server must have only recently (in the past few months) have started to redirect all http requests to https.  The forum code here doesn't change very often (just the occasional security patch).

https://www.famicomworld.com/forum/index.php?topic=14022.0

This is my post from march 2018, it contains images with https but I had no issue uploading it, so are you sure that is the problem?

UglyJoe

The issue is that the http URLs are now being redirected to https URLs by the image host.  (The example images you gave me in the first post are http, not https).  The redirect was breaking the code that fetches the image to get the dimensions.