Giter VIP home page Giter VIP logo

Comments (9)

bebraw avatar bebraw commented on July 29, 2024

What sort of response would you expect?

The implementation is parallel (async.map). Or are you looking for something else specifically? We could cache the results for some time. That would help on the subsequent results.

Are you aware of an IP that each RBL blocks by design? This would help in testing.

from iptell.

abh avatar abh commented on July 29, 2024

At least in the olden days we'd blacklist 127.0.0.2 as one of the test IPs on RBLs. I'd be surprised if that's not still common.

from iptell.

abh avatar abh commented on July 29, 2024

For example

$ dig +short -t any 2.0.0.127.spamsources.fabel.dk
"Blocked http://www.spamsources.fabel.dk/ip/127.0.0.2"
127.0.0.2

from iptell.

bebraw avatar bebraw commented on July 29, 2024

@abh Thanks! Works perfectly. :)

from iptell.

bebraw avatar bebraw commented on July 29, 2024

@eamonnscu Just figured out what might have caused that delay you experienced. We are running the API on Heroku. By default they hibernate services. This means if the service hasn't been used for some time, it has to start it on request. Are you experiencing that 7s delay consistently?

from iptell.

chrisueland avatar chrisueland commented on July 29, 2024

good catch @bebraw.

from iptell.

chrisueland avatar chrisueland commented on July 29, 2024

the first request seemed quite slow (a few seconds- maybe 5) from chrome.

then it started to load fast...

Chriss-MacBook-Air:Downloads chris$ time curl http://api.iptell.io/v1/blacklisted/184.173.163.234
[]
real 0m0.660s
user 0m0.007s
sys 0m0.009s
Chriss-MacBook-Air:Downloads chris$ time curl http://api.iptell.io/v1/blacklisted/184.173.163.234
[]
real 0m0.319s
user 0m0.009s
sys 0m0.005s
Chriss-MacBook-Air:Downloads chris$ time curl http://api.iptell.io/v1/blacklisted/184.173.163.234
[]
real 0m0.289s
user 0m0.011s
sys 0m0.005s
Chriss-MacBook-Air:Downloads chris$ time curl http://api.iptell.io/v1/blacklisted/184.173.163.234
[]
real 0m0.344s
user 0m0.011s
sys 0m0.005s
Chriss-MacBook-Air:Downloads chris$ time curl http://api.iptell.io/v1/blacklisted/184.173.163.234
[]
real 0m0.302s
user 0m0.011s
sys 0m0.006s

from iptell.

chrisueland avatar chrisueland commented on July 29, 2024

as for the success message, maybe something saying that no blacklist entries were found. (right now it's an empty set)

from iptell.

chrisueland avatar chrisueland commented on July 29, 2024

Thanks!

from iptell.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.