Hi . I made some programs to help me with my directory lists. Well here is an example : i Have a list of directorys lets say 500+ , I used them all ( submitted my site to them ) , then i find a list of another 600+ directorys on the Internet , or on this forum .. and i want to check if some on the directorys in my 2nd list are in the 1st list too , and to delete them from my 2nd list , so i can have a fresh list of unsubmitted directorys . #include<stdio.h> #include<string.h> int main (int argc,char *argv[]) { char sir[100],aux[100]; char m[500][100]; char a[500][100]; FILE *f,*g,*h; int i,j,n1,n2,ok; strcpy(sir,argv[1]); strcat(sir,".txt"); f=fopen(sir,"rt"); strcpy(sir,argv[2]); strcat(sir,".txt"); g=fopen(sir,"rt"); strcpy(sir,"rez.txt"); h=fopen(sir,"a"); fprintf(h,"%s\n",argv[2]); n1=0; while (fgets(sir,100,f)) { strcpy(m[n1],sir); n1++; } printf("%i ",n1); n2=0; while (fgets(sir,100,g)) { strcpy(a[n2],sir); n2++; }printf("%i\n",n2); for (i=0;i<n2;i++) { ok=0; for (j=0;j<n1;j++) { if (strcmp(a,m[j])==0) { ok=1; j=n1; } } // printf("%i\n",ok); if (ok==0) {strcpy(aux,a); fprintf(h,"%s",aux); } } fclose(f); fclose(g); fclose(h); return 0; } If somebody needs this kind of program and does not know how to compile/run it please post here , i can upload on my site www.insecure.ro a .exe version with instruction . I hope it Helps , NullCode @ www.insecure.ro P.S: If u need some simple programs i can make it for you , u can ask here or on www.insecure.ro , i will make maybe an english . An example program : let's say u have all links in a directory lists like this : digitalpoint.com , and u want it to be http://www.digitalpoint.com ( some programs do not accept links :/without "http://www ")
It looks good, however it would be much better if you made .exe programs and then released them, as I'm sure many of the users here don't even know how to execute this code. Also, the .exe that you described above that sets the http:// prefix in front of a URL is a good idea. Regards, Meti
How is your magic looking for with something that can check every url in a directory to see if it is still active ? i am writing some stuff in excel but interested to see other options ?
Im not a coder but wouldnt mind seeing that as well. To many times sites change or domains are dropped and would like to somehow be able to go threw them faster and more thorough then with validation for phpld. thx malcolm
well sorry for the delay .. here are the programs : 1. http://www.insecure.ro/upload/checklink.exe - it checks too see if the link already exists in the 1st directory list . Ex : U have a huge directory list u have submitter ,let's say "BIG.txt " , and u find on the Internet anoter list called " list1.txt " and you want to see if some links in list "list1.txt" already exist in "BIG.txt" . You use this program to check like this : checklink.exe BIG.TXT list1.txt the links that are not in big.txt but are in list1.txt will be printed in the file " rez.txt " ( a file will apear after you run the program) 2. http://www.insecure.ro/upload/httpwww.exe This file will insert "http://www." in from of every link in your list ( in case u find a list that doesn't have http://www in from on the url ) . Usage : httpwww.exe list2.txt
Well here is a quick version from me, nothing flash but does the job. SETUP 1. unzip to PC 2. open (enable macro's) all safe and coding not hidden or locked ( run virus checker if you need peace of mind ) using it ( nothing flash as trying to keep it simple ) ADD URL 1. copy n paste or type url into top section ( remove http:// if you pasted it direct ), in the comments section yo can add the full url of the page in your directory, or just make some notes ( optional ) 2. Add URL TEST URL 1. dial up a number of URL's to test ( this must be less than or = to the total in the system ) 2. press Check URL once completed you can use the dial up option to see all status types NEW VERIFIED CRITICAL NOTES You can select in the top right corner to auto save and close, this option is great for a set n forget n go to bed, for example you can select it to update the next 100 links each night as an auto check. When running the test try to keep it at around or less than 100 tests at a time to let excel clear itself and not get clogged down ( save in between ). You can run more but may bog down if running into the 1000's per run The way it works is it adds new URLS to the bottom, then when testing it starts from the top, in theory always testing the oldest links first, once tetsted they are moved to the bottom creating a loop. To delete, simply select the row and delete. Do not run the URL check with the filter on. System will hold 65K links, but if you need more room simply copy n re name the files for catagories etc. Let me know if dramas. DU EDIT: if you already have a list of URL's in excel ( or other ) you can just dump them all into the bottom section, then you will need to add the word NEW to the STATUS coloumn and drag down. .You will need to manually remove any http:// prefix or it will show as a CRITICAL error. Just remove the http:// and re run if this happens.