Pre CFMX days, I wrote a CFX tag for adding and deleting debugging IP addresses without needing ColdFusion Administrator access. That tag simply manipulated the registry, and obviously it will not work with CFMX (which thankfully no longer uses the registry to store those settings). So, after some frustration yesterday and not being able to get to a ColdFusion Administrator when I needed to, I wrote a ColdFusion Component that allows you to list, add, and delete IP addresses from the debugging IP address list, without needing any access to the ColdFusion Administrator. Here is the code for debugip.cfc:
Usage is simple, to add your current IP address you could do the following:
Or use the CFC as an object:
Enjoy!
Leave a Reply