...

New Version 2.0

Démarré par maximus23, 20 Mai 2014 à 21:43:04

« précédent - suivant »

maximus23

Hello,

Next version 2.0 in progress

Attention

Install WYSIWYGQuickReply-v2.3.zip Before This Mod.

Prevent for Antihotlink and abuse by htaccess except for google.

After install this mod :

Edit the file /uploads/.htaccess

Replace domaine.tld with your domaine name.

Code

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domaine.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domaine.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com/reader(/)?.*$ [NC]
ReWriteRule .*\.(gif|png|jpg|bmp|jpeg)$ http://domaine.tld/antihotlink/hotlinking.jpg [R]
RemoveHandler .php .php3 .phtml .cgi .fcgi .pl .fpl .shtml
Options -ExecCGI


Replace and Copy This Code.

Save.

Supported Themes

+ Curve Only

Changelog

V 2.0 + Added Files AntiHotlink.
V 2.0 + Added in ACP => 0 To Disable or size in pixel by default.
V 2.0 + Added by select in ACP => Name_id or Member_id.
V 2.0 + Added Resize Manuel if Size Pixels by default is disable.
V 1.9 + BugFix Select BBcode
V 1.9 + Minor Change and BugFix
V 1.9 + Added BBcode Insert Tag Auto
V 1.8 + Added codefix for chmod 644
V 1.8 + Added Custom Auto Resize Admin Panel
V 1.8 + Added Admin Character Truetype / Font and Size (For add TrueType Font see dossier max_upload\fontstruetype -> add the file and report the name whith extension in Admin Panel)
V 1.8 ! Fixed Langage spanish
V 1.7 + Added Admin Character Size Type Gdf
V 1.7 + Added Admin Resize Auto whith Text Options on/off
V 1.7 + Added Resize Auto whith Text Options
V 1.6 ! Minor change or bugfix
V 1.6 + Added Action Barre
V 1.5 + Added Admin Text on/off
V 1.5 + Added Admin Crop on/off
V 1.5 + Added Admin Resize on/off
V 1.4 + Added Texte
V 1.4 + Added Crop
V 1.4 + Added Resize
V 1.3 ! Fixed to work with 2.0.7 user Verify Chmod 664 /max_upload/max_upl_img.php
V 1.2 + Added Quick Reply
V 1.1 ! Fixed to work with Seo and Pretty Url
V 1.0  - Initial Release

Thank's for idea in final version.

:)
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

21 Mai 2014 à 08:53:47 #1 Dernière édition: 21 Mai 2014 à 09:34:18 par foropimiento »
nice job, thanks  ;D


I cant see the attachment to download...


what is exactly the hotlink protection? never hear about...

maximus23

Hello,

Hotlink protection can save you lots of bandwidth and abuse by preventing other sites from displaying your images.

For test copy the bbcode link of this site => to your site.

New version 2.0 :)
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

21 Mai 2014 à 13:26:45 #3 Dernière édition: 21 Mai 2014 à 13:29:12 par foropimiento »
thanks for protection link, awesome idea  ;D

just installed , simply perfect mod

default auto resize works perfect, text perfect

directory name works perfect

only 1 bug:

in quickreply the auto insert bbcode img dont work, do nothink when u click

PD: I tried copy the bbcode generated here to my site and see a funny hotlink jpg jeje

thanks  :D

maximus23

Hello,

Code
I tried copy the bbcode generated here to my site and see a funny hotlink jpg jeje



If the file. htaccess is correct all pictures will be replaced by this:




Code
in quickreply the auto insert bbcode img dont work, do nothink when u click


I don't see anything abnormal I didn't modify anything for the quickreply ?

:)
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

Is a very good trick but i find 1 problem:


Many users enter the forum via tapatalk and I test it and all images I upload get the hotlink.jpg , can fix it? many users enter via tapatalk all days


I don't know but don't work  :(  when I use reply button or new thread its works

maximus23

Hello,

The same problems whit 1.9 ?

Is Tapatalk installed here you know how to test to see if there is the same problem ? 
 
Tapatalk is special and has its own files, a lot of options don't function. 
 
Me I don't have anything to test I don't use this program.

:)
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

problem comes with the hotline modification in htaccess, no problems with the mod itself


I can access via mobile using tapatalk to test it, no problem


can change the htaccess ? to test it?


maximus23



Modified here normal mode for htaccess.

htaccess normal mode :

Code

<Files .*>
order allow,deny
deny from all
</Files>

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI


:)
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

21 Mai 2014 à 19:47:25 #9 Dernière édition: 21 Mai 2014 à 19:52:17 par foropimiento »
done

but

the problem continue in the same photos , sometimes bad sometimes well is very stranger....


hotlink htaccess aply in all photos in my upload folder? or only the uploaded during the hotlink htaccess?


tahnks....





maximus23

Hello the stupid bug for htaccess .... For test :)

Code

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domaine.tld(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?domaine.tld(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?google.com(/)?.*$ [NC]
RewriteRule .*.(gif|png|jpg|jpeg)$ http://domaine.tld/antihotlink/hotlinking.jpg [R,NC]

RemoveHandler .php .php3 .phtml .cgi .fcgi .pl .fpl .shtml
Options -ExecCGI
Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

google images show my images with this modification?

maximus23

Citation de: foropimiento le 21 Mai 2014 à 21:38:57
I used a pc


Your version IE, FF Chrome other ? Tested with other navigator ?

Sorry for the times of answer I work at present :)

Amitiés et à Bientôt.
Have a Nice Day.

maximus23


Tested whit IE 10  - IE 11 - Chrome 34 and 35 - FF 28 and 29.0.1 no problems :)

Amitiés et à Bientôt.
Have a Nice Day.

foropimiento

I tested chrome and safari , win and mac