Aller au contenu

doomer2

Hubmaster
  • Compteur de contenus

    232
  • Inscrit(e) le

  • Dernière visite

Tout ce qui a été posté par doomer2

  1. Oui, je suis d'accord avec toi mais moi, ce ne sont que des personnes en France qui seront visés. Un numero 03********. Le code postale j'ai fais cela comme filtre : /^[0-9]{5}$/ Voilà en te remerciant
  2. Bonjour, Je souhaiterais savoir si un script en javascript (pas en PHP ) existait pour tester un numero de telephone à 10 chiffres ? Ainsi que de tester un code postal et si un site est bien composé de http:// Quelquechose comme cela par exemple pour le code postal : function testcp(name) { var filter = /^([0-9_\.\-])+\s?$/; if (filter.test(name)) return true; else return false; } Mais je connais pas grand chose aux expressions regulieres.
  3. Bonsoir, Je soujaiterais savoir si il existait des exmples de formulaire programmés en AJAX pour les tests erreurs sur le net. Mes recherches ont été vaines. Merci à tous
  4. doomer2

    Empêcher certains robots

    Bonsoir à tous, Je souhaiterais empêcher le passage de certains robots sur mon site : Ce sont : - Curl - Wget - WebCopier Car je m'aperçois qu'il y a de nombreux hits à cause de ces robots. En vous remerciant d'avance.
  5. Je vois que beaucoup de monde lit mon petit probléme mais que personne n'a la solution. Cela m'inquiéte, j'ai bcp utilisez mon ami google et je ne trouve pas de solution non plus !! Les liens sur votre fichier erreur404.php sont en absolu ou relatif ? je vous mets le contenu de mon fichier erreur404.php : <?php $chemin="."; $referer = getenv('HTTP_REFERER'); // on récupère l'URL de la page d'origine $uri = $_SERVER['REQUEST_URI']; // on récupère l'URL de la page cause de l'erreur $ip_visiteur = $_SERVER['REMOTE_ADDR']; // on récupère l'IP du visiteur (pour stats - facultatif) $date = date('d/m/y',time()); // on récupère la date de l'erreur (pour stats - facultatif) $heure = date('h:m:s',time()); // on récupère l'heure de l'erreur (pour stats - facultatif) // On décide d'envoyer cette erreur par mail : on prépare donc le contenu : $contenu_mail = " Erreur $erreur Le $date à $heure IP du visiteur : $ip_visiteur Referer : $referer URI : $uri "; mail("****@****.**","$date : erreur $erreur",$contenu_mail,"From:erreurs@$erreur.site"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>Erreur 404</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Language" content="fr" /> <link rel="stylesheet" type="text/css" href="http://contyloeuillysc.free.fr/leger.css" title="Style par Defaut"/> <link rel="stylesheet" type="text/css" href="http://contyloeuillysc.free.fr/print.css" media="print" /> </head> <body> <div id="conteneur"> <? include ("$chemin/test/accessibilite.php"); ?> <h1 id="titre">Sporting Club Conty-Loeuilly<span id="feuille"></span></h1> <? include ("$chemin/test/menuhorizontal.php"); ?> <div id="gauche"> <? include ("$chemin/test/menugaucheaccueil.php"); ?> </div> <div id="contenu"> <div id="breadcumb"> <?php include_once($chemin.'/test/breadcrumb.inc'); $breadcrumb = new breadcrumb; echo "<p>Vous êtes : ".$breadcrumb->show_breadcrumb()."</p>";?> </div> <p> <script type="text/javascript" src="date.js"></script> </p> <h2>Erreur 404 : cette page est introuvable ou n'est plus valide </h2> ...... ... J'obtiens bien mon mail avec le lien erroné mais aprés impossible de se déplace dans la feuille erreur404.php. Par contre si dans le .htaccess je remplace : ErrorDocument 404 http://contyloeuillysc.free.fr/erreur404.php Dans mon mail je n'obtiens plus $uri mais maintenant je peux me déplacer dans mon fichier erreur404.php car les liens sont correctes. Je ne sais pas quoi faire.
  6. Bonsoir, Voici ce que j'ai mis dans mon htaccess : ErrorDocument 404 /erreur404.php ErrorDocument 403 /erreur403.php Le probléme est que lorsque je tombe sur la page erreur404, je ne peux plus me déplacer à nouveau dans le site, je m'explique : la racine de mon site est http://contyloeuillysc.free.fr/ puis je clique sur un lien erroné par exemple : http://contyloeuillysc.free.fr/site/presentation/index.php qui me renvoie vers erreur404.php. Jusque là tout va bien. Une fois mon erreur404.php affiché ok j'ai bien compris que le lien n'existait plus donc je veux retourner à la racine du site donc je clique sur accueil et là le hic : observez toutes les url de la page erreur404 obtenu, ils conservent la base de la page erronée : http://contyloeuillysc.free.fr/site/presen...emesfichier.php alors que par exmeple si jeveux retourner à l'accueil je devrais avoir http://contyloeuillysc.free.fr/index.php et non http://contyloeuillysc.free.fr/site/presentation/index.php Je précise que j'utilise des liens relatifs et non absolus comme bcp de monde sur ce site sur free. Mon htacess est on ne peut plus simple; Je ne comprends pas. A l'aide s'il vous plait.
  7. Comment faire sur Free alors ?
  8. Bonsoir, Je viens de créer cela sur mon compte mais j'obtiens une erreur 500 !!! Je souhaiterais savoir d'où viens mon erreur en sachant que je suis sur un compte Free ? RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ADSARobot [OR] RewriteCond %{HTTP_USER_AGENT} ah-ha [NC,OR] RewriteCond %{HTTP_USER_AGENT} aktuelles [NC,OR] RewriteCond %{HTTP_USER_AGENT} amzn_assoc [NC,OR] RewriteCond %{HTTP_USER_AGENT} Anarchie [OR] RewriteCond %{HTTP_USER_AGENT} ASPSeek [OR] RewriteCond %{HTTP_USER_AGENT} ASSORT [NC,OR] RewriteCond %{HTTP_USER_AGENT} ATHENS [NC,OR] RewriteCond %{HTTP_USER_AGENT} Atomz [OR] RewriteCond %{HTTP_USER_AGENT} attach [NC,OR] RewriteCond %{HTTP_USER_AGENT} attache [NC,OR] RewriteCond %{HTTP_USER_AGENT} autoemailspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} BackWeb [OR] RewriteCond %{HTTP_USER_AGENT} Bandit [OR] RewriteCond %{HTTP_USER_AGENT} BatchFTP [OR] RewriteCond %{HTTP_USER_AGENT} bdfetch [NC,OR] RewriteCond %{HTTP_USER_AGENT} big.brother [NC,OR] RewriteCond %{HTTP_USER_AGENT} BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} bmclient [NC,OR] RewriteCond %{HTTP_USER_AGENT} Boston\ Project [OR] RewriteCond %{HTTP_USER_AGENT} BravoBrian\ SpiderEngine\ MarcoPolo [OR] RewriteCond %{HTTP_USER_AGENT} Buddy [OR] RewriteCond %{HTTP_USER_AGENT} Bullseye [NC,OR] RewriteCond %{HTTP_USER_AGENT} bumblebee [NC,OR] RewriteCond %{HTTP_USER_AGENT} capture [OR] RewriteCond %{HTTP_USER_AGENT} ChinaClaw [OR] RewriteCond %{HTTP_USER_AGENT} CICC [OR] RewriteCond %{HTTP_USER_AGENT} clipping [NC,OR] RewriteCond %{HTTP_USER_AGENT} Crescent [NC,OR] RewriteCond %{HTTP_USER_AGENT} Crescent\ Internet\ ToolPak [OR] RewriteCond %{HTTP_USER_AGENT} Custo [OR] RewriteCond %{HTTP_USER_AGENT} cyberalert [OR] RewriteCond %{HTTP_USER_AGENT} Deweb [NC,OR] RewriteCond %{HTTP_USER_AGENT} diagem [NC,OR] RewriteCond %{HTTP_USER_AGENT} Digger [OR] RewriteCond %{HTTP_USER_AGENT} Digimarc [OR] RewriteCond %{HTTP_USER_AGENT} DIIbot [OR] RewriteCond %{HTTP_USER_AGENT} disco [NC,OR] RewriteCond %{HTTP_USER_AGENT} DISCoFinder [OR] RewriteCond %{HTTP_USER_AGENT} Download\ Demon [OR] RewriteCond %{HTTP_USER_AGENT} Download\ Wonder [OR] RewriteCond %{HTTP_USER_AGENT} Downloader [OR] RewriteCond %{HTTP_USER_AGENT} Drip [OR] RewriteCond %{HTTP_USER_AGENT} DSurf15a [OR] RewriteCond %{HTTP_USER_AGENT} DTS.Agent [NC,OR] RewriteCond %{HTTP_USER_AGENT} EasyDL [OR] RewriteCond %{HTTP_USER_AGENT} ecollector [NC,OR] RewriteCond %{HTTP_USER_AGENT} efp_AT_gmx\.net [OR] RewriteCond %{HTTP_USER_AGENT} Email\ Extractor [OR] RewriteCond %{HTTP_USER_AGENT} EirGrabber [OR] RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} Express\ WebPictures [OR] RewriteCond %{HTTP_USER_AGENT} EyeNetIE [OR] RewriteCond %{HTTP_USER_AGENT} fastlwspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} FavOrg [OR] RewriteCond %{HTTP_USER_AGENT} Favorites\ Sweeper [NC,OR] RewriteCond %{HTTP_USER_AGENT} Fetch [NC,OR] RewriteCond %{HTTP_USER_AGENT} FEZhead [NC,OR] RewriteCond %{HTTP_USER_AGENT} FileHound [OR] RewriteCond %{HTTP_USER_AGENT} FlashGet\ WebWasher [OR] RewriteCond %{HTTP_USER_AGENT} FlickBot [OR] RewriteCond %{HTTP_USER_AGENT} fluffy [NC,OR] RewriteCond %{HTTP_USER_AGENT} GalaxyBot [OR] RewriteCond %{HTTP_USER_AGENT} Generic [NC,OR] RewriteCond %{HTTP_USER_AGENT} Getleft [NC,OR] RewriteCond %{HTTP_USER_AGENT} GetRight [OR] RewriteCond %{HTTP_USER_AGENT} GetSmart [OR] RewriteCond %{HTTP_USER_AGENT} GetWeb! [OR] RewriteCond %{HTTP_USER_AGENT} GetWebPage [NC,OR] RewriteCond %{HTTP_USER_AGENT} gigabaz [OR] RewriteCond %{HTTP_USER_AGENT} Girafabot [NC,OR] RewriteCond %{HTTP_USER_AGENT} go-ahead-got-it [NC,OR] RewriteCond %{HTTP_USER_AGENT} GornKer [OR] RewriteCond %{HTTP_USER_AGENT} Grabber [NC,OR] RewriteCond %{HTTP_USER_AGENT} GrabNet [OR] RewriteCond %{HTTP_USER_AGENT} Grafula [OR] RewriteCond %{HTTP_USER_AGENT} Green\ Research [OR] RewriteCond %{HTTP_USER_AGENT} Harvest [NC,OR] RewriteCond %{HTTP_USER_AGENT} hhjhj_AT_yahoo [NC,OR] RewriteCond %{HTTP_USER_AGENT} hloader [OR] RewriteCond %{HTTP_USER_AGENT} HMView [OR] RewriteCond %{HTTP_USER_AGENT} HomePageSearch [OR] RewriteCond %{HTTP_USER_AGENT} httpdown [OR] RewriteCond %{HTTP_USER_AGENT} http\ generic [OR] RewriteCond %{HTTP_USER_AGENT} IBM_Planetwide [OR] RewriteCond %{HTTP_USER_AGENT} Image\ Stripper [OR] RewriteCond %{HTTP_USER_AGENT} Image\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} imagefetch [OR] RewriteCond %{HTTP_USER_AGENT} IncyWincy [NC,OR] RewriteCond %{HTTP_USER_AGENT} informant [NC,OR] RewriteCond %{HTTP_USER_AGENT} Ingelin [NC,OR] RewriteCond %{HTTP_USER_AGENT} InterGET [OR] RewriteCond %{HTTP_USER_AGENT} Internet\ Ninja [OR] RewriteCond %{HTTP_USER_AGENT} InternetLinkAgent [OR] RewriteCond %{HTTP_USER_AGENT} InternetSeer\.com [OR] RewriteCond %{HTTP_USER_AGENT} Iria [OR] RewriteCond %{HTTP_USER_AGENT} Irvine [OR] RewriteCond %{HTTP_USER_AGENT} JBH*Agent [OR] RewriteCond %{HTTP_USER_AGENT} JetCar [OR] RewriteCond %{HTTP_USER_AGENT} JOC [OR] RewriteCond %{HTTP_USER_AGENT} JOC\ Web\ Spider [OR] RewriteCond %{HTTP_USER_AGENT} JustView [OR] RewriteCond %{HTTP_USER_AGENT} KWebGet [NC,OR] RewriteCond %{HTTP_USER_AGENT} Lachesis [OR] RewriteCond %{HTTP_USER_AGENT} larbin [NC,OR] RewriteCond %{HTTP_USER_AGENT} LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} LexiBot [OR] RewriteCond %{HTTP_USER_AGENT} lftp [OR] RewriteCond %{HTTP_USER_AGENT} libwww [OR] RewriteCond %{HTTP_USER_AGENT} likse [NC,OR] RewriteCond %{HTTP_USER_AGENT} Link*Sleuth [OR] RewriteCond %{HTTP_USER_AGENT} LINKS\ ARoMATIZED [OR] RewriteCond %{HTTP_USER_AGENT} LinkWalker [OR] RewriteCond %{HTTP_USER_AGENT} LWP [NC,OR] RewriteCond %{HTTP_USER_AGENT} lwp-trivial [OR] RewriteCond %{HTTP_USER_AGENT} Magnet [OR] RewriteCond %{HTTP_USER_AGENT} Mac\ Finder [OR] RewriteCond %{HTTP_USER_AGENT} Mag-Net [OR] RewriteCond %{HTTP_USER_AGENT} Mass\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} MCspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} MIDown\ tool [OR] RewriteCond %{HTTP_USER_AGENT} Mirror [NC,OR] RewriteCond %{HTTP_USER_AGENT} Missigua\ Locator [OR] RewriteCond %{HTTP_USER_AGENT} Mister\ PiX [NC,OR] RewriteCond %{HTTP_USER_AGENT} MMMtoCrawl\/UrlDispatcherLLL [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla$ [OR] RewriteCond %{HTTP_USER_AGENT} MSProxy [OR] RewriteCond %{HTTP_USER_AGENT} multithreaddb [NC,OR] RewriteCond %{HTTP_USER_AGENT} nationaldirectory [NC,OR] RewriteCond %{HTTP_USER_AGENT} Navroad [OR] RewriteCond %{HTTP_USER_AGENT} NearSite [OR] RewriteCond %{HTTP_USER_AGENT} Net\ Vampire [OR] RewriteCond %{HTTP_USER_AGENT} NetAnts [OR] RewriteCond %{HTTP_USER_AGENT} NetCarta [NC,OR] RewriteCond %{HTTP_USER_AGENT} NetMechanic [OR] RewriteCond %{HTTP_USER_AGENT} netprospector [NC,OR] RewriteCond %{HTTP_USER_AGENT} NetResearchServer [NC,OR] RewriteCond %{HTTP_USER_AGENT} NetSpider [OR] RewriteCond %{HTTP_USER_AGENT} NetZIP [OR] RewriteCond %{HTTP_USER_AGENT} NetZip\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} NetZippy [OR] RewriteCond %{HTTP_USER_AGENT} NEWT [NC,OR] RewriteCond %{HTTP_USER_AGENT} nicerspro [NC,OR] RewriteCond %{HTTP_USER_AGENT} NPBot [OR] RewriteCond %{HTTP_USER_AGENT} Octopus [OR] RewriteCond %{HTTP_USER_AGENT} OpaL [NC,OR] RewriteCond %{HTTP_USER_AGENT} Openfind [OR] RewriteCond %{HTTP_USER_AGENT} OpenTextSiteCrawler [NC,OR] RewriteCond %{HTTP_USER_AGENT} OrangeBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} PackRat [NC,OR] RewriteCond %{HTTP_USER_AGENT} PageGrabber [OR] RewriteCond %{HTTP_USER_AGENT} Papa\ Foto [OR] RewriteCond %{HTTP_USER_AGENT} pavuk [NC,OR] RewriteCond %{HTTP_USER_AGENT} PersonaPilot [OR] RewriteCond %{HTTP_USER_AGENT} pcBrowser [OR] RewriteCond %{HTTP_USER_AGENT} PingALink [OR] RewriteCond %{HTTP_USER_AGENT} Pockey [OR] RewriteCond %{HTTP_USER_AGENT} Proxy [OR] RewriteCond %{HTTP_USER_AGENT} psbot [OR] RewriteCond %{HTTP_USER_AGENT} PSurf [NC,OR] RewriteCond %{HTTP_USER_AGENT} puf [NC,OR] RewriteCond %{HTTP_USER_AGENT} Pump [OR] RewriteCond %{HTTP_USER_AGENT} PushSite [NC,OR] RewriteCond %{HTTP_USER_AGENT} QRVA [OR] RewriteCond %{HTTP_USER_AGENT} RealDownload [OR] RewriteCond %{HTTP_USER_AGENT} Reaper [OR] RewriteCond %{HTTP_USER_AGENT} Recorder [OR] RewriteCond %{HTTP_USER_AGENT} ReGet [OR] RewriteCond %{HTTP_USER_AGENT} replacer [NC,OR] RewriteCond %{HTTP_USER_AGENT} RepoMonkey [NC,OR] RewriteCond %{HTTP_USER_AGENT} Robozilla [NC,OR] RewriteCond %{HTTP_USER_AGENT} Rover [NC,OR] RewriteCond %{HTTP_USER_AGENT} RPT-HTTPClient [OR] RewriteCond %{HTTP_USER_AGENT} Rsync [NC,OR] RewriteCond %{HTTP_USER_AGENT} SearchExpress [OR] RewriteCond %{HTTP_USER_AGENT} searchhippo [NC,OR] RewriteCond %{HTTP_USER_AGENT} searchterms\.it [NC,OR] RewriteCond %{HTTP_USER_AGENT} Second\ Street\ Research [OR] RewriteCond %{HTTP_USER_AGENT} Seeker [OR] RewriteCond %{HTTP_USER_AGENT} Shai [NC,OR] RewriteCond %{HTTP_USER_AGENT} sitecheck [NC,OR] RewriteCond %{HTTP_USER_AGENT} SiteSnagger [OR] RewriteCond %{HTTP_USER_AGENT} SlySearch [OR] RewriteCond %{HTTP_USER_AGENT} SmartDownload [OR] RewriteCond %{HTTP_USER_AGENT} snagger [NC,OR] RewriteCond %{HTTP_USER_AGENT} SpaceBison [OR] RewriteCond %{HTTP_USER_AGENT} Spegla [NC,OR] RewriteCond %{HTTP_USER_AGENT} SpiderBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} SqWorm [OR] RewriteCond %{HTTP_USER_AGENT} Stripper [OR] RewriteCond %{HTTP_USER_AGENT} Sucker [OR] RewriteCond %{HTTP_USER_AGENT} SuperBot [OR] RewriteCond %{HTTP_USER_AGENT} SuperHTTP [OR] RewriteCond %{HTTP_USER_AGENT} Surfbot [OR] RewriteCond %{HTTP_USER_AGENT} SurfWalker [NC,OR] RewriteCond %{HTTP_USER_AGENT} Szukacz [OR] RewriteCond %{HTTP_USER_AGENT} tAkeOut [OR] RewriteCond %{HTTP_USER_AGENT} tarspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} Templeton [NC,OR] RewriteCond %{HTTP_USER_AGENT} TrueRobot [NC,OR] RewriteCond %{HTTP_USER_AGENT} TV33_Mercator [OR] RewriteCond %{HTTP_USER_AGENT} UIowaCrawler [NC,OR] RewriteCond %{HTTP_USER_AGENT} URL_Spider_Pro [OR] RewriteCond %{HTTP_USER_AGENT} UtilMind [NC,OR] RewriteCond %{HTTP_USER_AGENT} Vacuum [OR] RewriteCond %{HTTP_USER_AGENT} vagabondo [NC,OR] RewriteCond %{HTTP_USER_AGENT} vayala [NC,OR] RewriteCond %{HTTP_USER_AGENT} visibilitygap [NC,OR] RewriteCond %{HTTP_USER_AGENT} VoidEYE [OR] RewriteCond %{HTTP_USER_AGENT} vspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} w3mir [NC,OR] RewriteCond %{HTTP_USER_AGENT} web\.by\.mail [NC,OR] RewriteCond %{HTTP_USER_AGENT} Web\ Data\ Extractor [NC,OR] RewriteCond %{HTTP_USER_AGENT} Web\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} Web\ Image\ Collector [OR] RewriteCond %{HTTP_USER_AGENT} Web\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} WebAuto [OR] RewriteCond %{HTTP_USER_AGENT} Webclipping [OR] RewriteCond %{HTTP_USER_AGENT} webcollector [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebCopier [OR] RewriteCond %{HTTP_USER_AGENT} webcraft_AT_bea [NC,OR] RewriteCond %{HTTP_USER_AGENT} webdevil [NC,OR] RewriteCond %{HTTP_USER_AGENT} webdownloader [NC,OR] RewriteCond %{HTTP_USER_AGENT} Webdup [OR] RewriteCond %{HTTP_USER_AGENT} WebFetch [OR] RewriteCond %{HTTP_USER_AGENT} WebGo\ IS [OR] RewriteCond %{HTTP_USER_AGENT} WebHook [OR] RewriteCond %{HTTP_USER_AGENT} Webinator [OR] RewriteCond %{HTTP_USER_AGENT} WebLeacher [OR] RewriteCond %{HTTP_USER_AGENT} WEBMASTERS [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebMiner [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebMirror [OR] RewriteCond %{HTTP_USER_AGENT} webmole [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebReaper [OR] RewriteCond %{HTTP_USER_AGENT} WebSauger [OR] RewriteCond %{HTTP_USER_AGENT} Website\ eXtractor [OR] RewriteCond %{HTTP_USER_AGENT} Website\ Quester [OR] RewriteCond %{HTTP_USER_AGENT} WebSnake [NC,OR] RewriteCond %{HTTP_USER_AGENT} Webster [OR] RewriteCond %{HTTP_USER_AGENT} WebStripper [OR] RewriteCond %{HTTP_USER_AGENT} websucker [NC,OR] RewriteCond %{HTTP_USER_AGENT} webvac [NC,OR] RewriteCond %{HTTP_USER_AGENT} webwalk [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebWhacker [OR] RewriteCond %{HTTP_USER_AGENT} webweasel [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebZIP [OR] RewriteCond %{HTTP_USER_AGENT} Wget [OR] RewriteCond %{HTTP_USER_AGENT} whizbang [NC,OR] RewriteCond %{HTTP_USER_AGENT} WhosTalking [NC,OR] RewriteCond %{HTTP_USER_AGENT} Widow [OR] RewriteCond %{HTTP_USER_AGENT} WISEbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} WUMPUS [NC,OR] RewriteCond %{HTTP_USER_AGENT} Wweb [OR] RewriteCond %{HTTP_USER_AGENT} WWWOFFLE [OR] RewriteCond %{HTTP_USER_AGENT} Xaldon\ WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} XGET [NC,OR] RewriteCond %{HTTP_USER_AGENT} x-Tractor [OR] RewriteCond %{HTTP_USER_AGENT} Yandex [OR] RewriteCond %{REMOTE_HOST} ^private$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} traffixer [NC,OR] RewriteCond %{HTTP_USER_AGENT} netfactual [NC,OR] RewriteCond %{HTTP_USER_AGENT} netcraft [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^[^?]*iaea\.org [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^[^?]*addresses\.com [NC,OR] RewriteCond %{HTTP_USER_AGENT} [0-9A-Za-z]{15,} [OR] RewriteCond %{HTTP_USER_AGENT} ^[0-9A-Za-z]+$ [OR] RewriteCond %{HTTP_USER_AGENT} ^[^?]*\.ideography\.co\.uk [NC] RewriteRule .*$ [url="http://www.autre_site.com"]http://www.autre_site.com[/url] [R,L] ErrorDocument 404 [url="http://monsite.free.fr/erreur404.php"]http://monsite.free.fr/erreur404.php[/url] ErrorDocument 403 [url="http://monsite.free.fr/erreur403.php"]http://monsite.free.fr/erreur403.php[/url] Merci à tous pour votre aide.
  9. Pourquoi ne pas compléter le fichier de ADN au dessus afin d'avoir un fichier .htaccess au dessus complet accompagné du script de jeroen ? Qu'en pensez-vous ? Sii tout le monde apporte sa pierre à l'édifice ;-)
  10. Existe t'il ce genre de script sur le net tout fait ou pas ?
  11. Bonsoir, J'aimerais savoir comment peut on empêcher l'aspiration d'un site via htaccess. Car il me semble qu'avec un logiciel comme flashget il est simple de pouvoir réaliser cela. Merci à tous
  12. Bonjour, J'essaie de valider en vain mon sitemap sous google mais celui ci ne veut pas le parcourir et m'indique cette erreur : Nous avons détecté que l'en-tête de votre page d'erreur 404 (fichier introuvable) contenait l'état 200 (OK). cette configuration présente un risque de sécurité dans le cadre de la vérification ; nous ne pouvons donc pas vérifier votre site. Si votre serveur Web est configuré pour renvoyer un état 200 dans l'en-tête des pages 404 et si vous nous avez autorisés à vérifier votre site avec cette configuration, d'autres personnes pourraient en profiter. Ces personnes pourraient alors accéder aux statistiques concernant votre site. Pour éviter que d'autres personnes n'exploitent cette configuration pour afficher des statistiques concernant des sites qui ne leur appartiennent pas, nous vérifions uniquement les sites qui renvoient l'état 404 dans les pages 404. Modifiez la configuration de votre serveur Web afin de renvoyer un état 404 dans l'en-tête des pages 404. Une fois que votre serveur Web sera configuré correctement, essayez de revérifier le site. Si votre serveur est configuré de cette façon et si vous recevez cette erreur, cliquez de nouveau sur Vérifier l'état afin de nous demander de revérifier votre configuration. Quelqu'un peut il me dire la marche à suivre ? Merci beaucoup
  13. doomer2

    Probléme avec textarea

    Bonsoir, J'ai un petit soucis rien de grave lorsque je veux mettre à jour une de mes tables via un formulaire. J'affiche bien tous mes champs dans des inputs ou des textarea mais le probléme est que dans les textarea mon contenu est décalé de quelques espaces à l'intérieur. Comment supprimer ces espaces ? Merci à tous.
  14. Et non, je croyais, je viens de faire un test de fonctionnement modification, suppression. Cela ne fonctionne pas !!!!!
  15. Bon, j'ai trouvé la solution et je vous la transmet: <? $sql = 'SELECT * FROM categorie'; $req = mysql_query($sql) or die('Erreur<br>'.$sql.'<br>'.mysql_error()); while($res = mysql_fetch_array($req)) { if ($res[nomcat]==$modif_cat) { $selected = "selected"; }else{ $selected = ""; } print '<option value="$res[nomcat]" '.$selected.'>'.$res[nomcat].'</option>'; } ?>
  16. Voilà en regardant le source de la page généré, j'ai ceci pour un fleuriste : <option value="$res[nomcat]" >Fleuriste</option> Il n'y a rien dans $res et pas de selected à la suite de value.
  17. Ben, je suis peut être pas doué alors mais cela ne fonctionne pas, je suis toujours sur mon premier champ. Par contre, quand j'affiche mon champ dans un input j'ai la bonne catégorie.
  18. Non, cette requête fonctionne correctement dans les 2 cas. Le soucis ne vient pas de là. Je précise que j'ai 2 tables : categorie avec ident la clé puis nomcat : intitule de la categorie et une photo metier : titremetier, puis cp, ...., puis cat (intitule de la categorie)
  19. Non, cela ne fonctionne pas cela m'affiche toujours la premiére ligne. Ne faudrait pas faire une rquete sql avec un where ?
  20. Bonsoir, Je me suis créé un formulaire qui me permet de modifier les champs d'une de mes tables. Cependant, je posséde une table catégorie avec +de 100 champs. Quand je sélectionne, la personne où je dois modifier un champ, je posséde donc : nom puis prénom puis adresse puis une liste déroulante avec les catégories puis cp, etc ... Le probléme est que dans la liste déroulante je posséde bien toutes mes catégories mais il se positoinne toujours sur la premiére catégorie de ma table. Comment faire pour qu'il se positionne sur la catégorie correspondant à la personne à modifier ? Voici mes requêtes : $dvd = "SELECT * FROM metier WHERE idmetier=".$idmetier; $req_dvd1 = mysql_query($dvd) or die('Erreur SQL !<br>'.$dvd.'<br>'.mysql_error()); $data_dvd = mysql_fetch_array($req_dvd1); //affectation aux variables //////////////////////////////////////////////////// $modif_idmetier = $data_dvd[idmetier]; $modif_titremetier = $data_dvd[titremetier]; $modif_cp = $data_dvd[cp]; $modif_adresse = $data_dvd[adresse]; $modif_commentaire = $data_dvd[commentaire]; $modif_cat = $data_dvd[cat]; $modif_commune = $data_dvd[commune]; $modif_tel = $data_dvd[tel]; $modif_fax = $data_dvd[fax]; $modif_mail = $data_dvd[mail]; $modif_image = $data_dvd[image]; $modif_validate = $data_dvd[validate]; if ($envoi=="oui"){ $modif_idmetier = $idmetier; $modif_titremetier = $titremetier; $modif_adresse = $adresse; $modif_cp = $cp; $modif_commentaire = $commentaire; $modif_cat = $cat; $modif_commune = $commune; $modif_tel = $tel; $modif_fax = $fax; $modif_mail = $mail; $modif_image = $image; $modif_validate= $validate; if(($idmetier=="")||($titremetier=="")||($adresse=="") ||($commentaire=="")||($cp=="")){ $message="Vous devez remplir tous les champs pour pouvoir modifier ces coordonnées !"; }else{ $maj_dvd="UPDATE metier SET idmetier='".ucwords($idmetier)."',titremetier='".ucwords($titremetier)."', adresse='".ucwords($adresse)."',commentaire='".ucwords($commentaire)."', cat='".$cat."',commune='".$commune."',image='".$image."',cp='".$cp."', tel='".$tel."',fax='".$fax."',mail='".$mail."',validate='".$validate."' WHERE idmetier=".$idmetier; $req_maj = mysql_query($maj_dvd) or die('Erreur SQL !<br>'.$maj_dvd.'<br>'.mysql_error()); $message="Les coordonnées sont modifiées"; } } Puis voici une partie de mon formulaire : <form method="post" action="modifadr.php?envoi=oui&id=<? echo "$id"; ?>" name="dvd"> <table width="98%" border="1" cellspacing="0" cellpadding="0"> <tr> <td height="37"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="159"> </td> <td colspan="3" width="790"><input type="hidden" name="idmetier" value="<?php print $modif_idmetier; ?>"> </td> </tr> <tr> <td width="159">Nom et prénom:</td> <td colspan="3" width="790"><input type="text" name="titremetier" size="40" value="<?php print $modif_titremetier; ?>"> </td> </tr> <tr> <td width="159">Adresse : </td> <td colspan="3" width="790"><input type="text" name="adresse" size="80" value="<?php print $modif_adresse; ?>"> </td> </tr> <tr> <td width="159">Code Postal</td> <td colspan="3" width="790"><input type="text" name="cp" size="40" value="<?php print $modif_cp; ?>"> </td> </tr> <tr> <td width="159">Intitulé : </td> <td colspan="3" width="790"><textarea name="commentaire" cols="60" rows="3"> <?php echo $modif_commentaire ?> </textarea> </td> </tr> <tr> <td width="159">Catégorie :</td> <td colspan="3" width="790">[B]<select name="cat"> <? $sql = 'SELECT * FROM categorie ORDER BY ident'; $req = mysql_query($sql) or die('Erreur<br>'.$sql.'<br>'.mysql_error()); while($res = mysql_fetch_array($req)) { print '<option>'.$res[nomcat].'</option>'; } ?> </select>[/B] </td> </table> </form> Le probléme est en gras
  21. oui excuse moi c'était une erreur d'une ancienne version de test. Je viens de rééditer mon message. Mais même avec POST, je n'arrive pas à réupérer le contenu de cette variable.
  22. Bonjour, Je vous explique mon petit probléme. J'ai actuellement un formulaire constitué comme cela : Mon fichier envoi.php <form name=formu method=post action=envoi.php?id=$id&action=envoyer> <br /><br />Titre du message : <input size=40 value=\"titrenews de ".$titresite."\" name=titre> <br /><br />Message : <script language='JavaScript' type='text/javascript'> <!-- this.value = message = new HyperTextArea('message', 'article', 520, 200,''); //--> </script> <br /><br /><input type=\"checkbox\" name=\"previsu\" /><input type=submit value=\" Envoyer \" /> </form> Au moment de la validation de l'article je souhaiterais récupéré et affiché dans une autre page le contenu de la variable message. J'arrive à l'afficher dans une même page mais pas en en ouvrant une. Le passage de variable ne se fait pas.
  23. Ben en fait tu as raison, mais cela va me permettre par la suite de mettre à la disposition de mes utilisateurs ce type de choses pour insérer des articles. Mais je suis tout à fait d'accord avec toi.
  24. Je vais essayer de m'expliquer clairement. En fait, j'envoi à mes inscrits une newsletter au format html, et je voudrais mettre dans ma newsletter des icines au dessus de mon textarea afin de mettre en gras, italic, ajouter un lien ou une image. Est ce que j'ai été plus clair ?
  25. Ca veut dire quoi ce que tu marques ?
×
×
  • Créer...