DNN Traffic Redistribution HTTPModule
Create a DNN HTTP Module that will load and run before all of the other core HTTP Modules.
This module will be used to redistribute traffic to other portals.? It is basically a traffic reseller option so that any requests for one of the domains on the “source url list?? gets redirected to another url based on a simple algorithm.
Redirect Criteria:
You will have a database table that has a list of target url’s (other portals in that installation) and a column that has a “TrafficCount?? column.
The module would choose at random a url from the target url list that has a traffic count > 0.? When a request comes in for one of the source url’s it will redirect to that tartget url and reduce the traffic count for the target url by 1.? If there are no url’s that meet the criteria to send the traffic to then no redirect should take place the source url would be loaded.
Use stored procedures for adding the target url’s and updating the traffic count.? One of the stored procedures would be used when a portal owner purchases traffic.? It would add or update that target url and increase the TrafficCount for that URL by a variable such as @TrafficCount that would be passed in to the stored procedure.
You will also need to create the database tables.