Собственный прокси на PHP+cURL за 5 минут

На http://www.rucoder.ru нашел интересную информацию по поводу накрутки счетчиков на сайтах и тому подобного. Суть проста — на своем сервере сидит php-скрипт, который «заходит» на нужный сайт, считывает с него страничку и отправляет нам. Для этого дела используется библиотека cURL. Вот простой пример с RuCoder’а:

< ?php
    //Поехали!
    $handle = curl_init();
    //$url - куда путь держим
    curl_setopt($handle, CURLOPT_URL, $url);
    //Возвращаем результат
    curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
    //Пришли с гугла :D
    curl_setopt($handle, CURLOPT_REFERER, 'http://google.com/');
    //Ходим по редиректам
    curl_setopt($handle, CURLOPT_AUTOREFERER, 1);
    //наш прокси сервер в формате 127.0.0.1:8080
    curl_setopt($handle, CURLOPT_PROXY, $proxy_host);
    //Открываем страничку и пишем всё в переменную
    $data = curl_exec($handle);
    //закрываем сеанс
    curl_close($handle);
 
    echo $data;
?>

Я вот думаю — а что, если написать скрипт, который бы принимал параметры cURL от пользователя? Малюем небольшую формочку с полями «какой сайт посещаем» и «с какого реферера», куда вбиваем необходимые данные и наслаждаемся 🙂

1 898 комментариев

  1. Voters amended the state’s structure in Nov.
    2020 to allow retail sports betting in town limits of Deadwood,
    with those sportsbooks opening Sept. Retail sports betting is now out there at a
    number of Deadwood casinos by way of operators that include BetMGM and major slots operator
    AG Trucano. The modification proposed in Senate Joint Resolution 502 would
    allow South Dakotans to vote this Nov. 8 to legalize cell and online sports betting statewide through servers
    based mostly in the town of Deadwood. Mobile sports betting in South Dakota may very well be
    on the way in which beneath a constitutional modification proposed for the 2022 fall ballot.
    Mobile and online sports betting would be
    allowed both «within and outside town limits» of Deadwood under the proposal.
    But the servers processing bets would be situated in Deadwood.
    That amendment legalized sports betting in Deadwood
    particularly. It is unclear if the proposed
    amendment might meet a authorized problem, should
    it’s approved by lawmakers for the ballot this 12 months.

  2. Howdy are using WordPress for your site platform? I’m new to
    the blog world but I’m trying to get started and create
    my own. Do you require any coding expertise to make your
    own blog? Any help would be greatly appreciated!

  3. You really make it appear really easy with your presentation but
    I find this topic to be actually one thing which I
    believe I might never understand. It sort of feels too complex and very vast for me.
    I’m taking a look forward for your subsequent post, I’ll try to get the
    hold of it!

  4. Turkey Hair Expert provides high quality
    and safe hair transplant in Turkey at its contracted premier clinic,
    using the most advanced techniques and technologies. With a patient-centric and
    ethical approach, Turkey Hair Expert offers high-quality hair transplantation in Turkey with its experienced doctors and medical team.

  5. Скажите пожалуйста пожалуйста, каким способом мне лично
    оформить подписку на все ваши новшества?
    Мой сайт порно

  6. Права для управления ассенизатором специальный
    документ получение которого
    осуществляется в гостехнадзоре !
    Самостоятельное оформление требует долгого
    и сложного обучения, при этом нет гарантии что документ будет получен.
    С компанией права112 права на ассенизатор будут получены 100%, ведь оплата производится только после
    того как документ готов.

  7. Sculpey Bake Store Eraser Clay: Children might be thrilled to design real erasers with Sculpey Amazing Eraser
    Clay. For greater than 50 years, Polyform Merchandise Firm has helped bring innovation and
    creation to homes and communities all over America,
    by delivering the latest and best Sculpey polymer clay products.

    Sculpey Air Dry Clay: In contrast to our different
    polymer clay products, Sculpey Air dry clay does not require
    baking to harden. Bake Store Glow-In-The-Dark:
    Youngsters will probably be so excited to shape creepy creatures, aliens from outer area or recreate
    a night time sky with glow-in-the-darkish Sculpey. It is usually cheap,
    smooth and pliable, and Unique Sculpey is likely to be a
    fun choice for earthy initiatives or making
    simple shapes with children. Guide youngsters by means of
    the process: Kids shall be so excited to make a new craft with polymer clay,
    and they’ll look ahead to working on a project with you.

    With clay, children get to express their feelings and turn their
    thoughts and emotions into tangible objects.

  8. Всем привет! Хочу показать тебе отличное казино с лучшей отдачей Everum Casino!
    ТОП казино на гривны найдешь у нас!
    Дающие казино Украины и
    СНГ.

  9. Всем привет! Хочу показать самый крутой блог казино.
    Лучшие онлайн казино Украины у
    нас! Лучший онлайн рейтинг заведений

  10. I like the helpful information you provide in your articles.
    I’ll bookmark your blog and check again here frequently.
    I’m quite sure I will learn a lot of new stuff
    right here! Good luck for the next!

  11. Can I simply say what a relief to discover someone who really understands what they are talking about over the internet.
    You actually understand how to bring an issue to
    light and make it important. A lot more people must look at this and understand this side of the story.
    It’s surprising you are not more popular since you certainly
    have the gift.

  12. Hello! I realize this is sort of off-topic but I had to ask.
    Does building a well-established website such as yours require
    a large amount of work? I’m completely new to operating a blog however I do write
    in my journal on a daily basis. I’d like to start a blog so I can share my personal experience and thoughts online.
    Please let me know if you have any suggestions or tips for brand new aspiring blog owners.
    Thankyou!

  13. проверенные проститутки питера, реальные шлюхи спб с
    фотографиями

  14. Quitting smoking earlier than the age of 40 can prevent the chances of demise.
    It could further lead to a heart assault problem if not cured well timed.

    Overweight or obesity grow to be the premise of severe well being diseases like Most cancers,
    coronary heart disease, hypertension and might
    affect your intercourse life as nicely. Cut back the alcohol consumption, train regular especially relaxation activities like meditation & yoga and so on.,
    decrease down salt intake, say no to caffeine, tackle with your stress issues as soon as potential are the
    few basic tips which can provide help to to take care of your blood pressure degree.
    Meditation prevents extreme points like high blood pressure and depression. Meditation is a universally applicable medicine for any illness.
    There is no such thing as a such regulation that only ladies have to watch out about their psychological
    well being and practice meditation. Though, pricey men, it isn’t in any respect cool to say that «I do not need to visit a physician» or «I can bear this pain.» You need the precise stage of care and well being
    as required in different beings on the planet.

  15. I’m nonetheless undecided if you are alleged to learn it like this, so correct me if I’m
    incorrect). With this, xxx giochi porno I shall transfer on to «the nice».
    I suppose everybody by now is wondering what I might consider a great ero-gemu simply
    from how I wrote my previous two opinions. With the historical
    past on to the best way, I can now clarify the game itself.

    Hopefully, other firms can take a lesson from how Leaf
    handled Tenshi and might create works of similar or higher high quality, but solely time will tell.
    Only a few video games have earned their place within the
    strata of «the nice», since most are blown out of
    proportion by uneducated lots and firms planning to leech off the fans instead of
    bringing about an honest product. Aquaplus’ releases had been basically old Leaf video games that may very well be tailored for clean releases (that is, releases
    with out the ero scenes since they have been aimed
    for consoles). Not your commonplace completely happy ending,
    and given the environment of December, the japanese take shows
    that the big flashy miracles that we count on are represented by small favors and blessings in very heavy disguises.

  16. средства наружной рекламы отличаются большим разнообразием

  17. наружная реклама: что такое за формат, определение, особенности размещения, примеры

  18. For a few years, great household trip time-frame appeared to be expensive day spa timeframe.
    12 months upon going back to the united states from the large intense business trip to assist
    European union, I personally booked a friend to assist guide
    great regular day spa options and she featured us a exercise.
    For nearly any to acknowledge because if the actual day spa closes inside
    9pm so that you guide your 60 tiny session which frequently can start within 8pm, which often sole produces 10 minutes
    to construct showered along with dressed up to travel house.
    These represent the most frantic instances, that makes it
    much better ebook via seven days and via from privided you may.
    Nevertheless, you possibly can have a nice comprehensive time at the particular
    day spa despite the fact that taking considerably much less.
    Are you curious about a body therapy and even facelift?

  19. The wildfires are one more troubling climatic phenomena to strike the U.S.
    In mid-November, wildfires sprung up within the mountains
    close to the gateway to Rocky Mountain Nationwide Park, a
    place normally accustomed to snow reasonably than flames at this time of 12 months.
    Colorado saw unusually high levels of rain within the spring, however that has been followed by a punishing drought:
    since April 1, Boulder has obtained less
    than a quarter of its typical rain and snow over that 5-month time interval.
    Six folks were taken to hospital with burns said Kelli
    Christensen, a spokeswoman for UC Well being in Broomfield, talking
    to The Colorado Sun. Amongst those whose properties had been destroyed was a coach at
    Colorado University’s football crew, Mark Smith.
    We are potentially talking about over 500 properties lost,’ he said.
    We know that you’re involved about your own home and your belongings.

  20. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get got an shakiness over that you wish be delivering the
    following. unwell unquestionably come more formerly again as exactly the
    same nearly very often inside case you shield this increase.

  21. continuously i used to read smaller content that as well clear their
    motive, and that is also happening with this post which I am reading at this time.

    tsi

  22. Greetings! Very useful advice in this particular article! It’s the little changes which will make
    the most significant changes. Many thanks for sharing!

  23. My spouse and I stumbled over here coming from a different page and
    thought I might check things out. I like what I see so
    i am just following you. Look forward to checking out your web
    page again.

  24. Some corporations may extend a bottle of Champaign and
    others could give a few days of free parking. Below are a few tips to search out for while looking for airport parking.

    Due to this fact the greatest factor to do is to try to safe
    airport parking as quicly as you’ll be able to, this manner you’ll
    get hold of it at a decrease cost and keep away from the
    hassle of running around. 1.Many distinctive on-line reserving
    firms hold completely different values for the an identical parking time and
    date, you could possibly try to buy around and see who gives
    you the better offers. There are additionally some worth
    comparison internet sites which can try to test all the most effective
    offers out for you with one click on, therefore you only have to enter your data one time.
    Due to this fact find what they have to offer. If you end up occurring a protracted journey then you’ve to rush on the terminal to catch your flight on time.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *