1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP ????? web server

Discussion in 'Black Hat SEO' started by morework, Oct 28, 2007.

  1. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    okay i was trying to find out does anybody know how to set up a web server? is there any free web servers?:)

    i have got a php mailer and i don't know how to set it up.:eek:
    i need to set it up so my ip will not be on the line,it will instead show the ip of the host i am using.

    can somebody please help:D
    not sure how php works.
     
  2. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    I'm assuming windows?

    www[dot]apachefriends[dot]org/en/xampp-windows.html

    Free windows server package. As for setting it up to hide your IP, you'll need proxies and open relays. That's a whole topic all together, one that takes quite a bit of technical sophistication to manage.
     
  3. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    No not that type of server. i mean a webhost that has its own server that i can use to connect my php mailer too.:)

    do you get it now?
    thans 4 your help, people i still need help.

    i need a website host that has its own server so it can be used to send out emails.
    i don't want my ip to be in danger.:confused:
    i am not sure how to use php mailer or set up.
     
  4. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    Oh, I gotcha. Well you'll need to buy a hosting account. Also do yourself a huge favor and use software that uses sockets to connect out, if it uses mail() you'll be too easily bottled up. Once you find a server that has PHP, just install the mailer. You might want to hire someone for it, all of this stuff gets very technical very quickly. For instance if the mailer isn't properly cached or doesn't work with the database in the right way the script instance can time out without sending very many.

    Once you get that going make sure it routes thru a relay. It won't be long, of course, until they track the IP back to your host... but by then your mailing will have been sent. There are ways to slow that process down, but again... technical. I suppose if your host account complains to your ISP... well, you get the idea there. So do yourself a huge favor and use a disposable dialup account when setting things up, or at the very least route thru a proxy so your original IP is never available.

    Anyway you won't get this for free. None of the big free servers give you anywhere near that access for exactly this reason... they don't want spammers on their service. It is quite possible to restrict mail(), php access and sockets access in such a way that spam is... well, pointless.

    Most spammers don't send mail like this anymore. They use zombies installs to do the work for them. But that's not going to happen overnight, or even legally for that matter.
     
  5. nova

    nova BANNED BANNED

    Joined:
    Jul 23, 2007
    Messages:
    256
    Likes Received:
    41
    You are wasting your time if you use shared hosting, as the script timeout will be 90 seconds max and it cant be overridden, so itll stop sending mail in 90 seconds.

    This will only work on a vps /dedicated hosting...
     
  6. ContentFarmer

    ContentFarmer Junior Member

    Joined:
    Sep 21, 2007
    Messages:
    122
    Likes Received:
    12
    Occupation:
    Owner
    Location:
    Reno, NV
    Home Page:
    Perhaps I'm naive, but this stuff isn't exactly hard to write if you have the email list available. For instance, in my monthly newsletter, I store the HTML version in a file and just modify this script to send it out 25 at a time. I run the script via cron once an hour.

    PHP:
    <?php
    require_once("db_connection_details.php");
    require_once 
    'PEAR/Mail.php';
    require_once 
    'PEAR/mime.php';
    $crlf "\r\n";
    $hdrs = array('From'=> 'my_from@my_domain.com',
                  
    'Subject' => 'Email Subject'); 
    $hdrs['Return-Path'] = 'my_from@my_domain.com';

    $target_recipients mysql_query("select email_address from newsletter where subscription_cancelled is null and newsletter_sent = 'No' limit 25");
    if (
    $target_recipients && mysql_num_rows($target_recipients) > 0) {
      
    $mime = new Mail_mime($crlf);
      
    $message_initial file_get_contents("location/of/my/html_file.html");
      
      while (
    $a_recipient mysql_fetch_assoc($target_recipients)) {
        
    // This line replaces their email in the body and adds in an unsubscribe code.
        
    $message_body str_replace("#EMAIL#",$a_recipient['email_address'],str_replace("#UNSUB_CODE#",sha1($a_recipient['email_address']."a random seed not shown here"),$message_initial));

        
    $body_start strpos($message_body,"<body>");
        
    $message_inner_body substr($message_body,$body_start,strrpos($message_body,"</body>")-$body_start);

         
    // This is some custom formatting that I do to have both an HTML and text-only version.  Change as needed, but leave something here as the setTXTBody function sets the text-only version for those who need it.
        
    $mime->setTXTBody(strip_tags(str_replace('<div style="display:block;clear:both;width:90%;border-top:3px #0348a5 solid;"></div>','*******************************************************************',str_replace('•','*',$message_inner_body))));

        
    //Now, add the HTML body.
        
    $mime->setHTMLBody($message_body);
        
        
    $body $mime->get();
        
    $hdrs $mime->headers($hdrs);
        
    $mail =& Mail::factory('mail');
        
    $mail->send($a_recipient['email_address'], $hdrs$body);

        
    //Update database to flag this email address as having the newsletter sent.
        
    mysql_query("update newsletter set newsletter_sent='Yes' where email_address='".mysql_real_escape_string($a_recipient['email_address'])."'");

       
    //Probably not necessary, but if errors are ever thrown then I get them in my cron email.
        
    echo mysql_error();
      }
    }
    ?>
     
  7. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    Well I think 25 an hour is probably do-able w/o any problems, yes. That's 600 per day. I'm thinking more of 100k or 500k per day, which makes things much tougher since you have to specifically code everything to work with high volumes. For instance you can't just SELECT all of the names at once, since it will go over the memory limit. You have to select w/ limits and page thru them.

    In that case pear's mailer isn't really up to the challenge, you need to use your own mailer or adapt something like the swiftmailer class to work w/ relays, proxies and a tuned caching system that keeps track of the time and aborts when it needs to.
     
  8. ContentFarmer

    ContentFarmer Junior Member

    Joined:
    Sep 21, 2007
    Messages:
    122
    Likes Received:
    12
    Occupation:
    Owner
    Location:
    Reno, NV
    Home Page:
    True, but it depends on your server's limit. I believe the host limits to 500 per hour, but I use that host for other things. 500 per hour gives 12k per day which is still under what you want, but many hosts won't allow you to go higher than that (shared hosts anyway, I don't know about dedicated hosts). Notice, also, that by selecting only what I want from the db, that I won't overload the memory. Of course, the processing happens a bit too much, but you could reduce that a little by saving the text-only version as a file.

    Best wishes!
     
  9. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    well thanks for all the advice but nobody really gave me clear advice on what to do.

    i am not gonna spaming like 60,000 or anything i just need to be able to end mass emails with out being traced.
    and i was told that php would be the safest way to go.

    can somebody point me to a free host or super cheap host?

    or can one of you guys set it up for me?
    i just wanna be able to load lists and send mails when i wan to.
     
  10. ContentFarmer

    ContentFarmer Junior Member

    Joined:
    Sep 21, 2007
    Messages:
    122
    Likes Received:
    12
    Occupation:
    Owner
    Location:
    Reno, NV
    Home Page:
    Hey there, I was clear. I even gave you code and told you how to use it. And, for free!

    I'd be interested in an answer to the hosting question though as I'm sure BH's will recommend those outside the US as that will make tracking virtually impossible.
     
  11. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    MW,
    We've been perfectly clear. The answer is simple: It's very difficult to run a bulk emailing campaign from a shared web server, and in order to do it you need to be very technically versed. It's not going to be a matter of just "finding a server, installing a script and sending out anonymous email." Technology has progressed beyond that, and not in your favor. The world hates bulk email and has done a lot to stop it.

    Whoever told you PHP was the best direction to go was wrong. PHP is a good direction, but you need technical skill to make it work. A server that allows you to send out spams, scams or other email where you'd need to "be untraceable" is not going to be cheap. Certainly not free. I doubt anyone here is going to give you a server like that since it's their head on the chopping block. Last hosting firm I saw with this specialty charged $10k a month as a minimum. You can probably find companies outside the US that would do it cheaper tho.

    Even if you setup this server, you'll still be traceable if you're breaking the law. You have to log in to upload your material, that login is saved and stored by the admins. A subpoena to the hosting company can retrieve those logs, then a subpoena to the owner of your IP's netblock can review the ISP, followed by the person using your IP, followed by your computer, the account holder, and probably you. All of that costs money of course, and nobody is going to bother with all of that for just another viagra spammer, but obviously there's a line where all of that hassle becomes worth doing.

    My advice is: Hire someone for the job with more experience than yourself. Consider finding a JV partner, letting them send out the mail and paying them a % of the proceeds?


    CF,
    Nod, I did notice that. The mysql select just needs to loop thru until you've reached a particular stopping point. I usually grab 1k at a time, but that amount can vary. It's a tradeoff, unfortunately, as you trade SQL calls for memory. SQL calls can be insanely slow and CPU intensive... so it's all about finding the right balance there. If you made the list text-only it would simplify that, but it would make list administration difficult.

    Different hosts have different limits. On my reseller it's 600 an hour, on some it's 200. But this is per user and not per domain, so that's easy to get past. But if you use an external socket-based mailer class you can bypass that entirely. phpMailer or Swiftmailer classes work pretty well since they keep the socket open between sends. Use an external mail server and the problem goes away completely.
     
  12. ContentFarmer

    ContentFarmer Junior Member

    Joined:
    Sep 21, 2007
    Messages:
    122
    Likes Received:
    12
    Occupation:
    Owner
    Location:
    Reno, NV
    Home Page:
    RabidSpatula: Good point, you could easily split your files up into segments of 1000 and name them something like list_1.txt, list_2.txt, ... and then keep a file with the number of the file you last processed. Then, you could process the emails by reading the file one line at a time. That would address all those concerns, right?
     
  13. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    *nod* Except user management... hehe, but that's not really important on a huge list like that.
     
  14. nova

    nova BANNED BANNED

    Joined:
    Jul 23, 2007
    Messages:
    256
    Likes Received:
    41
    Jeez the amount of time you'd spend trying to do all these workarounds is insane.

    If you think you can make money from your spam campaign, get a bulletproof server and a decent mailing software and spam away...

    If your gonna try this on a free hosts/shared host or some other budget workaround... god help you! :rolleyes:
     
  15. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    i am not making money from this i just wanna use it to spread aawarness of diffrent types of music. thats why i am trying to keep the cost very very low.

    so what elese could i do to send bulk emails?
    i mean with help to cover my ip?
    i don't under stand about smtp and all that other stuff i have been trying.
    that is the main reason i was told php if there is a easier safer route i am all ears.

    i am not doing any viagra or spam of that nature.but i just don't wanna lose my internet because of sending music.
     
  16. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    can somebody explain this line from a bulk mailer?
    "Send email using smtp server or use built in mail server. Built in mail server bypasses your Isp's mail server"
    please explain that last line somebody thank you.
     
  17. RabidSpatula

    RabidSpatula Newbie

    Joined:
    Oct 28, 2007
    Messages:
    18
    Likes Received:
    0
    Most mail is sent thru what's called an "SMTP server" so if you can specify that, you can send email to any SMTP server you have access to. Or you can tell php to use the default mail() server, which is a server configured in php.ini to handle mail. That can be restricted a lot easier since a lot of places put limits on your ability to use mail().

    If you just want to send music... consider using something like gmail and using CC, or going with torrent+tor
     
  18. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    thanks alot for the advice,very good info. my last resort would be the gmail cc route but i am not sure what is the max amount of people that can be sent cc email on gmail.

    bulk mailing is so damn hard. i don't really have any options anymore.
     
  19. BadHacker

    BadHacker Newbie

    Joined:
    Sep 23, 2007
    Messages:
    24
    Likes Received:
    1
    i use a custom php mailer that can send 300,000 a day :D
     
  20. morework

    morework Registered Member

    Joined:
    Jun 15, 2007
    Messages:
    62
    Likes Received:
    2
    how did you set up your php mailer? is it running of a hosted server?
    give me some specifics

    i am not trying to send that much mail. just wanna get some mas mail sent.