Mikhail Lyalin2018-12-03 13:25:39
Partnership programs
Mikhail Lyalin, 2018-12-03 13:25:39

Affiliate links ozon.ru - checking and correcting links from your site - automation?

On his site there are a large number of affiliate links to ozon.ru from different pages.
Once again, after changing links to categories on Ozon.ru, etc. the question arose of how to automate the verification of affiliate links, tk. many links give out already on Ozon.ru either a general category (for example, Books instead of the former subheading) or "Sorry, there is nothing for your request."
Are there any ways to automate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Anton Shamanov, 2018-12-03

$headers = @ get_headers($url, 1);
if (is_array($headers)  && $headers[0] == 'HTTP/1.1 200 OK') {
   // все ок

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question