OK Services Verification
A number of OK’s services can access your servers:
- web grabber - to acquire page’s meta information and to cache media data;
- BOT API - to send service information about events you’ve subscribed to;
- in-game payments - to validate in-game payments.
We recommend to verify these requests by checking following data:
- IP address;
- User-agent.
Web Grabber
A component that serves to load previews for external and internal links. For external links, whenever possible, information from the open graph tags specified on the page (title, descr, images\video) is used, for references to internal objects, the internal representation is used (in the form of specialized blocks in the topic). A plugin system is supported for a number of external links (such as YouTube, Instagram) instead of using og markup
User-agent:
Mozilla/5.0 (compatible; OdklBot/1.0 like Linux; klass@odnoklassniki.ru)
List of possible IP addresses:
- 185.16.150.104/30
- 185.16.150.172/30
- 185.16.150.212/30
- 185.16.150.202/31
BOT API
Service for direct communication between the user and the OK group, implemented as part of the Graph API. Group moderators can respond to users in the full version of the site, or with an automated bot using the Bot API.
All methods currently implemented in the Graph API are available for use as a Bot API. That is, with the help of a bot you can: - keep track of new messages in your group chats using special Webhooks; - Reply to users on their messages in group chats.
List of possible IP addresses:
- 217.20.145.192/28
- 217.20.151.160/28
- 217.20.153.48/28
Payments in games
Games published on out platform can be monetized using in-game payments.
As a part of a payment process it must be validated: our service will request your payment callback service to verify if payment is valid. Payment is processed if your server validated it as correct.
User-agent:
Mozilla/5.0 (compatible; OdklApiBot/1.0 like Linux; api-support@ok.ru)
List of possible IP addresses:
- 217.20.145.192/28
- 217.20.151.160/28
- 217.20.153.48/28
Getting information about IP addresses of services OK
To work correctly with OK services, you need to add a list of addresses to the white list of the system if it somehow validates external resources.