(1) Patent protection for any new software or code may be patentable if the software or code comprises at least one new and non-obvious element or step. Typically the software is broken down into a flow chart or algorithm (a series of steps performed by the software or code) and such flow chart or algorithm is analyzed to determine if a new and non-obvious element or step exists. First step is to diagram the series of steps of your algorithm (via a flow chart) from the view point of the network or a server/database and maintain such view point in the description, see How to Record your Invention. Second step is to capture or create mock screen shots of what a user sees in each step of the flow chart. Third step is to perform a patent search, see Patent Search Instructions on How to Perform a Search.
(2) Trademark protection for the name, logo, or graphic that identifies and distinguishes your software or code from others. You can and should use TM next to or in close proximity to your mark(s). TM simply means that you claim a common law right to the mark, which by virtue of your use you have a right to claim. As a reminder, use of ® is strictly prohibited until your application is completely approved and your mark is registered at the United States Trademark Office. In fact, improper use of ® is illegal and can be punishable by law. In addition, improper use can adversely affect trademark rights and registerability of a mark. Note the trademark must be used consistently to identify the goods or services being placed in commerce (for–sale). First step is to identify your mark, its goods or services description, and learn common mistakes in selecting a mark, see Trademark Information and Trademark Goods Services Description. Second step is to perform a trademark search, see Trademark Search Instructions on How to Perform a Search.