Dukascopy
 
 
Wiki JStore Search Login

Standalong API Demo IP based filtering?
 Post subject: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Thu 09 Nov, 2017, 22:44 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I noticed that Dukascopy.com presented me with a complex Captcha challenge
when accessing the home page at Dukascopy.com from my VPS server,
when simply using Mozilla Firefox browser.

Also, I am receiving an HTTP 403 when JForex Standalone API is trying to fetch url:
https://www.dukascopy.com/client/demo/j ... forex.jnlp

My API library versions may not be up to date, and perhaps that is part of
the issue.

I'm guessing my originating IP is being rejected by the webserver IP filtering
and returning an HTTP 403 status?

Any information or ideas on this? Thank you !

hyperscalper


 
 Post subject: Re: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Fri 10 Nov, 2017, 05:41 
User avatar

User rating: 5
Joined: Thu 04 Aug, 2016, 04:51
Posts: 61
Location: CanadaCanada
Hello HyperScalper,

I am not an expert here but let's give a try to my suggestion if it will work:
- Open your Firefox browser settings and go to "Network" tab.
- Next, look for "Connection Settings",
- If "'Auto-detect proxy settings......." is active then change it to "No Proxy".

If the above suggestion do not work or the settings are set to "No Proxy" in your Firefox, then do as following:
- Open the Java Control Panel and check the "Network Settings" there.



Good Luck!


 
 Post subject: Re: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Fri 10 Nov, 2017, 07:38 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I did some more checking, and from my VPS in Amsterdam
hosted by SeedVPS, my Windows 2008 R2 Server, it does
NOT block the browser.

However, on my dedicated Centos Linux box hosted by
ServerPronto in Miami, FL using Firefox when I clear the
cookie cache, https://dukascopy.com always presents a very
challinging Captcha like "click the ones with pictures of
cars..." and as soon as I pass that test, then I get access
to the site.

Clearly it uses a cookie, since...
If I clear the browser cookie cache; I get promped yet again. I made sure
the network settings were set to No Proxy in Firefox.

It seems Dukascopy is using Cloudflare to act as a DDOS or
similar front-end and is detecting what it thinks are suspect
spammers or some such thing.

I guess this is mostly likely not posted in the right place to
get an answer to this; but my issue is not with the Browser.
Instead, it is with connecting and launching the Standalone
JForex API using the Demo link. That's the one that rejects
and returns an HTTP 403 code.

I'm looking at upgrading my runtime jars to more recent code,
and maybe that will help.

Attached is part of the Captcha image, identifying Cloudflare...

hyperscalper
Image


Attachments:
CaptchaOnDukascopyCom.PNG [28.94 KiB]
Downloaded 257 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Fri 10 Nov, 2017, 08:40 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
When attempting to fetch this from the Linux command line,
I get 403 Forbidden, presumably due to the Cloudflare
IP blacklisting of my IP address?.....

[brent@www apps]$ wget https://www.dukascopy.com/client/demo/j ... forex.jnlp
--2017-11-10 02:34:44-- https://www.dukascopy.com/client/demo/j ... forex.jnlp
Resolving www.dukascopy.com... 104.20.189.23, 104.20.188.23, 2400:cb00:2048:1::6814:bc17, ...
Connecting to www.dukascopy.com|104.20.189.23|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-11-10 02:34:44 ERROR 403: Forbidden.

I submitted a request to [email protected] to see whether this is
in fact what is happening.


 
 Post subject: Re: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Sat 11 Nov, 2017, 18:29 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
When attempting to start the JForex platform,
I get:


Image

Looks like I will have to set up a VPN to bypass either the incompetency of the webmaster...?
This is a non-trivial task on Centos Linux but I have the weekend to do that...

hyperscalper


Attachments:
JForex-403-Forbidden.PNG [16.68 KiB]
Downloaded 262 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Standalong API Demo IP based filtering? Post rating: 0   New post Posted: Mon 13 Nov, 2017, 08:40 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
If I were uncivilized, I would be posting some
very nasty words !!! I was forced to use a secondary
IP address on my Centos Linux box, and to have that
as the external IP address to UNBLOCK my access
to the JForex demo.

The CloudFlare near monopoly, which Dukascopy is
using to help protect its website, blocked my IP,
probably by accident or as part of an IP range; and
there seems to be no remedy for this. So I can
connect again, after hours of trying to figure it out.

I wrote this to [email protected]

As you DID NOT HELP ME AT ALL... I was forced
to get an alternate IP address which is
NOT BLOCKED by your CloudFlare front-end
and so I am able to connect again.

This exercise took me at least 8 hours work !!!

PLEASE can you get CloudFlare to UNBLOCK
the original IP address 64.251.13.148 .
I am NOT a spammer, and it is totally
unfair that these third parties like CloudFlare
can totally block legitimate requests.

hyperscalper


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com