Use cURL to Obtain a Redirected URL and Store it in a Variable for Use on an Adult-Oriented Website

Completado Publicado hace 6 años Pagado a la entrega
Completado Pagado a la entrega

I have recently begun working on an adult-oriented website, www.smutscout.us. This website is designed around the idea of allowing visitors to view random adult videos from their favorite adult websites, such as [login to view URL], [login to view URL], [login to view URL], etc. To accomplish this goal so far, I have manually downloaded video identification numbers from the aforementioned sites, used PHP to manually store these numbers into arrays as strings, and then used PHP to echo a random string into a prewritten iframe code.

For example, for Pornhub, I would have something like the following:

<?php

$phrand = array(“1234”, “2345”, “3456”);

?>

<iframe seamless="seamless" src="[login to view URL]<?php echo $phrand[array_rand($phrand)]; ?>" allowfullscreen></iframe>

Here, Pornhub’s video identification number is a line of digits that appears at the end of their website URL. I tell PHP to take a random string of these digits and echo it into an iframe.

For Youporn, I would have something like this:

<?php

$yprand = array(“1234/this-is-an-example/”, “2345/this-is-another-example/”, “3456/this-is-the-last-example/”);

?>

<iframe src='[login to view URL]<?php echo $yprand[array_rand($yprand)]; ?>' frameborder=0 height='364' width='608' scrolling=no name='yp_embed_video' allowfullscreen></iframe>

Here, Youporn’s video identification “number” is a line of digits followed by the title of the video. For me, this is all in included into one string which I tell PHP to echo into an iframe.

Recently, I have noticed that both Pornhub and Youporn have URL redirects that allow viewers to type them into their browsers and be sent to a random video on the site. They are [login to view URL], and [login to view URL] Having access to these redirected URLs would allow me to stop manually writing arrays.

Therefore, I would like to hire someone who could use cURL in PHP to retrieve the redirected URLs from the aforementioned URLs so that I could store these redirected URLs into a variable which I could then modify to be used in an iframe.

To be clear: going to [login to view URL] for example would redirect you to [login to view URL], [login to view URL] would redirect you to [login to view URL] I want a script that can give me these redirected URLs.

cURL HTML PHP

Nº del proyecto: #16444786

Sobre el proyecto

10 propuestas Proyecto remoto Activo hace 6 años

Adjudicado a:

amjohn

Greetings! I'm a full-time, full-stack PHP developer with 7+ years of web development experience. i read your whole description and also check that pornhub random link. yes i can get the video from that link and di Más

$100 USD en 2 días
(64 comentarios)
7.3

10 freelancers están ofertando un promedio de $67 por este trabajo

travisyates31

Hi AS php expert I am very glad to see your post I can help you well if you give me your project. I have deep experience in CURL in php for scrap web sites. Please feel free contact me I can finish your project in Más

$100 USD en 10 días
(27 comentarios)
5.3
Maclean007

Greetings!!!!!!! from Maclean Technologies Private Limited. Hello Dear Client, We have an experience more than 3 years with our domestic clients. We provide our best quality, assurance of project-delivery within ex Más

$61 USD en 10 días
(1 comentario)
0.0