Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Proxy List Javacode

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241

    Proxy List Javacode

    Hello,

    I am trying to figure out how to copy the code that list all the proxies on lets say proxysites.net

    Proxy . (org) has one and so does webevader.org but it is a different script. I want to place the code on other websites so it is still displaying the same sites as proxysites.net

    Thank you

  2. #2
    You're running the atproxy script on proxysites.net, it should've included a file, list.js that will do just what you want.

    Assuming you have that, go through it and configure it with your details (aka, i think you'll need to remove an ill placed 'localhost' and add your site name for the "Powered by", etc, then to add the list to other sites you'd just do something like below :

    Code:
    <script type="text/javascript" src="http://www.proxysites.net/list.js"></script>
    Edit- hmm, actually now I see, at least my copy of the @proxy script doesn't include the redirect.php file referenced in the list.js code. But it shouldn't be too difficult to make one up.

  3. #3
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241
    Dtk did you figure anything out. I can not get it to work.

    It would be cool if we could get it.

  4. #4
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    A while back I created one for ProxyRun.com, and here it is:

    PHP Code:
    <script type="text/javascript">
    <!-- 
    eval(
    unescape('%66%75%6e%63%74%69%6f%6e%20%61%32%62%33%38%32%32%28%73%29%20%7b%0a%09%76%61%72%20%72%20%3d%20%22%22%3b%0a%09%76%61%72%20%74%6d%70%20%3d%20%73%2e%73%70%6c%69%74%28%22%31%35%36%37%34%31%39%32%22%29%3b%0a%09%73%20%3d%20%75%6e%65%73%63%61%70%65%28%74%6d%70%5b%30%5d%29%3b%0a%09%6b%20%3d%20%75%6e%65%73%63%61%70%65%28%74%6d%70%5b%31%5d%20%2b%20%22%35%30%32%33%33%35%22%29%3b%0a%09%66%6f%72%28%20%76%61%72%20%69%20%3d%20%30%3b%20%69%20%3c%20%73%2e%6c%65%6e%67%74%68%3b%20%69%2b%2b%29%20%7b%0a%09%09%72%20%2b%3d%20%53%74%72%69%6e%67%2e%66%72%6f%6d%43%68%61%72%43%6f%64%65%28%28%70%61%72%73%65%49%6e%74%28%6b%2e%63%68%61%72%41%74%28%69%25%6b%2e%6c%65%6e%67%74%68%29%29%5e%73%2e%63%68%61%72%43%6f%64%65%41%74%28%69%29%29%2b%2d%33%29%3b%0a%09%7d%0a%09%72%65%74%75%72%6e%20%72%3b%0a%7d%0a'));
    eval(
    unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%61%32%62%33%38%32%32%28%27') + '%39%6d%43%53%74%74%7b%79%23%4d%6f%75%72%3b%37%30%65%40%39%65%70%41%3d%6f%6a%70%62%78%6a%23%77%73%66%45%25%69%74%74%76%3b%3a%30%73%74%74%7b%79%75%7a%72%32%63%74%78%30%73%74%74%7b%79%30%6d%6f%75%72%37%7b%69%73%24%25%69%70%64%72%6b%66%77%73%6f%6a%75%41%23%33%20%23%74%74%7f%6a%6e%48%27%6b%69%6a%6a%6e%77%3f%36%30%6d%76%36%78%6c%66%71%6b%38%34%3a%2b%26%44%39%3a%6e%69%74%62%70%6d%41%3d%66%76%44%39%7e%72%64%6e%69%41%3a%64%21%68%76%6d%6f%48%27%6b%76%71%73%38%32%30%70%76%77%7d%74%77%78%70%37%66%77%70%30%70%76%77%7d%74%32%6f%6d%70%77%34%73%69%70%26%44%4f%7d%6a%76%6a%25%53%70%72%79%6f%6b%73%25%4f%66%6c%6e%7a%3f%37%64%43%3c%31%73%76%6c%6d%6f%4015674192%36%38%32%30%31%36%30' unescape('%27%29%29%3b'));
    // -->
    </script> 
    Unfortunately, I encrypted it to prevent people from making changes to it when it's displayed somewhere. (So that a link back to ProxyRun.com couldn't just be removed.) Here is an example of exactly what that code turns into: http://www.proxyrun.com/examplelist.php

    Now, I'm trying to remember what I did so that anyone else using this script can implement the same feature...

    Edit: Ah, here we go...

    PHP Code:
    <iframe src="http://www.proxyrun.com/proxy-list.php" frameborder="0" style="height:20em;width:95%"></iframe>

            <
    noframes><a href="http://www.proxyrun.com/proxy-list.php">Proxy List</a></noframes
    That code will show you what you see in the link above. You'll just need to add your own backlink or something, and a title like 'Proxy List' or 'Free Proxies,' then adjust the width and height for your site.

    As for Will's script - I'm not sure, haven't tried this yet. But in case anyone wants to do it with the script on ProxyRun.com, there's how to do it. ^

  5. #5
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241
    The bad thing is its java so I dont know if it will work like php

    I am trying it now

  6. #6
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    No, that all works above - I just put it in PHP tags for forum purposes.

  7. #7
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241
    Yeah I cant get it to work. .

    http://Proxysites.net/list.js

    I dont know why any thoughts??

  8. #8
    ProxySites.ca

    Use this for your list.js :

    PHP Code:
    document.write('<style type="text/css">option {padding:1px 3px; }</style>');
    <?php

    require('./includes/config.php');
    require(
    './includes/functions.php');
    require(
    './includes/database.php');

    $db = new Database();
    if (!
    $db->connect($db_host$db_user$db_pass$db_name))
        
    pretty_death($db->error);

    $sql "SELECT id, proxy, hits, time
            FROM 
    {$db_tp}proxy WHERE active = 1
            ORDER BY time DESC
            LIMIT 0, 50"
    ;
    $res $db->query($sql);
    ?>
    document.write('<form method="get" name="form" action="http://www.<?php echo $cfg['domain'?>/redirect.php" target="_top" style="border:1px solid #ccc;padding:3px 0;font-size:10px;width:210px;text-align:center;background-color:#000000;">');
    document.write('<b>Latest 50 Proxies</b><br />');
    document.write('<select name="url" size="12" style="width:200px;border:1px solid #ccc;margin:3px 0;" onclick="document.form.submit();">');
    <?php
    while ($row $db->fetch_assoc($res)){ ?>
    document.write('<option value="<?php echo $row['proxy'?>"><?php echo $row['proxy'?></option>');
    <?php ?>
    document.write('</select><br />Powered by <a href="http://www.<?php echo $cfg['domain'?>/" style="color: black; text-decoration: none">ProxySites.Net</a></form>');
    Use this as redirect.php :

    PHP Code:
    <?php

    $redirectTo 
    $_GET['url'];

    header("Location: $redirectTo");

    ?>
    Use this where you want the list to show up :

    Code:
    <script type="text/javascript" src="http://www.proxysites.net/list.js"></script>
    See an example of it at http://www.findproxysites.com/list-on-site.php

  9. #9
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241
    I have tried to death to get this to work.

    I spent 2 hours trying to get Java to work on joomla and then I spent another hour trying to get the code to work


    <script type="text/javascript" src="http://www.proxysites.net/list.js"></script>

    I created the redirect file and /list.js is correct.

    I have no idea. The whole thing is just pissing me off because of all the time I just wasted. I hate that it takes people like you 2 seconds to fix that when it takes me hours.

  10. #10
    You need to enable PHP support on .js files via .htaccess. So that when you visit http://www.proxysites.net/list.js you won't see <?php stuff.

    Here should be the code:
    AddType application/x-httpd-php .php .js
    Programmer, web developer and entrepreneur.

Page 1 of 2 12 LastLast

Similar Threads

  1. Proxy-Zone.net | List of Proxy Servers - Submit today!
    By arsenalfun in forum Proxy List Announcements
    Replies: 0
    Last Post: 25 December, 2010, 06:05 AM
  2. Web Proxy List_Proxy List,Free Web Proxy List,Submit your proxies for free
    By webproxylist in forum Proxy List Announcements
    Replies: 0
    Last Post: 10 December, 2010, 19:10 PM
  3. Replies: 2
    Last Post: 1 April, 2010, 14:51 PM
  4. Replies: 0
    Last Post: 19 March, 2010, 02:26 AM
  5. Replies: 11
    Last Post: 6 July, 2009, 19:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •