Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. Is SVN CHECKOUT or FTP://..latest/ not an option anymore? :-\
  2. #import trident.h //Let the magic happen I can name roughly 9 SGML parsing frameworks off the top of my head, as per HTML5 why not add support yourself? If you are writing the engine then it shouldn't be anything but fun to.
  3. I obliterated my PC's mouse somehow during some activity, so am using a (Not too bad, laptop,) wireless one. Dunno if it has a standby mode, but I've left it on for a good 4-5 months and it serves its purpose with high sensitivity. Sometimes I prefer the mousepad or structure more than the mouse, It's nice to be able to type and use my thumb to track-pad on my laptop at virtually the same time with no hand movement required.
  4. I think he must've wrote it in a hurry, He didn't initialize the object. Instead of the Before the print_r part add: $MyScanner = new MyScanner; //Initialize object to be used
  5. Why on earth are you flushing 90 million times?
  6. It looks quite nice, almost like those template themes you see on wordpress/blogger, but without the extensive CSS and useless code, It's clean fast and the sectioning is done well in my opinion.
  7. Whichever query you are using is exceding the execution time of 60 seconds, which is not supposed to be. There is an infinite loop or major flaw in your code, but you do not provide any samples of it.
  8. If you do not understand such basic tasks, the methodology is simple (escaping and storing a POST form into a query after escaping/sanitizing it), but it can't be done without you not knowing how to accomplish most of these tasks first.
  9. Sometimes that is not the case, but upon reviewing his question, maybe he isn't implementing any basic security such as a TURING test. That combined with my aforementioned code should be nicely enough to catch automated bots. What is the point of this?
  10. If you are using a web hosting provider, You are most likely using a Linux based version of Apache (Most websites use CentOS or Fedora, Not many use Windows), so you'd naturally use: setlocale(LC_ALL, 'nl_NL'); echo strftime("%A"); //May say: Zondag You can look at the manual of strftime to create custom dates.
  11. Meh, something simple like this should suffice: <form action=...> .. .. <input type="text" name="name_" value="Name" style="display: none;"/> .. </form> <?php if(isset($_POST['name_'])) { $ip = $_SERVER['REMOTE_ADDR']; $sql=mysql_query('...$ip..'); } ?> You can do what you want with it there, It'll be invisible to the user but appear to the bot, especially since it has 'name' in it.
  12. if (isset($_SESSION['allowed-id'])) { //Allow download without query, //as whatever you used to log //them in has set it for you. } It shouldn't be too hard to implement such a simple script like so, you'd just need to rely on one or two session keys set, which you can use pre-existing or you can set up.
  13. yum install cups Should be sufficient, if you have problems setting it up then the obvious tutorial will be helpful: http://www.mirrorservice.org/sites/e-smith.org/contribs/rvandenaker/testing/smeserver-cups/documentation/howtos/howto-install-cups.html
  14. Now that I see you are querying a database on multiple occasions, The speed of your web server (and including internal connections to the *SQL servers) may be at fault. Is this a script you've made or downloaded? There are much simpler scripts out there, that don't require sessions or many queries, that can transparently allow a user to download the file without knowing the location. If the lookup of the file ID (filename=xxx..) is all that is needed, a single query to do this would speed things up rather than unload a lot of processing on 'antileech' protection.
  15. You'd simply get the host name of the currently browsing user: $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); Then you may run a check on it, But again, It is proxied through a site. And there are hundreds of thousands of proxy sites, so you may want to block the main ones, for example: if(stripos($hostname, 'hidemyass.com')) { die(); //Display a message about not allowing proxies, or just terminate the script } echo "If you can see this text, you are not on a proxy!"; Of course you need to research and place in many of the host names of various proxies, but this is pretty much the only absolute method of being able to detect transparent web proxies.
  16. Requesting from Apache or PHP sending a file header to apache is virtually the same thing. I doubt PHP is your problem. What script are you using for downloads? Obviously it would be the thing that is flawed.
  17. Um, Yes you can. AddType application/x-httpd-php .js I just added that using my CPanel MIME controls, however my whole site now gets a 500 error?? Any ideas? Don't use cPanel. Just use your FTP and remove everything from .htaccess, cPanel is stupid and doesn't put an option on a new line, thus the error. If you look at the file it most likely lists the new mimetype on the same line as another entry.
  18. Um, Yes you can. AddType application/x-httpd-php .js
  19. You can use the HTML Meta refresh method, but if you require to refresh the page using headers, Place ob_start at the beginning of your code. Although this is a fix than a solution, It is a valid one.
  20. oni-kun

    hidden level?

    Why do you not follow the rules of the forums?
  21. Why not get the extension from there? $ext = end(explode('.', get_post_meta($post->ID, 'full-image', $single = true)));
  22. That code you posted only works for proxies which display that header, such as SQUID or a business/govt/school proxy so they can differentiate the origin IP. A web proxy will do the HTTP requests theirselves, For anonymity I doubt they'd ever send a *_FOR HTTP header. What do you mean in the future? It's impossible, Unproxied Java may be able to display their true IP (as the http proxy only proxies http requests, Not Java's engine's requests) but not many proxies will let you run plugins, so that's scrapped. You're stuck unless you check the proxy's hostname, and block them /treat them as less if required.
  23. .htaccess in sig folder: AddType application/x-httpd-php5 .png filename.png: <?php header("Content-type: image/png"); ... ?> Then it can be called by /sig/filename.png and it will be dynamic as required.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.