ocalf23
1
Pi
Redactor
Verificación en dos pasos activada
Verificado por Whatsapp
¡Ha verificado su Paypal!
¡Excelente comerciante!
Suscripción a IA
puedes usar el 4 y agregarle el 5 para cacheo 😀
descargamos el code del hack 4, lo subimos a la raiz del sitio y ya esta?
sip 🙂 ......
Es automatico, es decir al instante porque no me funciona sino, no hay que hacer nada en el htacess?
si es automatico, usa el modo incognito del navegador, sino estas viendo tu cache.
RewriteCond %{HTTP_HOST} ^www.thisburrito.com$ [OR]
RewriteCond %{HTTP_HOST} ^thisburrito.com$
RewriteRule ^post(.*)$ "http://thisburrito.com" [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?thisburrito\.com/ [NC]
RewriteRule ^([^thumb].*\.[jJ].*)$ /save.php?img=$1 [L]
RewriteCond %{HTTP_USER_AGENT} !(googlebot-image|msnbot|psbot|yahoo-mmcrawler) [NC]
RewriteRule \.(bmp|gif|jpe?g|png)$ /go.php [L]
<?php
@set_time_limit(0);
//Cargamos el archivo de WP
require_once(dirname(__FILE__) . '/wp-config.php');
//vemos que imagen quiere ver el usuario
$IMG = $_SERVER['REQUEST_URI'];
if($IMG=="") $IMG = $_SERVER['REDIRECT_URL'];
//Sacamos lo que no necesitamos
$IMG = str_replace('/wp-content/uploads/','',$IMG);
//Creamos la cosnulta SQL
$SQL = $wpdb->get_results("SELECT * FROM ".$wpdb->posts." WHERE `post_type`='attachment' AND `guid` LIKE '%".$IMG."%' LIMIT 0,1;");
//Verificamos si el post_parent (id del padre) es vacio
if($SQL[0]->post_parent==""){
//Si es vacio redireccionamos al inicio del blog
echo '<meta http-equiv="refresh" content="0; url=/">Loading...';
}else{
//Sino es vacio visualizamos el post!
wp_redirect(get_permalink($SQL[0]->post_parent));
}
die();
?>
<?php
//Obtenemos la imagen
$img = $_GET['img'];
//Evitamos que se cachee la imagen
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: image/jpeg');
//obtenemos la extencion del archivo
$filetype = substr($img,strlen($img)-4,4);
//Vemos que tipo de archivo es
$filetype = strtolower($filetype);
if($filetype == ".gif") $image = imagecreatefromgif($img);
if($filetype == ".jpg") $image = imagecreatefromjpeg($img);
if($filetype == ".png") $image = imagecreatefrompng($img);
if (!$image) die();
//obtenemos el tamaño de la imagen
$img_w = imagesx($image);
$img_h = imagesy($image);
//Si el tamaño de la imagen es menor a 150 no hacemos nada
if ($img_w < "50") {
imagejpeg($image, null, $q); die();
}
//Color negro transparente, el valor 30 es la transparencia
$TT = imagecolorallocatealpha($image, 0, 0, 0, 30);
//Color blanco
$color = imagecolorallocate($image,255,255,255);
//Creamos un rectangulo que tape toda la imagen
imagefilledrectangle($image, 0, 0, imagesx($image), imagesy($image), $TT);
//Agregamos el texto
imageCenterString($image,5,'Click para Ver Imagen',$color);
//Creamos la imagen en pantalla
imagejpeg($image, null, 100);
//Vaciamos la memoria
imagedestroy($image);
//Esta funcion esta encargada de centrar el texto en la imagen
function imageCenterString(&$img, $font, $text, $color){
if($font < 0 || $font > 5){ $font = 0; }
$num = array(array(4.6, 6),
array(4.6, 6),
array(5.6, 12),
array(6.5, 12),
array(7.6, 16),
array(8.5, 16));
$width = ceil(strlen($text) * $num[$font][0]);
$x = imagesx($img) - $width - 8;
$y = Imagesy($img) - ($num[$font][1] + 2);
imagestring($img, $font, $x/2, $y/2, $text, $color);
}
?>
[MENTION=9679]cicklow[/MENTION] necesito tu ayuda, actualmente tengo esto en mi .htaccess:
Insertar CODE, HTML o PHP:RewriteCond %{HTTP_HOST} ^www.thisburrito.com$ [OR] RewriteCond %{HTTP_HOST} ^thisburrito.com$ RewriteRule ^post(.*)$ "http://thisburrito.com" [R=301,L] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
La redireccion 301 influye en algo?
Si cambio todo eso por tu codigo del hack 1 y 2:
Insertar CODE, HTML o PHP:Options +FollowSymLinks Options -Indexes RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?thisburrito\.com/ [NC] RewriteRule ^([^thumb].*\.[jJ].*)$ /save.php?img=$1 [L] RewriteCond %{HTTP_USER_AGENT} !(googlebot-image|msnbot|psbot|yahoo-mmcrawler) [NC] RewriteRule \.(bmp|gif|jpe?g|png)$ /go.php [L]
Cuando intento cargar cualquier sitio dentro de la web me salta un error 404:
Coloque este go.php con este codigo:
Insertar CODE, HTML o PHP:<?php @set_time_limit(0); //Cargamos el archivo de WP require_once(dirname(__FILE__) . '/wp-config.php'); //vemos que imagen quiere ver el usuario $IMG = $_SERVER['REQUEST_URI']; if($IMG=="") $IMG = $_SERVER['REDIRECT_URL']; //Sacamos lo que no necesitamos $IMG = str_replace('/wp-content/uploads/','',$IMG); //Creamos la cosnulta SQL $SQL = $wpdb->get_results("SELECT * FROM ".$wpdb->posts." WHERE `post_type`='attachment' AND `guid` LIKE '%".$IMG."%' LIMIT 0,1;"); //Verificamos si el post_parent (id del padre) es vacio if($SQL[0]->post_parent==""){ //Si es vacio redireccionamos al inicio del blog echo '<meta http-equiv="refresh" content="0; url=/">Loading...'; }else{ //Sino es vacio visualizamos el post! wp_redirect(get_permalink($SQL[0]->post_parent)); } die(); ?>
y este save.php:
Insertar CODE, HTML o PHP:<?php //Obtenemos la imagen $img = $_GET['img']; //Evitamos que se cachee la imagen header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header('Content-type: image/jpeg'); //obtenemos la extencion del archivo $filetype = substr($img,strlen($img)-4,4); //Vemos que tipo de archivo es $filetype = strtolower($filetype); if($filetype == ".gif") $image = imagecreatefromgif($img); if($filetype == ".jpg") $image = imagecreatefromjpeg($img); if($filetype == ".png") $image = imagecreatefrompng($img); if (!$image) die(); //obtenemos el tamaño de la imagen $img_w = imagesx($image); $img_h = imagesy($image); //Si el tamaño de la imagen es menor a 150 no hacemos nada if ($img_w < "50") { imagejpeg($image, null, $q); die(); } //Color negro transparente, el valor 30 es la transparencia $TT = imagecolorallocatealpha($image, 0, 0, 0, 30); //Color blanco $color = imagecolorallocate($image,255,255,255); //Creamos un rectangulo que tape toda la imagen imagefilledrectangle($image, 0, 0, imagesx($image), imagesy($image), $TT); //Agregamos el texto imageCenterString($image,5,'Click para Ver Imagen',$color); //Creamos la imagen en pantalla imagejpeg($image, null, 100); //Vaciamos la memoria imagedestroy($image); //Esta funcion esta encargada de centrar el texto en la imagen function imageCenterString(&$img, $font, $text, $color){ if($font < 0 || $font > 5){ $font = 0; } $num = array(array(4.6, 6), array(4.6, 6), array(5.6, 12), array(6.5, 12), array(7.6, 16), array(8.5, 16)); $width = ceil(strlen($text) * $num[$font][0]); $x = imagesx($img) - $width - 8; $y = Imagesy($img) - ($num[$font][1] + 2); imagestring($img, $font, $x/2, $y/2, $text, $color); } ?>
ambos en el directorio raiz del blog, junto al .htaccess.
Que estoy haciendo mal? Empeze tratando de hacer los primeros hack y luego pensaba probar el 4 y 5 pero como no anduvieron estos no continue..
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.thisburrito.com$ [OR]
RewriteCond %{HTTP_HOST} ^thisburrito.com$
RewriteRule ^post(.*)$ "http://thisburrito.com" [R=301,L]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?thisburrito\.com/ [NC]
RewriteRule ^([^thumb].*\.[jJ].*)$ /save.php?img=$1 [L]
RewriteCond %{HTTP_USER_AGENT} !(googlebot-image|msnbot|psbot|yahoo-mmcrawler) [NC]
RewriteRule \.(bmp|gif|jpe?g|png)$ /go.php [L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
cicklow, noto que el script funciona perfectamente con imágenes .jpg, pero falla en .gif y .png.
Saludos
\.(bmp|gif|jpe?g|png)$
sisis es que quedo en mi test y dsp no lo edite... XD
PHP:\.(bmp|gif|jpe?g|png)$
Y donde añado esto, en save.php supongo. Pero antes o después de qué.. 😱
en .htaccess
Me da fallo en el servidor si añado esa linea, algo hago mal... :grumpy:en .htaccess
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^(.*)blank\.html [NC]
RewriteRule ^([^thumb].*\.[jJ].*)$ /save.php?img=$1 [L]
RewriteRule \.(bmp|gif|jpe?g|png)$ /go.php [L]
[MENTION=9679]cicklow[/MENTION]
Che, hago eso del hack 4... Subo los archivos a las capetas raiz, pero no funciona.. Y he entrado en modo incorgnito en los 3 exploradores....
y los archivos los descargue tal cual de aca:
Hack 4 – Google Imagenes | Cicklow
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?