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:
$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:
$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.
11 freelancere byder i gennemsnit $66 på dette job
There is an option in cURL to get the last redirected URL. I created a prototype here: [login to view URL] It shows the redirected random URL and you can click it to visit.