1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web traffic routing system.

Discussion in 'Black Hat SEO' started by beowulf, Mar 23, 2016.

  1. beowulf

    beowulf Newbie

    Joined:
    Oct 31, 2013
    Messages:
    33
    Likes Received:
    4
    Hi guys!

    Not sure if this is the right place to post about this, but mods please move the adequate forum if needed.

    I need a web traffic router, and by router I mean, a script or a service that I can run in a server to route (redirect) traffic to different links according to certain conditions and rules. Some of the rules would be defined by origin of the traffic, the IP geolocation, the amount to send to a link, the time, etc.

    Is there any decent system that does this?

    I have seen some scripts, but they are static, very basic and feature limited.
    If there's nothing decent, would it worth putting efforts on developing it? Would there be a market for it?

    As I've been a developer for many years and have the skills and resources to develop something if there's nothing out there to do what I need, and knowing that it could sell is also a major motivator to do it. I have been thinking to develop a fast and dynamic system that could run as a service with high performance in a small VPS with database and web interface to input links and set the rules. However, do it only for my use wouldn't be a good investment of my time if there's already something out there or if it wouldn't sell.

    Any advice or opinions on this matter would be much appreciated.
     
  2. jamie3000

    jamie3000 Supreme Member

    Joined:
    Jun 30, 2014
    Messages:
    1,311
    Likes Received:
    586
    Occupation:
    Finance coder looking for semi-retirement
    Location:
    uk
    I'm planning on making something like this within the next few months, had one that does GEO redirects to different amazons before, its pretty simple :)
     
  3. beowulf

    beowulf Newbie

    Joined:
    Oct 31, 2013
    Messages:
    33
    Likes Received:
    4
    Thanks for feedback @jamie3000.
    Are you planning to use any external service for the geoip determination? Or are you using a geoip database?
    It is not a complicated thing, but once at it I would like to make it up for performance, standalone, fully dynamic and with a web based management interface.
    What about joining forces and develop a product for sale? Ever thought about that?
     
  4. Galleta

    Galleta Regular Member

    Joined:
    Dec 7, 2015
    Messages:
    270
    Likes Received:
    88
    .htaccess?
    iptables?
    round robin DNS maybe?
     
  5. beowulf

    beowulf Newbie

    Joined:
    Oct 31, 2013
    Messages:
    33
    Likes Received:
    4
    @galetta,
    .htaccess would be an option for a non dynamic solution but as it depends on the use of a webserver that would sacrifice performance.

    IP tables is complex to manage updates from a web interface, plus it would put the service security and integrity at risk everytime there's an update on records.

    RR DNS would be a good option if didn't want to place rules such as browser, referrer, etc.

    I'm looking to route tons of traffic, I would say even in the order millions per day, and per my requirements I guess the best option is to develop a script to run as a standalone service, loading the rules from a database.
     
  6. Galleta

    Galleta Regular Member

    Joined:
    Dec 7, 2015
    Messages:
    270
    Likes Received:
    88
    Hmm I see.
    Maybe hardware load balancer / firewall?^^ (Cisco or so)

    Then there is also Litespeed load balancing option, but also doesnt fit your description.
     
  7. towelfox

    towelfox Junior Member

    Joined:
    Jan 11, 2012
    Messages:
    173
    Likes Received:
    55
    I'm building something like that tomorrow for a local ad server. Should be ready soon but its part of a bigger suite that I'm not looking at releasing yet. Not fully sure how I want the logic to work but its not really too complicated and my initial implementation will be on geo, time of day and related content.

    I have countries, geogroups

    - every visitor has a country code which I grab either from maxmind database or cloud flare headers so that gives them a country.

    Every country either belongs to a specific geogroup or falls into a default group.

    Every piece of content/page belongs to either a category or a tag or both. It will also belong to a geogroup either directly or through some other relation (merchant, affiliate network etc)

    From that point it becomes very straightforward to route traffic based on your rules eg
    User comes from USA

    Serve advert from adgroup where belongs to dog crates category and geogroup is north america and has allowed time greater than 12:00 and less than 15:00 else serve some other ad from a fallback rule.

    Excuse my very non technical example but its just an insight into how I'm approaching it.
     
  8. beowulf

    beowulf Newbie

    Joined:
    Oct 31, 2013
    Messages:
    33
    Likes Received:
    4
    @towelfox, interesting.
    I guess that is not much different from what I plan to do. I intend to use this system to display ads to, I was even thinking about looking at opensource ads systems (OpenX for example) to see how they process the requests.
    Did you decide technicaly how are you going to accomplish it? Like, programming language, DB, platform, etc?
     
  9. loedown

    loedown Jr. VIP Jr. VIP

    Joined:
    Jun 29, 2009
    Messages:
    1,586
    Likes Received:
    496
    Home Page:
    I think thats called an .htaccess file bruh.